Assuming the directory is in your Home directory use: rmdir directory-name
This will fail if there are files within the directory. In this case, use rm -r directory-name.
rmdir.
********
rmdir will only delete an empty directory. rm -r
ls will list the contents of a directory.
"rd" is a command which is "Remove directory" and the full form of the command would be "rmdir" depending on the OS used. It's commonly associated with UNIX or Linux based OS's.
RD command is used to remove a directory (folder).
RD command is used to remove a directory (folder).
In my opinion, the most commonly used Linux commands are: ls - list files and folders in a directory CD - change directory mkdir - make a directory cp - copy mv - move/rename rm - remove man - manual pages find - um, find Having a good command of all of these and you should be able to navigate around in the command line comfortably.
the commandrmdir will not remove a directory if it is not empty in UNIX. The correct way to remove a directory and all its contents recursively is with the rmcommand.
yum remove -y (specific package name)
If for example we wanted to make i subdirictory called foo in Linux or UNIX it you use mkdir foo to change into it you would use CD foo to remove the directory rmdir foo but this will only work if the directory is empty to remove the directory called foo when it is not empty use rm -rf foo but please be sure this is what you really want to do.
In order to zip a subdirectory in Linux you would use the zip command with the recursive flag to specify that it should add all files under that directory into the zip file. The command would then be zip -r .zip .
The Linux Filesystem Hierarchy is used to help determine the file structure in the Linux Operating System. It defines the Directory structure and directory contents.
In Linux the chmod command is used to set file permissions.
To delete directory and sub directory in single command, use "deltree" command..