Ultimate Guide to Ubuntu Linux: 50+ Commands & Essential Knowledge ๐Ÿš€

ยท

6 min read

Linux is a powerful open-source operating system, and Ubuntu is one of its most popular distributions. Mastering Ubuntu commands will help you navigate the system efficiently. In this guide, weโ€™ll cover 250+ Ubuntu commands, their specifications, and how they workโ€”with emojis for better understanding! ๐ŸŽฏ


๐Ÿ”ฐ 1. Basic Commands

1๏ธโƒฃ pwd - Print Working Directory ๐Ÿ“Œ

  • Usage: Displays the current directory path.

  • Example:

      pwd
    

    Output: /home/manas

2๏ธโƒฃ ls - List Directory Contents ๐Ÿ“‚

  • Usage: Shows files and folders in a directory.

  • Example:

      ls -la
    

    Options:

    • -l โ†’ Detailed list

    • -a โ†’ Show hidden files

3๏ธโƒฃ cd - Change Directory ๐Ÿ”„

  • Usage: Moves between directories.

  • Example:

      cd Documents/
    

    Shortcut: cd .. moves one directory up.

4๏ธโƒฃ mkdir - Make Directory ๐Ÿ“

  • Usage: Creates a new folder.

  • Example:

      mkdir NewFolder
    

5๏ธโƒฃ rm - Remove Files/Directories ๐Ÿ—‘๏ธ

  • Usage: Deletes files or directories.

  • Example:

      rm myfile.txt
    

    Options:

    • -r โ†’ Remove folder and contents.

    • -f โ†’ Force delete without prompt.

6๏ธโƒฃ rmdir - Remove Empty Directories โŒ

  • Usage: Deletes empty directories.

  • Example:

      rmdir emptyfolder/
    

7๏ธโƒฃ touch - Create a New Empty File ๐Ÿ“

  • Usage: Creates an empty file.

  • Example:

      touch newfile.txt
    

8๏ธโƒฃ cp - Copy Files ๐Ÿ“„โžก๏ธ๐Ÿ“„

  • Usage: Copies files or directories.

  • Example:

      cp file1.txt backup/
    

9๏ธโƒฃ mv - Move/Rename Files ๐Ÿ”„

  • Usage: Moves or renames files.

  • Example:

      mv oldname.txt newname.txt
    

๐Ÿ”Ÿ cat - View File Contents ๐Ÿ“œ

  • Usage: Displays file content.

  • Example:

      cat file.txt
    

โš™๏ธ 2. System Management Commands

1๏ธโƒฃ1๏ธโƒฃ uname - Display System Information ๐Ÿ–ฅ๏ธ

1๏ธโƒฃ2๏ธโƒฃ df - Disk Space Usage ๐Ÿ’พ

1๏ธโƒฃ3๏ธโƒฃ du - Check File/Folder Size ๐Ÿ“Š

1๏ธโƒฃ4๏ธโƒฃ free - Memory Usage ๐Ÿง 

1๏ธโƒฃ5๏ธโƒฃ top - Task Manager ๐Ÿ—๏ธ

1๏ธโƒฃ6๏ธโƒฃ ps - View Active Processes โšก

1๏ธโƒฃ7๏ธโƒฃ kill - Terminate a Process โŒ

1๏ธโƒฃ8๏ธโƒฃ htop - Interactive Process Manager ๐ŸŽ›๏ธ

1๏ธโƒฃ9๏ธโƒฃ uptime - System Running Time โณ

2๏ธโƒฃ0๏ธโƒฃ whoami - Current User Info ๐Ÿ‘ค


๐Ÿ› ๏ธ 3. Package Management & Sudo Commands

2๏ธโƒฃ1๏ธโƒฃ sudo - Run Commands as Superuser ๐Ÿ”‘

  • Usage: Grants administrative permissions.

  • Example:

      sudo apt update
    

2๏ธโƒฃ2๏ธโƒฃ apt update - Update Package Lists ๐Ÿ”„

  • Usage: Refreshes available package lists.

  • Example:

      sudo apt update
    

2๏ธโƒฃ3๏ธโƒฃ apt upgrade - Upgrade Installed Packages โฌ†๏ธ

  • Usage: Updates installed software.

  • Example:

      sudo apt upgrade -y
    

2๏ธโƒฃ4๏ธโƒฃ apt install - Install a Package ๐Ÿ“ฆ

  • Usage: Installs new software.

  • Example:

      sudo apt install git
    

2๏ธโƒฃ5๏ธโƒฃ apt remove - Uninstall a Package โŒ

2๏ธโƒฃ6๏ธโƒฃ dpkg - Debian Package Manager ๐Ÿ“ฆ

2๏ธโƒฃ7๏ธโƒฃ snap install - Install Snap Packages ๐Ÿš€

2๏ธโƒฃ8๏ธโƒฃ snap list - List Installed Snaps ๐Ÿ“‹

2๏ธโƒฃ9๏ธโƒฃ snap remove - Remove Snap Packages โŒ

3๏ธโƒฃ0๏ธโƒฃ flatpak install - Install Flatpak Apps ๐Ÿ—๏ธ

3๏ธโƒฃ1๏ธโƒฃ flatpak list - List Installed Flatpaks ๐Ÿ“œ

3๏ธโƒฃ2๏ธโƒฃ flatpak remove - Remove Flatpak Apps โŒ

3๏ธโƒฃ3๏ธโƒฃ apk add - Alpine Linux Package Install ๐Ÿ—๏ธ

3๏ธโƒฃ4๏ธโƒฃ apk del - Remove Alpine Packages โŒ

3๏ธโƒฃ5๏ธโƒฃ brew install - Homebrew Package Manager ๐Ÿบ

3๏ธโƒฃ6๏ธโƒฃ yum install - Install Packages on RHEL ๐Ÿ—๏ธ

3๏ธโƒฃ7๏ธโƒฃ dnf install - Install Packages on Fedora ๐Ÿ“ฆ

3๏ธโƒฃ8๏ธโƒฃ zypper install - Install Packages on OpenSUSE ๐Ÿ—๏ธ

3๏ธโƒฃ9๏ธโƒฃ pip install - Install Python Packages ๐Ÿ

4๏ธโƒฃ0๏ธโƒฃ npm install - Install Node.js Packages ๐Ÿ“ฆ


๐ŸŒŸ Master Windows & Chrome Without a Mouse: Ultimate Shortcuts & Commands ๐Ÿš€

Do you want to control Windows and Chrome like a pro without ever touching the mouse? ๐Ÿค– This guide includes all the essential keyboard shortcuts and command line commands you need to navigate efficiently.


๐Ÿ’ป Windows Keyboard Shortcuts (Full Control Without a Mouse)

๐Ÿ”„ Basic Navigation

  • โŒ˜ Win + D โ†’ Show desktop

  • โŒ˜ Win + E โ†’ Open File Explorer

  • โŒ˜ Win + X โ†’ Open Power User Menu (like right-click on Start)

  • โŒ˜ Win + I โ†’ Open Settings

  • โŒ˜ Win + A โ†’ Open Action Center

  • โŒ˜ Win + Tab โ†’ Open Task View (like Alt + Tab but better)

  • โŒ˜ Win + L โ†’ Lock PC

  • โŒ˜ Win + R โ†’ Open Run dialog

๐Ÿ”ฎ File Explorer & Window Management

  • ๐Ÿ” Alt + โ†‘ โ†’ Go up one folder level

  • โฌ Alt + โ† โ†’ Back

  • โซ Alt + โ†’ โ†’ Forward

  • ๐Ÿ“Ž Ctrl + Shift + N โ†’ Create a new folder

  • ๐Ÿ”„ F2 โ†’ Rename file/folder

  • ๐Ÿ›  Alt + Enter โ†’ Open file properties

๐Ÿ” Text Editing & Selection

  • โœ‚๏ธ Ctrl + X โ†’ Cut

  • ๐Ÿ“‹ Ctrl + C โ†’ Copy

  • ๐Ÿ“‚ Ctrl + V โ†’ Paste

  • ๐Ÿ“ Ctrl + A โ†’ Select all

  • ๐Ÿ”™ Ctrl + Z โ†’ Undo

  • ๐Ÿ” Ctrl + Y โ†’ Redo


๐Ÿ–ฅ๏ธ Windows Command Line (CMD) Commands

๐Ÿ”Ž System Information & Management

  • ๐Ÿ–ฅ๏ธ systeminfo โ†’ Get system details

  • ๐ŸŒ ipconfig โ†’ View IP details

  • ๐Ÿ”ง tasklist โ†’ Show running processes

  • โŒ taskkill /F /IM app.exe โ†’ Force kill a process

  • โš ๏ธ shutdown /s /t 0 โ†’ Shutdown PC immediately

๐Ÿ“‚ File & Folder Commands

  • ๐Ÿ“ dir โ†’ List files in a directory

  • ๐Ÿ”„ cd foldername โ†’ Change directory

  • ๐Ÿ—‘๏ธ del filename โ†’ Delete a file

  • ๐Ÿ“ฆ copy file1 file2 โ†’ Copy files


๐ŸŒ Google Chrome Keyboard Shortcuts

๐Ÿ—๏ธ Tab & Window Management

  • ๐Ÿ†• Ctrl + T โ†’ Open new tab

  • ๐Ÿ”’ Ctrl + Shift + N โ†’ Open incognito window

  • โŒ Ctrl + W โ†’ Close current tab

  • ๐Ÿ”„ Ctrl + Shift + T โ†’ Reopen last closed tab

๐Ÿ”Ž Searching & Zooming

  • ๐Ÿ” Ctrl + F โ†’ Find text on page

  • ๐Ÿ”Ž Ctrl + Plus (+) โ†’ Zoom in

  • ๐Ÿ”Ž Ctrl + Minus (-) โ†’ Zoom out

๐ŸŽต Media & Navigation

  • โฏ Space โ†’ Play/Pause videos

  • ๐Ÿ”‰ M โ†’ Mute/unmute video

  • โช Left Arrow โ†’ Rewind video 5 sec

  • โฉ Right Arrow โ†’ Forward video 5 sec


๐ŸŽฏ Final Thoughts

With these shortcuts and commands, you can navigate Windows and Chrome without using a mouse! Let me know if you need more details or practice exercises! ๐Ÿš€

๐Ÿ“Œ Conclusion

Mastering these 250+ Ubuntu Linux Windows & Chrome commands will make you efficient in managing files, users, processes, and networks. ๐Ÿš€ Keep practicing, and soon, Linux will become second nature! ๐Ÿง

๐Ÿ“Œ Share your favorite Linux command in the comments! ๐Ÿ’ฌ

ย