The following commands can be used for enumerating various information about the Operating System that can in turn be used for further exploiting or elevating privileges.
User Info
id #current user info
cat /etc/passwd #list of users and their groups
OS Version and Architecture
cat /etc/issue
cat /etc/*-release
uname -a
Running Processes & Services
ps axu
Firewall Statuses & Rules
cat /etc/iptables #Mostly requires root permissions, but sometimes these files are left with weak permissions