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:
2019
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 words in file abc?
Write a menu driven program to display message, user name, terminal name, login date and time
Pipes examples in unix
Write a shell script to ask your name, program name and enrolement number and print it on the screen
Write a shell program to count number of words, characters,white spaces and special symbols in a givin text
Shell script for following conditions. Take two files as input and run spell command on it, Collect a list of potential spelling errors, modify file
Write a script to count and report the number of entries in each subdirectory mentioned in the path, which is supplied as a command-line argument
Write a Script to Broadcast a message to a specified user when the user loged on any terminal
Write a shell program to concatenate the contents of 2 files
Shell script to change extension of an existing file
Move or Rename file and directories - mv
Remove entire directory structure
Find the lines containing a number in a file
Shell Script combine file in one file horizontally and vertically
Shell script which takes year as an input and displays whether it is leap year or not. If year is not provided then take current year as an input
Write a shell program to display the alternate digits in a given 7 digit number starting from the first digit
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)
Write a shell script to find the average of the numbers entered in command line
Program to perform all ADDITION on two operands : (decimal, binary, octal,hexadecimal)
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