Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 437 Bytes

LinuxTips.md

File metadata and controls

27 lines (21 loc) · 437 Bytes

Lots of Linux Tips

Purge previously uninstalled packages

sudo apt purge `dpkg --list | grep ^rc | awk '{ print $2; }'`

list disks

ls -l /dev/disk/by-id
ls -l /dev/disk/by-uuid
sudo hwinfo --disk
sudo hwinfo --disk --short
sudo fdisk -l
sudo lshw -class disk
sudo lshw -class disk | grep <disk_name> -A 5 -B
lsblk
lsblk -f

Modify text with sed

sed -i 's/old-text/new-text/g' input.txt