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"

7
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 · 61 weeks and 1 day ago
Linux terminal is a way of communicating with the most adaptable part of the operating system. Uncontested Divorce Mississauga
jonathantrott · 60 weeks and 3 days 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 · 59 weeks 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 · 57 weeks and 4 days 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 · 57 weeks and 1 day ago
great content! will recommend this site to my friends
looneyhans · 51 weeks and 4 days 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 · 49 weeks ago
doula san francisco How can I get more infos about apple products
yeoyeo · 48 weeks and 4 days ago
great help! learned so much fencecompanyabilenetx.com
looneyhans · 47 weeks ago
wonderful article very helpful! dentalimplantssanantoniotx.com
Killersmile · 46 weeks and 4 days ago
best manicure campbell
jennylee · 45 weeks and 6 days ago
website
jennylee · 45 weeks and 4 days ago
Very nice article word unscrambler
minayang · 44 weeks and 1 day ago
great site roanoke va fencing
looneyhans · 43 weeks and 6 days ago
informative sight Leak detector calabasas
shehryarkhan · 43 weeks and 4 days ago
Very nice post, Thank you Chair Bands
goodboy · 42 weeks and 6 days ago
very nice post facebook ads agency ho chi minh
shehryarkhan · 42 weeks and 6 days ago
eyelash extensions thanks for the heads up! will surely take note of this
idasanka · 42 weeks and 4 days ago
wow never knew about this before, thanks for sharing! couples counseling
idasanka · 42 weeks and 2 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 · 42 weeks and 2 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 · 42 weeks and 1 day ago
Excellent post, keep it up pool and spa cleaning in Los Angeles
goodboy · 42 weeks 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 · 41 weeks and 6 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 · 41 weeks and 2 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 · 41 weeks and 2 days ago
nice information microwave moisture analyzer
shehryarkhan · 41 weeks and 1 day 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 · 41 weeks and 1 day ago
guitar lessons atlanta This is great! Thanks so much!
yeoyeo · 40 weeks and 5 days ago
guitar lessons atlanta This is great! Thanks so much!
yeoyeo · 40 weeks and 5 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. house clearance bridgend
bojokey283 · 39 weeks and 2 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 · 39 weeks and 2 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 · 38 weeks and 6 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 · 38 weeks and 6 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 · 38 weeks and 3 days ago
love your ideas! eat
sammm · 37 weeks and 4 days 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 · 37 weeks and 2 days ago
thanks san jose
shehryarkhan · 36 weeks and 6 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 · 35 weeks and 5 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 · 34 weeks and 6 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 · 34 weeks and 2 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 · 34 weeks and 2 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 · 33 weeks and 6 days ago
Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. If possible, as you gain expertise, would you mind updating your blog with more information? It is extremely helpful for me. nemzetközi szállítmányozás határid?n belül
bojokey283 · 33 weeks ago
I am hoping the same best effort from you in the future as well. In fact your creative writing skills has inspired me. best places to eat cozumel
xoheko1229 · 32 weeks and 6 days ago
Very useful post. This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. Really its great article. Keep it up. all inclusive dive resorts cozumel
xoheko1229 · 32 weeks and 5 days ago
I'm glad to see the great detail here!. 5 star resorts in cancun mexico
xoheko1229 · 32 weeks ago
Very good points you wrote here..Great stuff...I think you've made some truly interesting points.Keep up the good work. beach restaurant playa del carmen
xoheko1229 · 31 weeks and 5 days ago
Great post, thank you for sharing this information
goodboy · 31 weeks and 5 days ago
goodboy · 31 weeks and 5 days ago
goodboy · 31 weeks and 5 days ago
Thank you a bunch for sharing this with all of us you actually realize what you are talking about! Bookmarked. Please also seek advice from my site =). We could have a hyperlink change contract between us! beaches in isla mujeres
xoheko1229 · 31 weeks and 5 days ago
This is such a great resource that you are providing and you give it away for free. I love seeing websites that understand the value of providing a quality resource for free. It is the old what goes around comes around routine. all inclusive isla mujeres resort
xoheko1229 · 31 weeks and 3 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 contoy
xoheko1229 · 31 weeks and 3 days ago
I gotta favorite this website it seems very helpful . treatnheal
xoheko1229 · 30 weeks ago
This is my first time visit here. From the tons of comments on your articles,I guess I am not only one having all the enjoyment right here! Automatyka domowa
xoheko1229 · 29 weeks and 2 days ago
This is such a great opportunity kitchen remodeling boulder
aegyjingoo · 28 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!.. luxury bathroom vanity
bojokey283 · 28 weeks and 2 days ago
interesting post. https://dockanddecksupply.com/
georgebowen · 27 weeks and 5 days ago
This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here! keep up the good work beach hotel tulum mexico
xoheko1229 · 27 weeks and 2 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!.. coronavirus playa del carmen
bojokey283 · 27 weeks and 1 day ago
useful information on topics that plenty are interested on for this wonderful post.Admiring the time and effort you put into your b!.. taroko gorge hikes
xoheko1229 · 26 weeks and 6 days ago
Admiring the time and effort you put into your blog and detailed information you offer!.. Things to do in Hualien
bojokey283 · 26 weeks and 5 days ago
Your post has been so helpful because it was clear and concise writing made it easy to understand. Thank you! 192.168.1.1
malkovich · 26 weeks ago
coin loan review
henrywang · 25 weeks ago
Great post, thank you for sharing this information website
goodboy · 22 weeks and 6 days ago
Solved my issue, thanks! San Diego Emergency Plumbing
andrew0125 · 18 weeks and 5 days ago
I like this site very much so much good information. http://besttemplatetuning.com/2021/06/30/baccarat-casino-match-learning-the-fundamentals/">Baccarat Casino Match
robinjack · 15 weeks and 2 days ago
Today it seems like Phrase Powerplant is the top blogging service available today. (through just what We have examine) Is always that what you are utilizing in your website? meeting room booking application
robinjack · 7 weeks and 1 day ago
Very great post. I simply stumbled upon your weblog and wanted to say that I’ve truly enjoyed surfing around your weblog posts. In any case I will be subscribing for your rss feed and I hope you write once more very soon! chore jacket uk
robinjack · 5 weeks and 2 days ago
The Atelier @ Makeway Ave by Bukit Sembawang Hotline 61009266. Get Discounts, Direct Developer Price, Brochure, Floor Plan, Price List & More. Former Makeway View The Atelier Showflat
robinjack · 4 weeks and 2 days ago
As your #1 West Austin Tree service provider, we offer tree trimming & removal services throughout the community. austin tree care comapny
henrywang2531 · 1 week and 6 days ago
There are many posts on the market near this, I do believe taking there reference could experience made this spot or article really informative. Practical goal expression this post is unhealthy. Simply I must pronounce that the info provided here was unique, merely so it will be more in close proximity to complete, supporting to former information will receive been actually good. The points you have touched here are vital, thus I am going to spot many of the information here to create this actually best for entirely the newbie’s here. Thank you for this info. Actually helpful! atelier showflat
robinjack · 1 week and 3 days ago
Great write-up, I am regular visitor of one?¦s site, maintain up the nice operate, and It is going to be a regular visitor for a lengthy time. drug treatment center in New Jersey
robinjack · 1 week and 1 day 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: