#history
( History command in linux is used to check your previous fired commands, for eg you can see last 100 commands you fired or 50th command you fired)
#history
(This will give you all commands you fired)
#history 40
(This will give you last 40 commands including the current history command also)
#history -d 4
(Delete the 4th command in the history)
#history -c
(Delete all history commands)
#history 100 | head -1
(In this command we use pipe sign which is combined 2 or more commands, here first, last 100 fired commands comes as a output then this output goes for second command which is "head -1" which actually display 1 command from the previous output.
( History command in linux is used to check your previous fired commands, for eg you can see last 100 commands you fired or 50th command you fired)
#history
(This will give you all commands you fired)
#history 40
(This will give you last 40 commands including the current history command also)
#history -d 4
(Delete the 4th command in the history)
#history -c
(Delete all history commands)
#history 100 | head -1
(In this command we use pipe sign which is combined 2 or more commands, here first, last 100 fired commands comes as a output then this output goes for second command which is "head -1" which actually display 1 command from the previous output.


0 comments:
Post a Comment