I'm Linyi, and welcome to my personal blog. I live in the beautiful city of Montreal, where I spend my time exploring my passions for software development, outdoor adventures, and sharing knowledge.
Linux Cheatsheet
Published at 1/5/2025 12:00:00 AM
Linux commands
How to mount a drive
qm unlock "vm id"
umount /mnt/pve/"mount name"
lsblk -f
/etc/fstab
UUID=063c75bc-bcc6-4fa5-8417-a7987a26dccb /mnt/backups ext4 defaults,noatime,nofail 0 2
mount -a
How to install updates
sudo apt update # Fetches the list of available updates
sudo apt upgrade # Installs some updates; does not remove packages
sudo apt full-upgrade # Installs updates; may also remove some packages, if needed
sudo apt autoremove # Removes any old packages that are no longer needed