How to create Directory and some other commands

Create a directory/folder

mkdir <directory name>

Create Multiple directories

mkdir dir1 dir2 dir3

List display types

ls -l (l- long, display details of files)

 Create Hidden file:

touch .filename (.- hidden)

Create Hidden directory:

mkdir .<directory name> (.- hidden)

Display all files and directories with hidden also:

ls -a (a- all)
ls -al / ls -la (al - all and long)

Display order<sort> in details

ls -lta (l-long, t-time, a-all)

Create directory and create inside directory

[one folder inside another folder]

mkdir -p dira/dirb/dircĀ 

Display where you are

pwd (print work directory)

Display used command


Leave a Reply

Your email address will not be published. Required fields are marked *