Command History

01. Last thousand command display
[root@server ~]# history |more

02. Last ten command display
[root@server ~]# history 10

Once you logout or shutdown your pc your current command history will be saved in to a hidden file in your home folder.

03. See a hidden file
[root@server ~]# cd
[root@server ~]# cat .bash_history

------------------------------------------------------------------------------------------

0 comments: