How To Remove Directory In Linux

RegisterLogin
How To Remove Directory In Linux
Post Description: Today We Will Show You How To Delete Or Remove A Directory In A Linux System Server Or Computer Using A Shell Console Terminal Command
Tags: How, To, Remove, Directory, In, Linux
This Post Was Posted On Oct 12, 2009 By Webune #2553
welcome to Webune forums, today we are going to show you how to remove a directory in linux

to remove a directory in the shell console terminal send this command

rmdir


lets say i have a directory i dont need no more and its called oldfiles, this is how i would delete it

rmdir /home/user1/oldfiles


thats it
webune
#2564 1
man rmdir
RMDIR(1)     User Commands     RMDIR(1)

NAME
       rmdir - remove empty directories

SYNOPSIS
       rmdir [OPTION]... DIRECTORY...

DESCRIPTION
       Remove the DIRECTORY(ies), if they are empty.

       --ignore-fail-on-non-empty

              ignore  each  failure  that  is  solely  because  a directory is
              non-empty

       -p, --parents
              Remove DIRECTORY and its ancestors.  E.g., ârmdir -p  a/b/câ  is
              similar to ârmdir a/b/c a/b aâ.

       -v, --verbose
              output a diagnostic for every directory processed

       --help display this help and exit

       --version
              output version information and exit

AUTHOR
       Written by David MacKenzie.

REPORTING BUGS
       Report bugs to <bug-coreutils@gnu.org>.

COPYRIGHT
       Copyright Ã�© 2006 Free Software Foundation, Inc.
       This  is  free  software.   You may redistribute copies of it under the
       terms      of      the      GNU      General       Public       License
       <http://www.gnu.org/licenses/gpl.html>.   There  is NO WARRANTY, to the
       extent permitted by law.

SEE ALSO
       The full documentation for rmdir is maintained as a Texinfo manual.  If
       the  info  and  rmdir programs are properly installed at your site, the
       command

              info rmdir

       should give you access to the complete manual.

rmdir 5.97                       January 2009                         RMDIR(1)
Oct 12, 2009 Reply Report abuse
©2012 Webune Forums - Sat Dec 15, 2012 12:18 pm
Powered by: Webune Forums V3