LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Clear ssh commands logs on Centos 7 (https://www.linuxquestions.org/questions/linux-newbie-8/clear-ssh-commands-logs-on-centos-7-a-4175573228/)

bmxakias 02-25-2016 02:04 PM

Clear ssh commands logs on Centos 7
 
Hi

I am working on Centos 7 server and i run a few commands from ssh and i try to delete the logs for them using:


history-w
history -c

But when i logout and login again i was able to view them using the UPkey on my keyborad :(

How can i completely delete the logs?

Thanks

Emerson 02-25-2016 02:53 PM

For some reason I do not want to answer this question ...

bmxakias 02-25-2016 02:55 PM

Why you post then?

erik2282 02-25-2016 03:15 PM

read the man page for the history command. Look under History List Management.

bmxakias 02-26-2016 01:04 AM

Ok thnaks :)


All times are GMT -5. The time now is 06:18 AM.