# Day-2 Basic Linux Command

### *<mark>Check your present working directory.</mark>*

for the present working directory, open your terminal and press: <mark>pwd</mark>

*example:*

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1679591761599/4dd64bde-c18f-482a-91d0-c8d58911f877.png align="left")

## <mark>List all the files or directories including hidden files.</mark>

For list out all files, command = <mark>ls</mark>

*example:*

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1679592236242/9593fa5f-da9b-4455-9c79-4cd4ba51acd4.png align="left")

But, for list out all files with all hidden files then, <mark>ls -a</mark>

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1679592308730/55f01aac-f66e-48bd-a5c5-ec55741af6d5.png align="left")

## <mark>Create a nested directory A/B/C/D/E</mark>

use <mark>mkdir -p A/B/C/D/E</mark>

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1679593027385/fa3edf54-d485-4e5a-87da-23b3d7d58a7e.png align="left")

*note: use <mark>cd </mark> command to select the folder. <mark>mkdir </mark> used to create a single directory. But, <mark>mkdir -p </mark> is used to create sub-directories under a directory.* <mark>-p</mark> means path of directories .

*Thank you for reading!!*

Great initiative by the #trainwithshubham community. Thank you **Shubham Londhe**

#devops #90daysofdevops
