Sponsored Content
Full Discussion: Undo delete
Top Forums UNIX for Advanced & Expert Users Undo delete Post 60500 by zazzybob on Tuesday 18th of January 2005 05:42:32 AM
Old 01-18-2005
Let's say the backup is located at /backup/home_archive.tar

If you do
Code:
cd /backup
tar xvf home_archive.tar "home/tom/*"

You'll recursively restore home/tom to /backup, so the restored home directory is located at /backup/home/tom

Cheers
ZB
 

10 More Discussions You Might Find Interesting

1. AIX

undo installation on AIX 4.3

Hi, How can I undo installation of a package on AIX 4.3 properly? It's an install script. On linux, I usually just kill the process and delete from disk with this command "find .... exec rm -r {}\;". And it usually works. Can I do the same with AIX 4.3? Thanks, Itik (2 Replies)
Discussion started by: itik
2 Replies

2. Red Hat

how to undo the last installed update on fedora.

Hi All, I'm a newbie to system administration, I'd like to know how to check the logs (what update was installed last) , and I'd like to know how to undo the last update on the fedora 9 system ( kindof an equivalent to system restore in windows). I have a HP 22 inch monitor, when I installed... (3 Replies)
Discussion started by: ramky79
3 Replies

3. HP-UX

Undo vgextend

Hi I had extended one of the FS yesterday as rsync was failing and the temp solution was to extend it to 4GB while we worked on cron script. spthrv01:/root# bdf /p05 Filesystem kbytes used avail %used Mounted on /dev/vg232/lvol1 130940928 82208608 48385792 63% /p05 ... (5 Replies)
Discussion started by: hedkandi
5 Replies

4. Shell Programming and Scripting

Doing undo in Vi editor

I generally use 'u' to do undo in vi editor. The problem is that it only does one level of undo. Is it possible to recursively undo all the changes in vi editor till we reach the original stage. (2 Replies)
Discussion started by: paragkalra
2 Replies

5. UNIX for Dummies Questions & Answers

How do I undo a link?

Hi. Newbie here....so Unix for Dummies question for sure. I was compiling a piece of software and having problems and somebody suggested: sudo ln -s /usr/X11 /usr/X11R6 Didn't work. How do I undo this? I am on a Mac OS X snow leopard. I figure it is something with the unlink command... (7 Replies)
Discussion started by: stoucha
7 Replies

6. Shell Programming and Scripting

Undo in unix

Hi All, Is there any undo option is there in unix same as recycle bin in windows? (5 Replies)
Discussion started by: Jairaj
5 Replies

7. Solaris

disabled nwam - how to undo?

I installed Solaris 11 Express on my machine and connected to it remotely using putty. I then run the svcadm disable /network/physical:nwam command to stop the NWAM service. Now I cannot connect to the Solaris machine remotely anymore, but I have physical access to it as well. How do I undo... (1 Reply)
Discussion started by: RychnD
1 Replies

8. Shell Programming and Scripting

Need to undo hyphenation in columns

I have a file with two columns (output from Tivoli Storage Manager) where each column has 13 character spaces and they are separated by 5 spaces. The columns are schedule names and node names and many of them are longer than 13 characters so they get hyphenated by TSM during the output. I... (3 Replies)
Discussion started by: jongudm
3 Replies

9. AIX

mount /test / is it possible to undo?

Hello! As a totally newbie I was testing 'mount' command but it doesn't worked for me. then finally I used this commend above 'mount /test / ' - and sever doesn't respond now :/ Is it possible to undo somehow this commanand? (5 Replies)
Discussion started by: jui_01
5 Replies

10. Shell Programming and Scripting

How to Undo overwrite file in UNIX?

Hi, Could anyone please advise if its possible in unix to undo the changes for a file that has been overwrriten. By mistake i have overwritten a file and now i need the original file, is there a way? Please Help!!! (2 Replies)
Discussion started by: mail.chiranjit
2 Replies
DELUSER(8)						      System Manager's Manual							DELUSER(8)

NAME
deluser, delgroup - remove a user or group from the system SYNOPSIS
deluser [options] [--force] [--remove-home] [--remove-all-files] [--backup] [--backup-to DIR] user deluser --group [options] group delgroup [options] [--only-if-empty] group deluser [options] user group COMMON OPTIONS [--quiet] [--system] [--help] [--version] [--conf FILE] DESCRIPTION
deluser and delgroup remove users and groups from the system according to command line options and configuration information in /etc/deluser.conf and /etc/adduser.conf. They are friendlier front ends to the userdel and groupdel programs, removing the home directory as option or even all files on the system owned by the user to be removed, running a custom script, and other features. deluser and del- group can be run in one of three modes: Remove a normal user If called with one non-option argument and without the --group option, deluser will remove a normal user. By default, deluser will remove the user without removing the home directory, the mail spool or any other files on the system owned by the user. Removing the home directory and mail spool can be achieved using the --remove-home option. The --remove-all-files option removes all files on the system owned by the user. Note that if you activate both options --remove-home will have no effect because all files including the home directory and mail spool are already covered by the --remove-all-files option. If you want to backup all files before deleting them you can activate the --backup option which will create a file username.tar(.gz|.bz2) in the directory specified by the --backup-to option (defaulting to the current working directory). Both the remove and backup options can also be activated for default in the configuration file /etc/deluser.conf. See deluser.conf(5) for details. If you want to remove the root account (uid 0), then use the --force parameter; this may prevent to remove the root user by accident. If the file /usr/local/sbin/deluser.local exists, it will be executed after the user account has been removed in order to do any local cleanup. The arguments passed to deluser.local are: username uid gid home-directory Remove a group If deluser is called with the --group option, or delgroup is called, a group will be removed. Warning: The primary group of an existing user cannot be removed. If the option --only-if-empty is given, the group won't be removed if it has any members left. Remove a user from a specific group If called with two non-option arguments, deluser will remove a user from a specific group. OPTIONS
--conf FILE Use FILE instead of the default files /etc/deluser.conf and /etc/adduser.conf --group Remove a group. This is the default action if the program is invoked as delgroup. --help Display brief instructions. --quiet Suppress progress messages. --system Only delete if user/group is a system user/group. This avoids accidentally deleting non-system users/groups. Additionally, if the user does not exist, no error value is returned. This option is mainly for use in Debian package maintainer scripts. --only-if-empty Only remove if no members are left. --backup Backup all files contained in the userhome and the mailspool-file to a file named /$user.tar.bz2 or /$user.tar.gz. --backup-to Place the backup files not in / but in the directory specified by this parameter. This implicitly sets --backup also. --remove-home Remove the home directory of the user and its mailspool. If --backup is specified, the files are deleted after having performed the backup. --remove-all-files Remove all files from the system owned by this user. Note: --remove-home does not have an effect any more. If --backup is specified, the files are deleted after having performed the backup. --version Display version and copyright information. RETURN VALUE
0 The action was successfully executed. 1 The user to delete was not a system account. No action was performed. 2 There is no such user. No action was performed. 3 There is no such group. No action was performed. 4 Internal error. No action was performed. 5 The group to delete is not empty. No action was performed. 6 The user does not belong to the specified group. No action was performed. 7 You cannot remove a user from its primary group. No action was performed. 8 The required perl-package 'perl modules' is not installed. This package is required to perform the requested actions. No action was performed. 9 For removing the root account the parameter "--force" is required. No action was performed. FILES
/etc/deluser.conf Default configuration file for deluser and delgroup /usr/local/sbin/deluser.local Optional custom add-ons. SEE ALSO
adduser(8), deluser.conf(5), groupdel(8), userdel(8) COPYRIGHT
Copyright (C) 2000 Roland Bauerschmidt. Modifications (C) 2004 Marc Haber and Joerg Hoh. This manpage and the deluser program are based on adduser which is: Copyright (C) 1997, 1998, 1999 Guy Maor. Copyright (C) 1995 Ted Hajek, with a great deal borrowed from the original Debian adduser Copyright (C) 1994 Ian Murdock. deluser is free software; see the GNU General Public Licence version 2 or later for copying conditions. There is no warranty. Debian GNU/Linux Version 3.116ubuntu1 DELUSER(8)
All times are GMT -4. The time now is 02:58 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy