List all accessed configuration files while executing a program in linux terminal (improved version)

strace 2>&1 <any_executable> |egrep -o "\".*\.conf\""
Last listed files presumably have higher precedency then files listed first, i.e. configuration files in the personal .config directory will be listed last and their config parameters will be more authoritative then default config parameters defined in /etc directory which are usually listed above them. If you replace ".conf" with ".ini" in the command, initial files will be listed instead of config files. If you do not like to list multiple access to the same config file, pipe to "uniq" or "uniq -c" to prefix lines by the number of occurrences
Sample Output
$ # (grep -v fonts = suppressing listing immense number of font configs)

$ strace 2>&1 geany |egrep -o "\".*\.conf\"" | grep -v fonts 

"/home/knoppix5/.config/geany/geany.conf"
"/home/knoppix5/.config/geany/geany.conf"
"/home/knoppix5/.config/geany/geany.conf"
"/etc/nsswitch.conf"
"/usr/share/geany/filetype_extensions.conf"
"/home/knoppix5/.config/geany/filetype_extensions.conf"
"/home/knoppix5/.config/geany/snippets.conf"
"/usr/share/geany/snippets.conf"
"/home/knoppix5/.config/geany/snippets.conf"
"/home/knoppix5/.config/geany/plugins/filebrowser/filebrowser.conf"
"/home/knoppix5/.config/geany/plugins/saveactions/saveactions.conf"
"/home/knoppix5/.config/geany/keybindings.conf"
"/home/knoppix5/.config/geany/keybindings.conf"
"/usr/share/geany/colorschemes/github.conf"
"/home/knoppix5/.config/geany/colorschemes/github.conf"
"/usr/share/geany/colorschemes/github.conf"
"/home/knoppix5/.config/geany/colorschemes/github.conf"
"/home/knoppix5/.config/geany/geany.conf"
"/home/knoppix5/.config/geany/geany.conf"
"/home/knoppix5/.config/geany/plugins/filebrowser/filebrowser.conf"
"/home/knoppix5/.config/geany/plugins/filebrowser/filebrowser.conf"

6
By: knoppix5
2020-07-31 10:57:29

What Others Think

Good to know about it. I know you have put a lot of effort into making this article this much informational. CBD facts Thanks a lot for your efforts. I never find such an article like this. I hope you will share more such works.
zaiyamariya · 27 weeks and 5 days ago
Linux terminal is a way of communicating with the most adaptable part of the operating system. Uncontested Divorce Mississauga
jonathantrott · 27 weeks ago
I think that keeping yourself in shape is very important. So, I have a website, where you can find a lot of information about that. For example, cbd oil dosage for anxiety
MarkMiller · 25 weeks and 3 days ago
It was specially made and understood. Not at all like extra web journals, I have inspected which are truly not outrageously unprecedented. I in like way discovered your Mumbai Escorts posts particularly fascinating sureness coming about to analyze. I expected to go show it to my mate and he relished its experience also!
poojasharma69 · 24 weeks and 1 day ago
Note that many programs spawn child processes, and by default strace does not follow those when you are tracing the parent. To cover that, you need to use '-f' to follow child processes also.
dmmst19 · 23 weeks and 5 days ago
great content! will recommend this site to my friends
looneyhans · 18 weeks and 1 day ago
Happy to see this post here. In this post, the author shares some details about the Linux terminal. You gave a detailed study of this topic, and easy to understand it. Keep sharing more information, and I am eagerly waiting for more updates. DC Law group contracts
ryanbabraham · 15 weeks and 3 days ago
doula san francisco How can I get more infos about apple products
yeoyeo · 15 weeks ago
great help! learned so much fencecompanyabilenetx.com
looneyhans · 13 weeks and 4 days ago
wonderful article very helpful! dentalimplantssanantoniotx.com
Killersmile · 13 weeks and 1 day ago
best manicure campbell
jennylee · 12 weeks and 3 days ago
website
jennylee · 12 weeks and 1 day ago
Very nice article word unscrambler
minayang · 10 weeks and 5 days ago
great site roanoke va fencing
looneyhans · 10 weeks and 3 days ago
informative sight Leak detector calabasas
shehryarkhan · 10 weeks ago
Very nice post, Thank you Chair Bands
goodboy · 9 weeks and 3 days ago
very nice post facebook ads agency ho chi minh
shehryarkhan · 9 weeks and 2 days ago
eyelash extensions thanks for the heads up! will surely take note of this
idasanka · 9 weeks and 1 day ago
wow never knew about this before, thanks for sharing! couples counseling
idasanka · 8 weeks and 6 days ago
I can set up my new idea from this post. It gives in depth information. Thanks for this valuable information for all,.. read more
bojokey283 · 8 weeks and 6 days ago
Yes i am totally agreed with this article and i just want say that this article is very nice and very informative article.I will make sure to be reading your blog more. You made a good point but I can't help but wonder, what about the other side? !!!!!!THANKS!!!!!! Click here
xoheko1229 · 8 weeks and 4 days ago
Excellent post, keep it up pool and spa cleaning in Los Angeles
goodboy · 8 weeks and 4 days ago
Very good points you wrote here..Great stuff...I think you've made some truly interesting points.Keep up the good work. read more
xoheko1229 · 8 weeks and 3 days ago
This is my first time i visit here and I found so many interesting stuff in your blog especially it's discussion, thank you. instagram Abonnenten kaufen bei abonnenten24.de
bojokey283 · 7 weeks and 6 days ago
I am very enjoyed for this blog. Its an informative topic. It help me very much to solve some problems. Its opportunity are so fantastic and working style so speedy. iluminação controlo
bojokey283 · 7 weeks and 5 days ago
nice information microwave moisture analyzer
shehryarkhan · 7 weeks and 4 days ago
Great write-up, I am a big believer in commenting on blogs to inform the blog writers know that they’ve added something worthwhile to the world wide web!.. digital marketing
bojokey283 · 7 weeks and 4 days ago
guitar lessons atlanta This is great! Thanks so much!
yeoyeo · 7 weeks and 1 day ago
guitar lessons atlanta This is great! Thanks so much!
yeoyeo · 7 weeks and 1 day ago
I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business. house clearance bridgend
bojokey283 · 5 weeks and 5 days ago
Very nice article, I enjoyed reading your post, very nice share, I want to twit this to my followers. Thanks!. removal companies hartlepool
bojokey283 · 5 weeks and 5 days ago
Great write-up, I am a big believer in commenting on blogs to inform the blog writers know that they’ve added something worthwhile to the world wide web!.. Heimautomatisierung
bojokey283 · 5 weeks and 2 days ago
I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business. tree surgeons colchester
bojokey283 · 5 weeks and 2 days ago
I know your expertise on this. I must say we should have an online discussion on this. Writing only comments will close the discussion straight away! And will restrict the benefits from this information. covid mexico
bojokey283 · 4 weeks and 6 days ago
love your ideas! eat
sammm · 4 weeks and 1 day ago
You have a real ability for writing unique content. I like how you think and the way you represent your views in this article. I agree with your way of thinking. Thank you for sharing. best things to do in cozumel
bojokey283 · 3 weeks and 5 days ago
thanks san jose
shehryarkhan · 3 weeks and 3 days ago
I am sure this can be used for our tile cleaning company TX. We're hoping it will work for us too.
charlesevans23 · 2 weeks and 2 days ago
You have a good point here!I totally agree with what you have said!!Thanks for sharing your views...hope more people will read this article!!! pályázatírás" rel="nofollow">http://www.fokuszpalyazat.hu/'>pályázatírás Debrecen cégeinek
bojokey283 · 1 week and 2 days ago
I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post. webtraffic panel
xoheko1229 · 5 days ago
Interesting post. I Have Been wondering about this issue, so thanks for posting. Pretty cool post.It 's really very nice and Useful post.Thanks best cenotes yucatan
xoheko1229 · 5 days ago
I was looking at some of your posts on this website and I conceive this web site is really instructive! Keep putting up.. rumah pintar
bojokey283 · 2 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: