Remove Directory - rmdir Assignment Help

Assignment Help: >> Unix Files and Directories - Remove Directory - rmdir

rmdir

This command can be used to remove directories when they are no longer required. Before removing a directory it should be ensured in which it does not hold any files that are it should be empty. The directory will not be removed if there are files in the directory when rmdir is executed.

Syntax

rmdir [ [options] dir-name ]

For instance,

# cd /user/sunil/fruits/

# rmdir apple

By this code the directory apple is removed. The user has to modify to the corresponding parent directory, only then the files could be deleted.

Note: The directories which have to be removed must be empty. The blank directory has two entries, the Dot (.) representing itself and the..(dot dot ) displaying the parent directory. Further than one directory can be removed at a time.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd