User Related
Check if user exists
id bob
Package Manager
apt search --names-only tmux$
sudo apt edit-sources
dpkg -L tmux #list all files installed
Systemd
systemd-analyze
- Startup finished in 1.316s (kernel) + 574ms (initrd) + 9.519s (userspace) = 11.409s
systemctl cat sshd.service
sudo systemctl edit sshd.service --full
systemctl list-unit-files --state=enabled
sudo journalctl --unit sshd --since today
File System Related
To get metadata of a file
stat filename
Get Octal format permission of a file
stat -c "%a %n" filename