Users Online

· Guests Online: 46

· Members Online: 0

· Total Members: 188
· Newest Member: meenachowdary055

Forum Threads

Newest Threads
No Threads created
Hottest Threads
No Threads created

Latest Articles

rmdir Command Usage Examples in Linux

“rmdir” Command Usage Examples in Linux

This tutorial explains Linux “rmdir” command, options and its usage with examples.

rmdir – remove empty directories.

 

DESCRIPTION

This command is used to remove the DIRECTORY(ies), if they are empty.

SYNOPSIS

rmdir [OPTION]… DIRECTORY…

OPTION :

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

EXAMPLES

1.

$ rmdir mydir

Removes the directory mydir.

2.

$ rmdir -p mydir1/mydir2/mydir3/

Removes the directory mydir3 and its parents(mydir2 & mydir1) too recursively if they are empty.

Comments

No Comments have been Posted.

Post Comment

Please Login to Post a Comment.

Ratings

Rating is available to Members only.

Please login or register to vote.

No Ratings have been Posted.
Render time: 0.67 seconds
10,818,168 unique visits