0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

[Linux][command] UUIDの表示_blkid, lsblk

Posted at

blkid コマンド

  • デバイスのUUIDやファイルシステム情報を取得
$ blkid [オプション]
$ blkid [オプション] デバイス名
オプション 由来 説明
-o format output 出力フォーマットを指定(例: value, udev)
-s tag search 指定した情報(例: UUID, LABEL)のみを表示
-c file cache キャッシュファイルを指定(デフォルト: /etc/blkid.tab
-p probe 指定したデバイスを調査し、詳細情報を取得

lsblk コマンド

  • ストレージデバイスの階層構造を表示
$ lsblk [オプション]
$ lsblk [オプション] デバイス名
オプション 由来 説明
-f filesystem ファイルシステム情報(UUID, TYPE, LABEL など)を表示
-o columns output 表示するカラムを指定(例: NAME,SIZE,UUID
-p path フルパス(/dev/sda1 のような形式)で表示
-r raw ツリー構造ではなく、フラットなリストとして表示

参考リンク

Ping-t

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?