# #Day2  
Basic Linux Commands

### **Linux Commands**

1. PWD: **Checking Your Present Working Directory:**
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1681581681069/1b52bb60-d151-4be8-89d7-e007192688cd.png align="left")
    
2. **ls: Listing All Files and Directories Including Hidden Files:**
    
3. ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1681581922676/30105c85-e1f0-43d1-85b9-df69e10547a9.png align="center")
    
    **cd: Navigating to a Different Directory**
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1681582787408/1f2e90e9-b89c-4d6a-89ef-081c364331d2.png align="center")
    
4. **Sudo:** This command executes only that command with superuser privileges.
    
5. ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1681582654485/233f4ff1-d728-4a89-b3e3-85bd0aa4e0e8.png align="center")
    
    **cat:To view what's written in a file**
    
6. ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1681582937774/bb58fd5e-c9ab-41b7-92fc-1a72a421a0b4.png align="center")
    
    **cp : Copying Files and Directories:**
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1681583196804/b4c7b28a-123a-49a5-8789-6aeaff70b556.png align="center")
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1681583275180/4031822a-a8fe-4528-9ae8-2ffb29d1cccd.png align="center")
    
7. **mv : Moving and Renaming Files and Directories:**
    
8. ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1681583382658/976db825-474d-423b-a532-97aa432e2b7a.png align="center")
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1681583450731/fe639a25-6c42-466e-9d18-64726db287f1.png align="center")
    
    **rm : Deleting Files and Directories:**
    
9. ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1681583534731/5569a410-f34c-4729-9c09-0d32057cc388.png align="center")
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1681583553866/294082da-4b5e-4a39-94cb-7b6a4bb92d48.png align="center")
    
    **Creating a Nested Directory A/B/C/D/E:**
    
10. ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1681583759566/3c52c30a-6eb6-4351-8bf6-796a675c34bd.png align="center")
    
    **Vim: This is a text editor used in Linux. It stands for “Vi Improved”.**
    
11. ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1681584069796/8176f00f-8f6c-47d3-a389-7ab89d87b230.png align="center")
    
12. **Lsof:** It is used to display a list of all the open files on a Linux system.
    
13. ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1681584035636/2a08f9da-7ebb-485b-94e3-d04ca3bf7312.png align="center")
    
    **History:** This command is used to view the previously executed command.
    
14. ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1681584150453/ee6d1201-8025-4f3b-b3c3-fd435f42c9a8.png align="center")
