search [--file|--label|--fs-uuid] [--set [var]] [--no-floppy] name
Search devices by:
-f
, --file
)-l
, --label
)-u
, --fs-uuid
)If the --set
option is used, the first device found is set as the value of environment variable var. The default variable is root
.
The --no-floppy
option prevents searching floppy devices, which can be slow.
The search.file
, search.fs_label
, and search.fs_uuid
commands are aliases for search --file
, search --label
, and search --fs-uuid
respectively.