How does one move a directory, whether empty or full, as superuser? I tried rm -d dir but I got the message that dir is a directory! Thanks dj tuchler
man rm: "By default, it does not remove directories." Option -r, -R, --recursive: Remove the contents of directories recursively Danger! Especially as su! ------------------------------------------------- Frank Hrebabetzky Tel./Fax: +55 / 48 / 235 1106 Florianopolis email: frankh@terra.com.br Brazil On Tue, 2 Apr 2002, Dennis Tuchler wrote:
How does one move a directory, whether empty or full, as superuser? I tried rm -d dir but I got the message that dir is a directory!
Thanks
dj tuchler
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com
DJ, To move a folder (full or not) from place to place you will want to use the mv command. # mv folder1 /etc will then look like /etc/folder1 (You are moving folder1 under the /etc folder) To remove a folder that is empty, use the rmdir $foldername command. To remove a folder that is not empty, use the rm -rf $foldername HTH! ============================================ Drew J. Como Phone: 631-434-6600 Systems Administrator Fax: 631-434-7800 dcomo@bascom.com Web: www.bascom.com Bascom Global Internet Services, Inc. -------------------------------------------- "When quality is the goal, winning is guaranteed." -----Original Message----- From: Dennis Tuchler [mailto:dtuchler@earthlink.net] Sent: Tuesday, April 02, 2002 3:39 PM To: S.u.S.E. mailing list Subject: [SLE] removing directories as su How does one move a directory, whether empty or full, as superuser? I tried rm -d dir but I got the message that dir is a directory! Thanks dj tuchler -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com
participants (3)
-
Dennis Tuchler
-
Drew J. Como
-
frankh@terra.com.br