Linux shell history - Trick
To display the history of commands with date and time -
history
cat~/.bash_history
history number_of_command_to_display
Like this "history 2" - will display first and second command
To clear the history:
rm ~/.bash_history && history -c
To execute the 10 th command in the history, just type - "!10"
Using grep to find the specific command
To save the history in a file
history > list.txt
Some command needs root permission..
Good day
Congratulations @shanmugaraj! You received a personal award!
Click here to view your Board of Honor
Congratulations @shanmugaraj! You received a personal award!
You can view your badges on your Steem Board and compare to others on the Steem Ranking
Vote for @Steemitboard as a witness to get one more award and increased upvotes!