Welcome -
Guest!
Login
/
Register Now
|
Search:
Home
Articles
Forum
Interview FAQ
Activities
News
Videos
Poll
Links
People
Groups
Unix / Linux / Ubuntu Articles
Submit Article
Home
»
Articles
»
Unix / Linux / Ubuntu
»
Commands
RSS Feeds
Remove a directory - rmdir
Posted By:
Reggie Fischer
Category:
Unix / Linux / Ubuntu
Views:
2041
This article explains about rmdir command with an example in unix.
rmdir command is used to remove a directory in unix.
• Can only remove if directory is empty.
Syntax of rmdir Command
rmdir dirName
Example of rmdir Command
rmdir myFolder
rmdir OfficeDocuments
rmdir: OfficeDocuments: Directory not empty
Share:
Previous Post:
Create a directory - mkdir
Next Post:
Concatenate, copy, print files - cat
Didn't find what you were looking for? Find more on
Remove a directory - rmdir
Or get
search suggestion and latest updates
.
Reggie Fischer
author of Remove a directory - rmdir is from Frankfurt,
Germany
.
View All Articles
Related Articles and Code:
Removing files and directories - rm
Remove entire directory structure
How to create a directory and remove a directory?
Script to make File and Directory Management Operations menu based : Display Current directory, List Directory, Make Directory, Change Directory etc
Shell script to check whether inputted directory is in current directory or not
Shell script that prints names of all sub-directories present in the current directory
Shell script that prints names of all sub-directories present in the current directory
Program to read all words from a file and remove all words which are palindromes
Write a menu driven shell script for Copy a file, Remove a file, Move a file
Program to remove leading, trailing or internal spaces in a string
Write a shell script that takes a file names as a argument and deletes this file from every directory above the present working directory.
Unix Commands and description of ls,logout,mkdir,rmdir,rm,cd,man,talk,write,pico,pine,more,sz,rz,telnel,ftp,archie,irc,lynx,gopher,tin,trn,passwd etc
Perform directory operations like display current , list, Make, Change directory and file operations like Copy, Rename, Delete, Edit based on menu
Create a directory - mkdir
Copy file and directory subtrees - cp
Move or Rename file and directories - mv
Shell script to perform operations like display, list, make directory and copy, rename, delete, edit file
write a script to delete zero sized files from a given directory (and all its subdirectories)
How delete directory with files?
Program to find the current working directory
Other Interesting Articles in Unix / Linux / Ubuntu:
Unix Commands and description of ls,logout,mkdir,rmdir,rm,cd,man,talk,write,pico,pine,more,sz,rz,telnel,ftp,archie,irc,lynx,gopher,tin,trn,passwd etc
Removing files and directories - rm
Shell script to check dir directory if it exists then change the path, if not then create dir with that name and also check for file name not exists
Write a shell script to find how many terminals has this user logged in
Shell Script combine file in one file horizontally and vertically
Write a shell script to reverse a number supplied by a user
How delete directory with files?
Add a new group to the system - groupadd
Write a shell script to reverse the contents of a file
Calculate 3+4+5+6
Program to perform all SUBTRACTION on two operands : (decimal, binary, octal,hexadecimal)
Execute the command which display login name, the name of your terminal and date and time of since user logged in
Script to make File and Directory Management Operations menu based : Display Current directory, List Directory, Make Directory, Change Directory etc
Change a permission of a file
Program to convert and print this distance in meters, feet, inches and centimeters
Program to count length of user input string
Write a shell program to count number of words, characters,white spaces and special symbols in a givin text
Write a shell program to add, subtract and multiply the 2 given numbers passed as command line arguments
Shell script to change extension of an existing file
Changing current directory - cd
Please enter your Comment
*
*
Comment should be atleast 30 Characters.
Please put code inside [Code] your code [/Code].
Please login to post comment
No Comment Found, Be the First to post comment!
Unix / Linux / Ubuntu
View All
Advance
Basics
Commands
Homework Help
Interview FAQ
Terms and Terminology
Assembly Language
Artificial Intelligence
C Programming
C++ Programming
Visual C++
OOAD
Cobol
Java
SQL Server
Asp.net MVC
Rest and WCF Services
Entity Framework
Knockout.Js
Networking
OOPs Concept
HTML
Dos
SQL
System Analysis & Design
Gadgets
Internet
CSS
Javascript
.Net Framework
Asp.net
C#
VB.Net
Python
Perl
Oracle
Software Engineering
RDBMS Terms
AJAX Framework
Design Pattern
UML
WPF
WCF
SEO
PowerShell
Visual Studio
WWF
BizTalk Server
Azure
General
Testing
Online Certifications
PHP
My SQL
LinQ
Project Management
Silverlight
XML
MS Office
Windows OS
DHTML
Sharepoint