Directory Commands

Unix : 

Directory  Commands:

cd : Change directory, helped to  change/move to directory from current directory

cd omsai

cd ..    → moving to backward directory from current directory

cd ~ → moving directly to root directory

mkdir : creating directory

mkdir user1

mkdir user2 usr3 user4 → creating multiple directories at a time

mv: renaming directory

mv user4 user8 - renames use4 to user8

rmdir - removes directory, the only directory does not contain any files

rmdir user8 → removes user8 directory

rm -r user9 → removes directory including files. -r recursively

pwd : knowing present working directory

Comments

Popular posts from this blog

Process/Job Control Commands

Information Commands

Miscellaneous and Shell Programing Commands