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:
2105
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:
Write a shells scripts which will receives a list of filenames,the first of whch would be wordfile
Script to make File and Directory Management Operations menu based : Display Current directory, List Directory, Make Directory, Change Directory etc
Shell Script to create a pyramid of number
Write a shell script to find the sum, the average and the product of the four integers entered
Script to find the value of one number raised to the power of another
Shell script that takes filename or the filename with its full path as an input during execution and display ls -l command result for inputted file
write a script to delete zero sized files from a given directory (and all its subdirectories)
Display information about computer system - uname
Shell script that prints names of all sub-directories present in the current directory
Write a shell program to concatenate the contents of 2 files
Write a shell program to find the position of substring in given string
Program to calculate the factorial of a number
Write a menu driven shell script for Copy a file, Remove a file, Move a file
Ex mode command in unix
Show current directory - pwd
Write a shell scripts that finds total no. of users and finds out how many of them are currently loggedin
Program to perform operations like Count char,words and lines of file, display file in reverse, change case and frequency of a particular word in file
How would you display the calendar of 2007?
Display file in column format
Write a shell program to display the alternate digits in a given 7 digit number starting from the first digit
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