Pages

Sunday, November 2, 2014

Change host name

$ sed -i 's/oldname/hostname/' /etc/hosts /etc/hostname

With sed you can replace strings on the fly.




commandlinefu.com


by David Winterbottom (codeinthehole.com)






from All commands http://ift.tt/1t3Bh8J

No comments:

Post a Comment