Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-25-2016, 02:04 PM   #1
Registered: Jan 2016
Posts: 244

Rep: Reputation: Disabled
Question Clear ssh commands logs on Centos 7


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 -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?

Old 02-25-2016, 02:53 PM   #2
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 7,039

Rep: Reputation: Disabled
For some reason I do not want to answer this question ...
Old 02-25-2016, 02:55 PM   #3
Registered: Jan 2016
Posts: 244

Original Poster
Rep: Reputation: Disabled
Why you post then?
Old 02-25-2016, 03:15 PM   #4
Registered: May 2011
Location: TX
Distribution: mint,deb,centos
Posts: 818

Rep: Reputation: 228Reputation: 228Reputation: 228
read the man page for the history command. Look under History List Management.
Old 02-26-2016, 01:04 AM   #5
Registered: Jan 2016
Posts: 244

Original Poster
Rep: Reputation: Disabled
Ok thnaks


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to log ssh login to get clear password on a file? - Centos server ASTRAPI Linux - Newbie 4 12-10-2012 12:18 AM
How to clear all kinds of Logs under Debian kushalkoolwal Debian 15 01-26-2012 10:22 AM
script which logs into devices over ssh and executes commands m4rtin Programming 1 03-23-2010 12:51 PM
how do i clear my server logs? steve51184 Linux - Server 5 08-06-2009 09:09 PM
Program that logs in on remote computer via ssh and executes commands on it harrybazeegar Linux - Software 2 09-08-2007 07:14 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:30 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration