# Basic linux commands

Hello Everyone, so Today is day 2 of learning DevOps #100daysDevops

some basic commands I have already shared in a previous blog in this blog we can see some more important commands needed while working with DevOps.

1. ls - List of files or directories available in pwd(present working directory)
    
2. ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728303094521/c409da54-5c07-49a1-a155-c2367b47e2c7.png align="center")
    
    ls -l It is used to see the files in list format with permissions and date and time of creation.
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728303236186/14b9c1f4-8d2d-4eb0-859d-0dbbb600c136.png align="center")
    
    ls -a : it is used to check the hidden files from present working directory
    

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728303464205/6b79e231-832c-449a-b4cb-6be2f260e0dd.png align="left")

ls -i : it is used to list the files and directories with index numbers inodes

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728303664436/5f45067d-0319-4506-b2a9-120e5f6945b4.png align="center")

ls -d \*/ : it is used to list only directories.(we can also specify a pattern)

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728303753450/94ec39e5-12bc-4d5e-8503-2f372d6109a7.png align="left")

let’s see some Directory commands

pwd: To check which directory we are currently in.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728304221884/af807b2e-6cfc-4e01-b55d-f54d3558f18e.png align="left")

cd Dir\_Name: It is used to change the directory to the provided path

* ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728304497386/74b6560a-5878-47f0-bf64-db211429adaf.png align="left")
    

cd..: It is used to change to the previous directory.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728304619624/0d4a20b7-2be1-4973-98ce-098735579379.png align="center")

mkdir directoryName: It is used to make a Directory for the same location.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728304773691/175fb7d3-988a-4529-9b44-0e60ad3de88a.png align="center")
