Creating and deleting Directory - 13 advanced practical Examples
mkdir F1
Creating directory at the current location using relative path
mkdir /home/user/F2
Creating directory at the current location using absolute path
mkdir /opt/F3
Creating directory at any location using absolute path
mkdir F4 F5 F6
Creating multiple directories at the current location
mkdir –p F7/F8
Creating parent and child directives at the current location
mkdir –m 751 F9
Set the directory permissions while creating the directory
mkdir –v F10
To display the verbose message while creating directory
mkdir --version
To check the mkdir version
rmdir F1
Remove directory at the current location using relative path
rmdir /home/user/F1
Creating directory at the current location using absolute path
rm -rf /etc/FolderName
Deleting directory having the contents (files and folders)
rm –i F1.txt
Creating multiple directories at the current location
rmdir –p F7/F8
Removing nested parent and child directives at the same time