Directories
pwd ---------------------- >>> present working directory(home directory)\/home/haritaraka12078
Move from one Directory to another directory
cd ---------------------- >>> will go to root/home
cd.. ---------------------- >>> Previous directory
cd d1/d2 ---------------------- >>> Go to directly to the Directory(d2)
Directory Creating
mkdir hari_dir --------------------- >>> Making directorymkdir -p d1/d2/d3/d4 --------------------- >>> Making directory one inside another one at a time
Output: : P means Parent, d1->d2, d2->d3, d3->d4
mkdir -p abc{1..4} --------------------- >>> Create multiple directories with same prefix(abc)
output: abc1, abc2,abc3,abc4
Directory Removing
- rm ------ >>> file delete file
- rm -r dir ------ >>> delete directory dir
- rm -f file ------ >>>force remove file
- rm -rf dir ------ >>> force remove directory dir *
rmdir hari_dir1 --------------------- >>> For delete / remove directory
- Note: rmdir hari_training
- rmdir: failed to remove ‘hari_training’: Directory not empty
rm -r abc{1..2} --------------------- >>> It will delete the directories (abc1, abc2)