helpful linux commands
Posted: Sat Jun 21, 2025 5:45 am
watch with pipe
list connected usb transfer rate
change linux startup/shutdown text size
apt upgrade latest package/use backports
find current gpu driver version
list installed linux packages installed one liner
ubuntu server installation ipv4 setup
debian find services that failed on startup
problematic startup services. boot service times.
prevent automatic service restarts, you can also mask the service
df returns /efi not found and/or takes a long time to respond. Disable system-gpt-auto-generator.
"systemd-gpt-auto-generator — Generator for automatically discovering and mounting root, /home/, /srv/, /var/ and /var/tmp/ partitions, as well as discovering and enabling swap partitions, based on GPT partition type GUIDs".
edit /etc/default/grub
mount disk .img.
if img is disk use losetup then mount. if img is partition use mount only.
extract ALL rars in all directories into their respective directories. run from the top level.
monitor a current process output with tail
motherboard information
RAM information
apt install specific package version
what video driver is in use
QEMU list booted VMs
find pdf password
remove pdf security
Code: Select all
watch -n10 'df -ah | grep "p4"'Code: Select all
lspci -tCode: Select all
run: sudo dpkg-reconfigure console-setup, and follow the prompts. It was pretty self-explanatory.Code: Select all
root@server:/home/zemerdon# apt-get -t bullseye-backports install zfs-dkms zfsutils-linux zfs-zedCode: Select all
root@server:/home/zemerdon# glxinfo | grep stringCode: Select all
apt list --installed | cut -f1 -d / | tr "\n" " "
apt list --installed | awk -F/ '{s=$1" "s} END{print s}'
apt list --installed | sed -E ':a;N;$!ba;s/\n/ /g;s/\/[^]]+\]//g'Code: Select all
Subnet: 192.168.1.0/24
Address: 192.168.1.101
Gateway: 192.168.1.1
Name servers: 8.8.8.8Code: Select all
journalctl -b0 _PID=1 | grep FailedCode: Select all
system-analyze blameCode: Select all
systemctl mask upower.service"systemd-gpt-auto-generator — Generator for automatically discovering and mounting root, /home/, /srv/, /var/ and /var/tmp/ partitions, as well as discovering and enabling swap partitions, based on GPT partition type GUIDs".
edit /etc/default/grub
Code: Select all
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX_DEFAULT="systemd.gpt_auto=0"
#GRUB_CMDLINE_LINUX="modprobe.blacklist=nvme"if img is disk use losetup then mount. if img is partition use mount only.
Code: Select all
losetup --find --show disk.img
mount /dev/loop1p1 /mnt/part1Code: Select all
rar x -r -ad *.rarCode: Select all
cd /proc/<pid here>/fd && tail -f *Code: Select all
dmidecode -t 2Code: Select all
sudo dmidecode --type 17Code: Select all
sudo apt-get install gparted=0.16.1-1
Code: Select all
lspci -nnk | egrep -i --color 'vga|3d|2d' -A3 | grep 'in use'Code: Select all
virsh -c qemu:///system listCode: Select all
./pdfcrack ../document.pdfCode: Select all
pdftk input.pdf input_pw YOURPASSWORD output output.pdf