LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 02-25-2016, 03:04 PM   #1
bmxakias
Member
 
Registered: Jan 2016
Posts: 212

Rep: Reputation: Disabled
Question 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
 
Old 02-25-2016, 03:53 PM   #2
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,317

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

Original Poster
Rep: Reputation: Disabled
Why you post then?
 
Old 02-25-2016, 04:15 PM   #4
erik2282
Member
 
Registered: May 2011
Location: TX
Distribution: Debian
Posts: 769

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

Original Poster
Rep: Reputation: Disabled
Ok thnaks
 
  


Reply


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 01:18 AM
How to clear all kinds of Logs under Debian kushalkoolwal Debian 15 01-26-2012 11:22 AM
script which logs into devices over ssh and executes commands m4rtin Programming 1 03-23-2010 01:51 PM
how do i clear my server logs? steve51184 Linux - Server 5 08-06-2009 10:09 PM
Program that logs in on remote computer via ssh and executes commands on it harrybazeegar Linux - Software 2 09-08-2007 08:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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