updated notes

This commit is contained in:
Hugh Ratsch
2025-02-15 09:08:40 -06:00
parent 9f27419607
commit 40ea4c967a
+32
View File
@@ -125,6 +125,38 @@ kill -9 1234 # Kill the process with PID 1234
nice -n 10 sleep 100 # Run the sleep command with a priority of 10 nice -n 10 sleep 100 # Run the sleep command with a priority of 10
``` ```
## Partitions and Mounting
### lsblk
```bash
lsblk -f # List all block devices with filesystem type
```
### fdisk
```bash
sudo fdisk /dev/sda # Partition the disk /dev/sda
# Note: n for new partition, p for primary, 1 for first partition, w for write
```
### mkfs
```bash
sudo mkfs.xfs /dev/sda1 # Format the partition /dev/sda1 as XFS
```
### mount
```bash
sudo mount /dev/sda1 /mnt # Mount the partition /dev/sda1 to /mnt
sudo mount -a # Mount all partitions
```
### LVM