Linux command line commands cheat-sheet
git show-branch
git show-branch -a
Create and switch to branch X
git checkout -b X
git checkout X
Find “text-to-find-here” in the content of files in the whole disk
find / -type f -exec grep -H 'text-to-find-here' {} \;
Find filenames which contain “text-to-find-here” in the whole disk
find / -name '*text-to-find-here*'
List the partition tables for devices mentioned in /proc/partitions.
sudo fdisk -l
See all available network interfaces
ip link show
See status of “network-interface-here”
ethtool network-interface-here
route -n
ip route show
Connect to MySQL “YOUR_DB_HERE” with “YOUR_USER_HERE”
mysql -u YOUR_USER_HERE -p YOUR_DB_HERE
Load kernel module named “KERNEL_MODULE_HERE”
modprobe KERNEL_MODULE_HERE
Unload kernel module named “KERNEL_MODULE_HERE”
modprobe -r KERNEL_MODULE_HERE
Kill all processes by NAME
pkill -f NAME