Ubuntu-L4-Lieutenant

Debugging & Inspection

  1. strace — Trace system calls of a process

    strace ls
  2. lsof — List open files and network connections

    lsof -i :8080
  3. watch -n — Re-run a command at intervals

    watch -n 2 free -h
  4. time — Measure command execution time

    time python script.py

Networking & Remote Access

  1. ssh — Secure remote login

    ssh user@server_ip
  2. scp — Copy files over SSH

    scp file.txt user@server:/path
  3. rsync — Fast file synchronization

    rsync -av src/ dest/
  4. nc (netcat) — Network testing and debugging

    nc -zv localhost 80

Permissions & Security

  1. getfacl — View Access Control Lists

  2. setfacl — Set Access Control Lists

  3. id — Show user/group IDs


Filesystem & Storage

  1. mountpoint — Check if directory is mounted

  2. sync — Flush write buffers

  3. fallocate — Preallocate file space


Logs & Monitoring

  1. journalctl — Query system logs

  2. dmesg — Kernel ring buffer messages

  3. vmstat — Memory statistics

  4. iostat — Disk I/O stats (install first)


Shell Power Tools

  1. xclip — Clipboard access from terminal

  2. column — Align output into columns

  3. select — Bash menu creation


User & System Control

  1. loginctl — Manage user sessions

  2. ulimit — Control resource limits

  3. hostnamectl — Manage system hostname

  4. poweroff — Shut down system


Last updated