Ech Guides: Ubuntu Cheat Sheet (Updated For Systemd Based Versions)
Ech Guides: Ubuntu Cheat Sheet (Updated For Systemd Based Versions)
Tech Guides
OPEN Search...
System Information
lsb_release -a
OS Version (Ubuntu Version)
cat /etc/os-release
Disk Usage df
Uptime uptime
Hostname hostname
Hardware Information
lshw
List hardware
lshw -short
lspci
List PCI devices
lspci -v
Process Management
List all processes top
Networing
ifcong
List network interfaces
ip addr show
1 of 3 06/06/2017 08:31
Ubuntu Cheat Sheet (Updated for systemd base... http://www.opentechguides.com/how-to/article/...
Service Management
/etc/init.d/myservice start
Start a service called myservice
service myservice start
/etc/init.d/myservice stop
Stop a service called myservice
service myservice stop
/etc/init.d/myservice status
Check status of a service called myservice
service myservice status
Logs
General System Logs /var/log/syslog
Search
nd / -name lename
Search for a le
locate lename
Search for all les greater than size 100MB nd / -size +100M
2>/dev/null
Suppress errors while using nd or any command
nd / -size +100M 2>/dev/null
Package Management
Install a package using apt apt-get install
2 of 3 06/06/2017 08:31
Ubuntu Cheat Sheet (Updated for systemd base... http://www.opentechguides.com/how-to/article/...
Rate it
Related Articles
Post a comment
Got a question about this article? Ask our forum
Comments
Nothing yet..be the rst to share wisdom.
3 of 3 06/06/2017 08:31