Ubuntu-L3-Sergeant

Text Processing & Streams

  1. echo — Print text or variables

    echo "Hello Ubuntu"
  2. wc — Count lines, words, characters

    wc file.txt
  3. sort — Sort lines in a file

    sort names.txt
  4. uniq — Remove duplicate lines

    uniq file.txt
  5. cut — Extract columns from text

    cut -d',' -f1 data.csv
  6. tr — Translate or delete characters

    tr 'a-z' 'A-Z'
  7. awk — Pattern scanning and processing

    awk '{print $1}' file.txt
  8. sed — Stream editor for text replacement

    sed 's/error/warning/g' file.txt

Environment & Shell Control

  1. env — Show environment variables

  2. export — Set environment variables

  3. source — Reload shell configuration

  4. which — Locate a command binary


Disk Usage & Filesystems

  1. du -h — Directory size usage

  2. statx — Extended file statistics (newer Ubuntu)

  3. file — Detect file type


Scheduling & Automation

  1. crontab — Schedule jobs

  2. at — Run commands at a specific time


Services & Systemd

  1. systemctl status — Check service status

  2. systemctl start — Start a service

  3. systemctl enable — Start service at boot


Networking & Sessions

  1. ss — Inspect open ports and sockets

  2. who — Logged-in users


Power & Session Management

  1. uptime — System running time

  2. shutdown — Power off or reboot

  3. reboot — Restart system


Last updated