pwd
Print the current working directory
Use this when you need the full path for the directory your shell is currently using.
UGLABS // Debian and Kali operator baseline
A compact reference for shell navigation, file handling, package management, network checks, and common Kali utilities. Content was trimmed to commands and tool labels that can be verified against primary GNU, Debian, and Kali documentation.
This sheet is centered on Kali Linux and Debian-family systems. Commands use the names and defaults documented for GNU userland, Bash, APT, and Kali packages.
Reviewed on 2026-03-13 against GNU Coreutils, GNU Bash Readline documentation, Debian manpages, and Kali Linux tool pages.
pwd, ls, and cd.whoami.apt for metadata refreshes, installs, upgrades, and removals.ip, ping, dig, whois, and arp-scan for local reconnaissance and reachability checks.nmap is your network and port scanning baseline.theHarvester, gobuster, burpsuite, and wireshark cover common discovery and inspection workflows.msfconsole and hydra are high-impact tools and should stay inside controlled test scopes.pwd
Use this when you need the full path for the directory your shell is currently using.
ls
Displays entries in the current directory, or a path you specify.
cd <dir>
Switch the shell working directory to the path you provide.
history
Bash keeps a history list that you can display and search instead of retyping commands.
clear
Useful when you want a clean prompt without closing the current shell session.
Tab
Bash uses readline completion to expand commands, paths, and other completion targets.
Ctrl + L
Readline maps this to the clear-screen action without interrupting the running shell.
Up / Down
Step backward and forward through previous Bash commands at the prompt.
Ctrl + R
Incrementally search earlier commands when you remember only part of a previous entry.
ls -la
Shows dotfiles and detailed metadata in a single directory listing.
mkdir <dir>
Build a new directory at the path you specify.
touch <file>
Commonly used to create an empty file if it does not already exist.
cat <file>
Send the file to standard output for quick inspection.
nano <file>
Launches the nano text editor directly on the target file.
cp <src> <dst>
Use cp -r when the source is a directory tree.
mv <src> <dst>
Works for both files and directories.
rm <file>
Deletes the named file from the filesystem.
rm -r <dir>
Removes the directory and its contents, so confirm the target path carefully first.
whoami
Use this to confirm which account the current shell is operating as.
sudo <command>
Without extra options, sudo runs the command as root if your policy permits it.
passwd
Prompts for a new password through the system password management utility.
su -
With no username provided, su - attempts to open a root login shell.
sudo apt update
Retrieves updated package metadata from configured repositories.
sudo apt upgrade
Upgrades installed packages when newer versions are available.
sudo apt install <package>
Fetches and installs the named package, along with required dependencies.
sudo apt remove <package>
Removes the installed package while local configuration files can remain unless you purge them.
ip address show
Displays IP addressing information for the system interfaces managed by ip.
ip link show
Lists interfaces and their lower-level link attributes.
ping <host>
Sends ICMP echo requests to a host so you can check whether it responds.
dig <name>
Queries DNS records and is useful for quick name resolution checks.
whois <domain>
Uses a WHOIS client to request registration information from directory servers.
arp-scan -l
Performs ARP discovery on the local network segment.
whoami
ip address show
ping target.example
dig target.example
whois target.example
nmap target.example
Network exploration tool and security / port scanner.
Email, subdomain, and people-name harvesting tool for open-source intelligence collection.
Web vulnerability scanner and web testing platform.
Network traffic analyzer for interactive packet inspection.
Console entry point for the Metasploit Framework penetration testing platform.
Very fast network logon cracker intended for authorized password auditing workflows.
Directory, file, DNS, and virtual-host busting tool for enumeration work.
--help or the tool manpage before running a scan against a new target set.ip over legacy interface commands when you want current Linux networking syntax.sudo apt update before installing a new toolchain.