Ubuntu Server
Command Line
1. At a glance
2. File Management
3. System Management
hostnamectl
/hostname, OS version etc.
lsb_release -a
cat /etc/os-release
/linux version
hostname
/display hostnamesystem
nano /etc/hostname
nano /etc/hosts
reboot
/change hostname
date
timedatectl
/display time and date
compgen -c
/list available commands
[command] --help
/command usage
man [command]
/command user manual
dmidecode -t [type]
/system information type
lshw -class disk -short
/list phsyical drives
lsblk -l
/list disk drives
top
htop
/view CPU, memory usage
free -h
/memory usage
smartctl -a /dev/sda
/hard drive health
service --status-all
/list running services
systemctl status [service-name]
/see service status
ps aux
/list running processes
killall
/stop background processes
w
who
last
/view user sessions
ps -t [TTY]
/view process id
kill -HUP [PID]
/kill user session
crontab -l
/view running cron jobs
less /etc/crontab
/view cronjob file
service crond stop
/stop cron jobs
4. Package Management
5. Networking
6. Users & Permissions
7. Storage
8. Security
9. Logs & Monitoring
10. Packet Capture