How to view Linux Terminal History
Command : history
Using Linux history Command You Can View Linux Command History in Linux terminal.
Show Terminal Command History Using History Command in Linux |
Write Linux History To a Text File
You Can Also Write Linux Command History to Text file by typing history>filename Where file Name is name of you're out put fileex : history>history.txt
Export Terminal History to Text File |
In Above example we export Command History to file called history.txt.
if you Don't have a file you specified in you're current directory Linux Will Create a file new file.in this Case history.txt file will be created in user Desktop.
history.txt file Showing Linux Command History |
Clear Linux History
Type history -c in terminal to clear terminal historyClear history using history -c Command |
Summary
history = View Historyhistory>filename.txt = write history to a test file
history -c = Clear History
No comments:
Post a Comment