Basic Auditing
Distro Information
uname -alsb_release -acat /proc/versioncat /etc/issuecat /etc/debian_version(for Debian based systems)cat /etc/os-release
Networking Information
ip aifconfig -asudo nestat -punta
User Management
- List users with active shell sessions:
w - List users and their respective groups:
cat /etc/passwd - List groups:
cat /etc/group - Change your own password:
passwd - Change another user's password:
sudo passwd [username]
Service and Process Auditing
Listing Services
systemctl list-unit-filesservice --status-allrc-status --all
Listing Processes
ps aux
Finding Location of Program
whereis [program]
Log Management
Look for logs in var/log/.
You can tail a log, reading it in real time by using the tail command: tail -f [log file].