To retrieve the device file path that provides access to the file system labeled BACKUP :The same, but with long option names:
Code:
device=$(lsblk -noPATH -Q'LABEL=="BACKUP"')Code:
device=$(lsblk --noheadings --output PATH --filter 'LABEL == "BACKUP"')Statistics: Posted by itmicp — 2026-01-11 11:58