# Basics Linux command

#90DaysOfDevOps

# What is Linux?

Linux is a free and open-source operating system (OS). An operating system is software that directly manages the hardware and resources of a system, such as the CPU, memory, and storage. The operating system (OS) sits between applications and hardware, connecting all of your software to the physical resources that do the work.

# What is Linux command to:-

## Check your present working directory-

To check the present working directory we should use the **pwd** command which is shown below

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1677736421571/b832fd3c-8c6a-4512-bc3c-51403beb3109.png align="center")

## List all the files or directories including hidden files-

To view all of the system's directories and files, we use the **ls** command. **ls** displays a list of all current directories and files. We use **ls -l** to long list files and **ls -a** to display hidden files in the system. The **ls -la** command should be used to list all files and directories, including hidden files.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1677736987059/4cd5d08c-91dc-4e47-a675-df426d11ef85.png align="center")

## Create a nested directory A/B/C/D/E-

command to show the nested directory is **mkdir -p A/B/C/D.** Here -p is for making parent directories as needed.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1677737887513/a2627d98-5a10-4940-92d7-a67bd7ea78a5.png align="center")

Thanks for your valuable time to read my article. For more articles kindly follow me.

~Prabhakar Yadav
