technology, sound, and design
Go back to previous directory:
$ cd -
View disk space:
$ df -T
Display folder size:
$ du -sh <folder>
View RAM usage:
$ free -h
View current processes and sort by process name:
$ top -o COMMAND
View network interfaces:
$ ifconfig
Display distribution information:
$ lsb_release -a
Silently run apt-get on Debian-based distributions:
$ apt-get -s
Check package version and see if it is currently installed:
$ apt-cache policy <package>
List available updates:
$ apt list --upgradable
Sending a process a SIGKILL signal:
$ kill -9 <pid>
Check CPU temperature:
$ sensors
Display SHA-1 checksum:
$ shasum <file>
Display SHA-256 checksum:
$ shasum -a 256 <file>
Partition drive:
# cgdisk
Format drive (ext4):
# mkfs -t ext4 /dev/sdxn