05-18-2016
what do you mean 'list deleted files'? a file is just a name pointing to some data on the disk. if you delete a file (rm) you don't delete data. At least I can't remember right now a filesystem, which deletes data at the same time you delete a pointer to it. You can have many pointers to the same data. In UNIX world they are called hard links or links. If your data has several links and you remove just one of them, you effectively did nothing, except removing this name. If you removed the last link to the data, the data is marked 'free' and can be rewritten, but it doesn't mean it will be rewritten. You can use tools such file system debugger to find data on the disk and give them a new name (link). Or if a program, which uses the deleted file, is still running, you can restore the file on most of the UNIX systems.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
is it possible to check logs in UNIX who deleted the files?
Is there logs in UNIX besides .sh_history? (1 Reply)
Discussion started by: james_falco
1 Replies
2. UNIX for Dummies Questions & Answers
hi
after using rm command how to recover the deleted file (7 Replies)
Discussion started by: arulkumar
7 Replies
3. UNIX for Dummies Questions & Answers
Hi Experts,
by mistake i deleted some files that are very important to the project.
is there any way that i can recover those files,there is no backup for that but the details of the file we know.
This will be a great help.
Thanks (5 Replies)
Discussion started by: namishtiwari
5 Replies
4. Shell Programming and Scripting
Hi,
I want to put all the deleted files in a txt file. Because i want to backup my image server which has thousands of jpg images. I wrote a shell script which will copies images from image server to backup image server. I setup a cronjob which runs on every five minutes. & through timestamp it... (8 Replies)
Discussion started by: mirfan
8 Replies
5. UNIX for Advanced & Expert Users
Hi All,
I am using Fedora Core and Windows Xp. I deleted all the files from root
directory. When i am trying to restart the computer it showing some grub > prompt. What i will do ? I have lots of data in XP OS.
Please help me
i used
# rm * (8 Replies)
Discussion started by: pritish.sas
8 Replies
6. Linux
Hello. I am having a problem and I was wondering if I could get some help from here. I changed into a directory with the cd command and I wanted to delete a folder and all of its subdirectories, so I went ahead and did a rm --recursive * in my current directory to realize that I was in the wrong... (3 Replies)
Discussion started by: jonnydadesigner
3 Replies
7. AIX
Just looking for some guidance on how to figure out who might have deleted some files off one of my systems.
These files are not root owned files so could be deleted by a handful of folks in the group responsible for these files besides the root users.
Anyway I have been tasked with trying to... (1 Reply)
Discussion started by: juredd1
1 Replies
8. UNIX for Dummies Questions & Answers
I copied all JPEGs from my laptop to an external drive using
find . -name "*.jpg" -exec cp '{}' ./media/Backup/pictures \;
And then deleted all of them from my laptop.
Now, I realize that I need the folder path of all the original JPEGs as the path has the important information.
I dont... (1 Reply)
Discussion started by: eshwaconsulting
1 Replies
9. UNIX for Dummies Questions & Answers
Hi ,
I have to find the files from a directory . But the file names are different.
for ex.
MONTH_AP_TEST_DATA_<timestamp>.dat
MONTH_PAY_TEST_DATA_<timestamp>.dat
PARTIAL_AP_TEST_DATA_<timestamp>.dat
PARTIAL_PAY_TEST_DATA_<timestamp>.dat
MULTIPLE_AP_TEST_DATA_<timestamp>.dat... (5 Replies)
Discussion started by: kalidoss
5 Replies
10. UNIX for Beginners Questions & Answers
Good evening, i need your help please
I've got a file script thet deletes about half millions of files, and i want those files to be printed in a log file as an evidence those files were removed.
#/bin/sh
rm "/home/e-smith/files/users/bill/Maildir/cur/1392373930.28512.comp01:2,S"
rm... (6 Replies)
Discussion started by: alexcol
6 Replies
LEARN ABOUT CENTOS
vfs_recycle
VFS_RECYCLE(8) System Administration tools VFS_RECYCLE(8)
NAME
vfs_recycle - Samba VFS recycle bin
SYNOPSIS
vfs objects = recycle
DESCRIPTION
This VFS module is part of the samba(7) suite.
The vfs_recycle intercepts file deletion requests and moves the affected files to a temporary repository rather than deleting them
immediately. This gives the same effect as the Recycle Bin on Windows computers.
The Recycle Bin will not appear in Windows Explorer views of the network file system (share) nor on any mapped drive. Instead, a directory
called .recycle will be automatically created when the first file is deleted and recycle:repository is not configured. If
recycle:repository is configured, the name of the created directory depends on recycle:repository. Users can recover files from the recycle
bin. If the recycle:keeptree option has been specified, deleted files will be found in a path identical with that from which the file was
deleted.
This module is stackable.
OPTIONS
recycle:repository = PATH
Path of the directory where deleted files should be moved.
If this option is not set, the default path .recycle is used.
recycle:directory_mode = MODE
Set MODE to the octal mode the recycle repository should be created with. The recycle repository will be created when first file is
deleted. If recycle:subdir_mode is not set, MODE also applies to subdirectories.
If this option is not set, the default mode 0700 is used.
recycle:subdir_mode = MODE
Set MODE to the octal mode with which sub directories of the recycle repository should be created.
If this option is not set, subdirectories will be created with the mode from recycle:directory_mode.
recycle:keeptree = BOOL
Specifies whether the directory structure should be preserved or whether the files in a directory that is being deleted should be kept
separately in the repository.
recycle:versions = BOOL
If this option is True, two files with the same name that are deleted will both be kept in the repository. Newer deleted versions of a
file will be called "Copy #x of filename".
recycle:touch = BOOL
Specifies whether a file's access date should be updated when the file is moved to the repository.
recycle:touch_mtime = BOOL
Specifies whether a file's last modified date should be updated when the file is moved to the repository.
recycle:minsize = BYTES
Files that are smaller than the number of bytes specified by this parameter will not be put into the repository.
recycle:maxsize = BYTES
Files that are larger than the number of bytes specified by this parameter will not be put into the repository.
recycle:exclude = LIST
List of files that should not be put into the repository when deleted, but deleted in the normal way. Wildcards such as * and ? are
supported.
recycle:exclude_dir = LIST
List of directories whose files should not be put into the repository when deleted, but deleted in the normal way. Wildcards such as *
and ? are supported.
recycle:noversions = LIST
Specifies a list of paths (wildcards such as * and ? are supported) for which no versioning should be used. Only useful when
recycle:versions is enabled.
EXAMPLES
Move files "deleted" on share to /data/share/.recycle instead of deleting them:
[share]
path = /data/share
vfs objects = recycle
recycle:repository = .recycle
recycle:keeptree = yes
recycle:versions = yes
VERSION
This man page is correct for version 3.0.25 of the Samba suite.
AUTHOR
The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open
Source project similar to the way the Linux kernel is developed.
Samba 4.0 06/17/2014 VFS_RECYCLE(8)