>Useful Linux Commands

By | November 1, 2010

>There are many commands in linux that we use in day to day. Here i am sharing some useful commands that may be smarter way to perform certain task

Above given command will print last command that contain ‘command’ word from history, but not execute that. For example ‘root#!mount:p‘ will print last command from history that contain word mount , but not execute that command.
If you put space before command name it will not get stored in history. For example ‘root# passwd user1‘ will not store ‘passwd user1’ command in history.
ctrl+x then e
If you will press ctrl and x key together and then e key, a editor comes up to edit. Whichever editor (vi,emac etc) will depend on EDITOR variable.
Share itShare on FacebookEmail this to someoneTweet about this on TwitterShare on Google+Share on LinkedInPrint this page

Leave a Reply

Your email address will not be published. Required fields are marked *

Current month ye@r day *