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:
1910
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:
Count no.of lines in file abc?
write a script to delete zero sized files from a given directory (and all its subdirectories)
Sort file abc.txt and save this sorted file in xyz.txt
Program to perform all SUBTRACTION on two operands : (decimal, binary, octal,hexadecimal)
How would u display the hidden files?
Program to count length of user input string
Program to calculate the sum of its digits
Change User - su
Wild cards and examples in unix
Combine two files to a single file
Display file in column format
Shell Script to create a Menu Driven program : Hard Link, Soft Link, Counting each of the links for a specific link and Display the soft-links
menu driven shell program which have the options change the term, change the prompt and user list of unix system.
How to create a directory and remove a directory?
Write a shell scripts that finds total no. of users and finds out how many of them are currently loggedin
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 program to count number of words, characters, white spaces and special symbols in a given text
Write a shell script that takes a file names as a argument and deletes this file from every directory above the present working directory.
Terminate a process - kill
Navigation command in unix
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