LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 03-02-2007, 10:42 AM   #1
vboulytchev
LQ Newbie
 
Registered: Jul 2004
Distribution: MD 10
Posts: 9

Rep: Reputation: 0
cleaning tracks


Gents,
From time to time mediocre users like me, want to brush up on cleaning up your tracks on a filesystem.

1.) if you rm a file, I am pretty sure it just deletes the inode, am I correct?

how would one do some deaper cleaining of the drive? How would one restore any files that were wrongfully rmed.

2.) Bash history. I am only aware of .bash_history file, which collects your last commands, which can be cleared via "history -c" command. Now, which other files collect the same information?


THANKS!
 
Old 03-02-2007, 11:17 AM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Unless your system administrator has specifically set up other logs, or you execute commands that use elevated privilege levels, the .bash_history file is the only place the bash shell will log your commands.

RMing a file only removes the pointer to the block(s) that contained the file. Overwriting the block would be necessary to ensure it is harder to recover the deleted file.
 
Old 03-02-2007, 12:21 PM   #3
live_dont_exist
Member
 
Registered: Aug 2004
Location: India
Distribution: Redhat 9.0,FC3,FC5,FC10
Posts: 257

Rep: Reputation: 30
Just to add to what Matir said incase you want to recover files tha you rm -rf'd I guess you'll need a data recovery tool. There's a really cool tool called testdisk which recovered files from an entire NTFS partition for me once.Installers available for Linux as well...thats where I ran it from .. obviously

Cheers
Arvind
 
  


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
kaudiocreator will not rip some tracks arubin Linux - Software 2 07-13-2006 01:11 PM
How Do I Delete My Tracks? ivanolo SUSE / openSUSE 2 07-02-2006 05:11 PM
You favourite old school tracks matthewhardwick General 12 08-09-2005 03:49 PM
Why won't Grip rip some CD tracks?? Tiyogi Linux - Software 2 06-28-2004 05:40 AM
Tracks eraser for Linux ? moetman Linux - General 3 02-22-2004 09:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 02:05 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
Open Source Consulting | Domain Registration