Linux System Enumeration Basics
System info
hostname
cat /etc/issue
cat /etc/*release
uname -a
uname -r
lscpu
User context
id
whoami
groups bob
groups root
cat /etc/passwd
cat /etc/passwd | grep -v /nologin
System resources
free -h
df -h
df -ht ext4
lsblk | grep sd
Active and historical users
last
lastlog
w
who
cat /etc/group