# Basics Linux Command

## **Table of contents**

* [Introduction](https://nikhil16.hashnode.dev/basics-linux-command#heading-introduction)
    
* [Basics Linux Command](https://nikhil16.hashnode.dev/basics-linux-command#heading-basics-linux-command)
    
* [Check your present working directory](https://nikhil16.hashnode.dev/basics-linux-command#heading-check-your-present-working-directory)
    
* [List all the files or directories including hidden files](https://nikhil16.hashnode.dev/basics-linux-command#heading-list-all-the-files-or-directories-including-hidden-files)
    
* [Create a nested directory A/B/C/D/E](https://nikhil16.hashnode.dev/basics-linux-command#heading-create-a-nested-directory-abcde)
    

Day - 2 #90daysofdevopschallenge

**Introduction -**

On Day 02 of the 90-Day Challenge, we explore Linux, an operating system that serves as a mediator by offering an interface and services that allow users to engage with computer hardware and software. By abstracting technical complexities, enforcing access control, and providing a flexible environment, Linux enables effective computer usage. As a free and open-source operating system, it is suitable for personal computers and workstations, boasting professional-level internet services, comprehensive development tools, a fully functional graphic user interface, and a wide array of applications, including office suites and multimedia applications.

**What is an operating system?**

An operating system is a program that manages computer hardware and software for users.

**What is Open source?**

Open source means that the source code for an application is freely distributed along with the application.

Basics Linux Command:

[1.ls](http://1.ls) - List files and directories in the current directory.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1707144950419/344e9737-0f9f-46cc-bce2-5b93dfcc3daa.png align="center")

[2.cd](http://2.cd) - Change directory.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1707144965792/50897427-b516-461f-9802-3ce391146942.png align="center")

3.mkdir - Create a new directory.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1707144984827/b050564e-033f-47e1-ad68-c1786d056044.png align="center")

4.pwd - Check your present working directory.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1707144998357/229befb8-ee21-49d6-bfba-ce0ec83962a1.png align="center")

5.rmdir - Remove an empty directory.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1707145015568/7daaebff-e1b8-4b5d-86ec-3f0691ef04f4.png align="center")

6.touch - Create an empty file.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1707145036431/1088f2a6-350a-405c-86df-345275ee1495.png align="center")

[7.cat](http://7.cat) - Display the contents of a file.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1707145047499/c4c89351-3e1d-4c9a-9069-eb9d840d9632.png align="center")

8.List all the files or directories including hidden files

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1707145065404/9422dad5-e78c-469f-b207-a657a9cd9fb6.png align="center")

9.Create a nested directory A/B/C/D/E

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1707145083686/4e7e9b98-b00a-441d-b23e-913f2cc15b0f.png align="center")

 10.forcefully delete any file/directory

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1707145100329/4615d1b3-dc24-4fbd-93b8-acc6e67d422f.png align="center")

11.current date & time

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1707145113982/f5db69f6-d6a1-4292-8d8f-481ab999e75e.png align="center")

12.check which user you have login:

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1707145127406/083f1fa6-b952-4fb5-b6f3-735ecaf37280.png align="center")
