Skip to content

Linux Commands

natalie363 edited this page Sep 20, 2022 · 2 revisions

For Updating Linux and Linux Modules

  • sudo apt update
  • sudo apt upgrade
  • Restart

For creating users and changing passwords

  • addusr (username)
  • passwd (username)

NMAP Commands

  • sudo nmap -sT (ip) - for unprivileged users and IPv6 networks
  • sudo nmap -sS (ip) - the default NMAP option
  • sudo nmap -sV (ip) - for version and OS detection
  • sudo nmap -A (ip) - for script scanning, version, and OS detection
  • sudo nmap -p (port) (ip) - for scanning a specific port

File and Directory Commands

  • cat - to read a file
  • cd - to change directories
  • tree - to view position in the directory tree
  • ls - to see files in directory
  • mkdir - to make a new directory
  • cp (file) (destination) - to copy a file
  • grep - to search file output
Clone this wiki locally