Ubuntu-L2-Corporal

File Permissions & Ownership

  1. chmod — Change file permissions

    chmod 644 file.txt
    chmod +x script.sh
  2. chown — Change file owner

    sudo chown user:user file.txt
  3. stat — Detailed file information

    stat file.txt

Process & System Control

  1. ps — View running processes

    ps aux
  2. top — Real-time process monitor

    top
  3. htop — Enhanced process viewer (install first)

    sudo apt install htop
    htop
  4. kill — Stop a process by PID

    kill 1234
  5. pkill — Kill process by name

    pkill firefox

Networking Basics

  1. ip a — Show IP addresses

  2. ping — Test network connectivity

  3. curl — Fetch data from a URL

  4. wget — Download files


Compression & Archives

  1. tar — Create/extract archives

  2. zip — Create ZIP archives

  3. unzip — Extract ZIP files


Disk & Hardware

  1. lsblk — List block devices

  2. mount — Mount a filesystem

  3. umount — Unmount a filesystem


Terminal Productivity

  1. clear — Clear terminal screen

  2. history — Show command history

  3. alias — Create command shortcuts

  4. watch — Run a command repeatedly


Text Editing & Input

  1. nano — Terminal text editor

  2. xargs — Build argument lists from input


User & Session Control

  1. logout — End terminal session


Last updated