My blog has moved! Redirecting...

You should be automatically redirected. If not, visit http://techienote.com and update your bookmarks.

Tech Resources

Sunday, April 26, 2009

Quickly watching configuration files in linux

Suppose you want to configuring something in Linux. For that you have to open configuration files in Linux via vi command editor. What if you want to know whatever changes you have made active. For that I just found a simple command on Cyberciti.biz website. Thought this may be useful for you guys.

#cat config_file_name.conf | sed '/ *#/d; /^ *$/d'
(grep will remove all comments and sed will remove all empty lines)

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home