Basic Linux command
#90DaysOfDevOps
#Day02:
Command to check your present working directory:-
To check in which directory you are working ,
pwd
command is used.List all the files or directories including hidden files:-
To list all the files and directories in the present working location we use
ls
command. To list hidden files/folders we use:ls -a
we can also use la
command in place of ls -a
.It will also give you the same output as shown above. As la
is an alias for ls -A.
Create a nested directory A/B/C/D/E:-
- We use
mkdir
to make directories. To make a nested directory we use the commandmkdir -p A/B/C/D
..
tree
command is to list directory content in a tree-like format. To use the tree command you will have to download it using sudo apt-get install tree
command.
Thank you for reading!!
Great initiative by the #trainwithshubham community.