LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   History command (https://www.linuxquestions.org/questions/linux-general-1/history-command-336694/)

amer_58 06-24-2005 03:56 AM

History command
 
Is it possible to list the history for a specific user?

oneandoneis2 06-24-2005 04:00 AM

What, their bash history?

Yes: "less /home/username/.bash_history"

amer_58 06-24-2005 04:04 AM

Thanks oneandoneis2, and what if i want to clear it incase i dont want any one to view my last 100 commands.

oneandoneis2 06-24-2005 04:18 AM

- Whatever text editor you happen to like to prune specific entries.

- rm .bash_history

- history -c

LinuxLala 06-24-2005 06:23 AM

if you have access to that users bash, then "histroy -c" would do the trick

amer_58 06-24-2005 12:26 PM

Thanks guys.


All times are GMT -5. The time now is 09:33 AM.