Skip to content

Commit

Permalink
something new: 2024-01-05 05:45:02
Browse files Browse the repository at this point in the history
  • Loading branch information
pew committed Jan 5, 2024
1 parent 5eb99d9 commit c515bc7
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions man/lsblk.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,31 @@
# lsblk / hard disk information
---
date created: Saturday, January 5th 2019, 9:06:46 am
date modified: Friday, January 5th 2024, 5:44:56 am
tags:
- linux
---

# lsblk

## drive info

easy way, get the fstype, uuid etc.:

```shell
lsblk -f
```

you can combine most commands, like `NAME,UUID,LABEL`

# get UUID
### get UUID

if you want to set some permanent settings, don't use `/dev/sda` and so on if they change, use the UUID or label.

```
lsblk -o NAME,UUID
```

# get LABEL
### get LABEL

```
lsblk -o NAME,LABEL
Expand Down

0 comments on commit c515bc7

Please sign in to comment.