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:
2246
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:
Display your current working directory
Redirection in unix
Write a shell script to ask your name, program name and enrolement number and print it on the screen
Shell script that prints names of all sub-directories present in the current directory
Shell script to check whether inputted directory is in current directory or not
Shell script which whenever gets executed displays the message “Good Morning/Good afternoon /Good Evening “depending on the time it get executed"
Shell script to print first 5 odd numbers
Copy abc.txt into xyz
Collect system diagnostic message to from error log - dmesg
Explain the difference between echo “$SHELL” and echo ‘$SHELL’
Write a shell scripts that finds total no. of users and finds out how many of them are currently loggedin
Update access, modification, and / or change times of file - touch
Write a shell script to sort the given numbers in descending order using Bubble sort
How would you know machine’s name in the network?
Calculate 3+4+5+6
Which command display version of the UNIX?
Display content of a file - more
Write a shell program to display the alternate digits in a given 7 digit number starting from the first digit
Input mode command in unix
Count no.of words in file abc?
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