General
General Notes for Linux
Determine file system of drives attached to the machine
- Run
sudo parted and them type print all to see all the drives and partitions on the machine
Delete a partition
- Run
sudo parted /dev/<drive> and then decide which partition you want to remove, then run rm <number>
Create a partition
- Run
sudo parted /dev/<drive> and then type mkpar ext4 0% 100% to create the partition
Upgrade Ubuntu/Linux from the command line
- Run
hostnamectl to determine the current linux version
- Run
lsb_release -a to determine the current Ubuntu version
- Run
sudo apt update to update the list of packages
- Run
sudo apt upgrade -y to upgrade the installed packages
- Run
sudo apt dist-upgrade -y to make any additional upgrades that involve changing dependencies, adding or removing new packages as necessary
- Run
sudo do-release-upgrade to do an upgrade to the latest LTS version of ubuntu.