Basic Linux & Windows Commands for Beginners

Mona Chawla
1 min readAug 27, 2023

--

Some basic commands used in Linux:🐧

  1. Opening a Terminal
  • Command: gnome-terminal

2. Opening File Manager

  • Command: nautilus

3. Copying Files

  • Command: cp

4. Moving Files

  • Command: mv

5. Deleting Files

  • Command: rm

6. Creating a New Folder

  • Command: mkdir

7. Listing Files and Directories

  • Command: ls

8. Changing Directory

  • Command: cd

9. Checking Disk Space

  • Command: df -h

10. Finding Process IDs

  • Command: pgrep process_name

11. Killing a Process

  • Command: kill process_id

12. Displaying File Content

  • Command: cat

13. Checking Memory Usage

  • Command: free -h

14. Checking Process Status

  • Command: ps aux

15. Checking CPU Info

  • Command: lscpu

16. Create Empty File

  • Command: touch

Some basic command for Windows:🪟

  1. Opening Command Prompt
  • Command: start cmd

2. Listing Files and Directories

  • Command: dir

3. Editing Text Files

  • Command: notepad

4. Opening File Explorer

  • Command: explorer

5. Opening Control Panel

  • Command: control panel

6. Opening Task Manager

  • Command: taskmgr

7. Opening Calender

  • Command: calc

8. del — Deletes a file.

Example: del unwanted_file.txt

9. cd — Changes the current directory.

Example: cd C:\Users\YourUserName\Desktop

10. mkdir — Creates a new directory (folder).

Example: mkdir NewFolder

11. rmdir — Removes (deletes) a directory.

Example: rmdir OldFolder

Thank you for reading🧡

--

--