04-11-2016
Quote:
Originally Posted by
Don Cragun
The rm command deletes files; it does not recover lost or deleted files.
Once you have deleted a file, it is generally gone and unrecoverable. If you happen to be using a transactional filesystem, recovery might not be so difficult. Otherwise, if, immediately after removing a file you unmount the filesystem on which it was located without writing any new data to any other file on that filesystem, you might be able to search the free list for that filesystem for blocks that had been assigned to the file you deleted; but how you do that, if it is possible at all, varies considerably based on the filesystem type.
I am running CentOS under a VPS.. i dont think it has backups
So this means my file is lost, right?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
help please
i have "inherited" a Sco Server (the administrator departed in a hurry...yes we are chasing him..) and haven't used Unix for 8 years.
i have a file that i need to retrieve from a tape.
i have been able to find the file on tape using the cpio -ivt command.
however...
the problem I... (3 Replies)
Discussion started by: mfischer
3 Replies
2. UNIX for Dummies Questions & Answers
Can anyone please help...?
Managed to do a ufsdump of files to tape. Having trouble using ufsrestore to pull a single file back by filename??
I have dumped a single file to tape also because looking through the other threads, I noticed that you have to tell it to skip files before you get to... (1 Reply)
Discussion started by: Jonathan
1 Replies
3. UNIX for Dummies Questions & Answers
I had a user run, by accident, the following line command on our UNIX server:
rm -f /usr/*
This apparently deleted some needed files on your system. Having very limited knowledge in UNIX, I thought I would ask the group if anyone knows how I can recover these file?
The version of UNIX is... (3 Replies)
Discussion started by: mikem
3 Replies
4. Solaris
Is it possible to restore a TAR'ed file off of a tape to a location other than the original location? If so, how?
(The MAN pages give examples of how to restore only to the originating location.)
Thanks!! (1 Reply)
Discussion started by: FredSmith
1 Replies
5. UNIX for Dummies Questions & Answers
I was recently given the responsibility of the unix box at our work. Without much training, I now have to go back and restore a file from tape. I'm having some trouble with it. I'm getting an error with the blocksize.
The part of the script that does the tar looks like this:
tar cvfX... (11 Replies)
Discussion started by: citrowske
11 Replies
6. Shell Programming and Scripting
I'm new to Unix and have just wrote a little program to move files to a recycle bin (a Directory i created) and restore them. The problem is that i need to keep track of all the full filenames so that i can restore them to the right place. I did this by creating a file called delreg and putting the... (4 Replies)
Discussion started by: zoolz
4 Replies
7. UNIX for Dummies Questions & Answers
Hi,
Can any one tell me how to restore back the deleted file in unix?
I know the file name.
If i know the inode number of the file does help more to restore back the file? (1 Reply)
Discussion started by: siba.s.nayak
1 Replies
8. Shell Programming and Scripting
Hello everyone,
I am new to unix shell.
I have a file called Path.txt....and i have data in that as
1 abhi
2 avi
3 ash so on.....
1 ,2 ,3 is the... (2 Replies)
Discussion started by: AbhijitIT
2 Replies
9. Shell Programming and Scripting
Hello everyone,
I am attempting to make a recycling bin type application in shell script (tcsh). I have the whole part of the application done where someone can recycle files from one location to the recycling bin (the lower half of the program), this is not a problem. However I wanted to make... (7 Replies)
Discussion started by: tastybrownies
7 Replies
10. UNIX for Advanced & Expert Users
Quite an obscure question I think.
We have a rebuild process for remote sites that allows us to PXE rebuild a till (actually a PC with a touch screen and various fancy bits) running CentOS. The current CentOS5 tills work just fine with a tar image restore and some personalisation. Sadly,... (4 Replies)
Discussion started by: rbatte1
4 Replies
LEARN ABOUT OSF1
groupdel
groupdel(8) System Manager's Manual groupdel(8)
NAME
groupdel - Deletes a group definition from the system
SYNOPSIS
/usr/sbin/groupdel [-P] [-x extended_option] group_name
OPTIONS
Creates a PC group only. The following extended_option attributes are available: Indicates whether or not the group is distributed. The
value of the distributed=n attribute can be 0 or 1. If set to 0, the group is deleted from the local system. If set to 1, the group is
deleted from the NIS master database on the running system. Indicates whether or not the group is local. The value of the local=n
attribute can be 0 or 1. If set to 1, the group is deleted from the local database. If set to 0, the group is deleted from the NIS master
database. Specifies the name of the group to be deleted from the system. The groupname must exist.
DESCRIPTION
The groupdel command lets the system administrator delete existing groups from the system, by group name. In addition, the system adminis-
trator can use the -x option to specify whether the group to be deleted is local or whether the group resides in the NIS master database.
If the -x option is not specified, the group is deleted from the appropriate database as specified by the system defaults.
The default behavior on the system for the groupdel command is distributed=0 and local=1. With these values, the system deletes the group
from the local database by default. Setting the distributed= and local= attributes to the same value (for example, distributed=0 and
local=0) produces an error.
When the Advanced Server for UNIX (ASU) is running, you can also delete PC groups consisting of members who are holders of Windows NT
domain accounts.
You must have superuser privilege to execute this command.
EXIT STATUS
The groupmod command exits with one of the following values: Success. Failure. Warning.
EXAMPLES
The following example removes the group, testgrp: % groupdel testgrp The following example removes the group, testgrp, from the local group
database: % groupdel -x local=1 testgrp The following example removes the PC users group, domainbdev, from the local group database: %
groupdel -P domainbdev
FILES
The groupdel command operates on the appropriate files for the specific level of system security.
SEE ALSO
Commands: groupadd(8), groupmod(8), useradd(8), userdel(8), usermod(8)
System Administration
Security
groupdel(8)