updated notes
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user