Linux :Как полностью удалить ВСЕ следы программы?

Удобнее использовать утилиту lsscsi .

Из документации о ФК:

For FC devices (logical units), the '--transport' option will show the port name and the port identifier instead of the SCSI INQUIRY "strings". For example:

$ lsscsi -g
[3:0:0:0]    enclosu HP       A6255A           HP04  -         /dev/sg3
[3:0:1:0]    disk    HP 36.4G ST336753FC       HP00  /dev/sdd  /dev/sg4
[3:0:2:0]    disk    HP 36.4G ST336753FC       HP00  /dev/sde  /dev/sg5

$ lsscsi -g --transport
[3:0:0:0]    enclosu fc:0x50060b00002e48a3,0x0b109b  -         /dev/sg3
[3:0:1:0]    disk    fc:0x21000004cf97de68,0x0b109f  /dev/sdd  /dev/sg4
[3:0:2:0]    disk    fc:0x21000004cf97e385,0x0b10a3  /dev/sde  /dev/sg5

lsscsiиспользует sysfs(из Введение раздел документации):

The lsscsi command scans the sysfs pseudo file system that was introduced in the 2.6 Linux kernel series. Since most users have permissions to read sysfs (usually mounted at /sys ) then meta information can be found on some or all SCSI devices without a user needing elevated permissions to access special files (e.g. /dev/sda ). The lsscsi command can also show the relationship between a device's primary node name, its SCSI generic (sg) node name and its kernel name.

0
08.07.2021, 10:25
0 ответов

Теги

Похожие вопросы