User Tools

Site Tools


devices-and-file-system

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
devices-and-file-system [2019/05/01 20:39]
Miroslav Bernát
devices-and-file-system [2019/05/09 16:10] (current)
Miroslav Bernát
Line 7: Line 7:
 | **lsusb** | prints information about USB buses and devices connected to them, **-v** detailed output | | **lsusb** | prints information about USB buses and devices connected to them, **-v** detailed output |
 | **lsscsi** | prints information about SCSI buses and devices connected to them, **-s** prints the disk size, **-u** LUN (logical unit identifier),​ **-w** WWN (device identifier – similar to MAC address), **-v** detailed output\\ ''​$ lsscsi | grep tape''​\\ (lists all SCSI tape devices) | | **lsscsi** | prints information about SCSI buses and devices connected to them, **-s** prints the disk size, **-u** LUN (logical unit identifier),​ **-w** WWN (device identifier – similar to MAC address), **-v** detailed output\\ ''​$ lsscsi | grep tape''​\\ (lists all SCSI tape devices) |
-| **rescan-scsi-bus.sh** | rescans all SCSI buses |+| **rescan-scsi-bus.sh** | rescans all SCSI buses, **-a** checks also for newly added devices ​|
 | **lsblk** (<​device>​) | prints information about all or specified block devices in a tree-like format (device name, major and minor number, whether or not the device is removable, size of the device, whether or not the device is read only, type of device and mount point), **-a** including empty devices, **-f** file system type, **-m** owner, group and permissions,​ **-p** full device paths, **-S** SCSI devices only, **-o** <​list>​ specifies information (columns) to be displayed, **-l** output in the form of a list\\ ''​$ lsblk -o NAME,​SIZE''​ | | **lsblk** (<​device>​) | prints information about all or specified block devices in a tree-like format (device name, major and minor number, whether or not the device is removable, size of the device, whether or not the device is read only, type of device and mount point), **-a** including empty devices, **-f** file system type, **-m** owner, group and permissions,​ **-p** full device paths, **-S** SCSI devices only, **-o** <​list>​ specifies information (columns) to be displayed, **-l** output in the form of a list\\ ''​$ lsblk -o NAME,​SIZE''​ |
 | **lsof** (<​file/​device>​) | prints information about all or specified open files/​devices – their name, the program that uses the file/​device,​ PID, user name, file descriptor, file type, major and minor number of the device, file size in B and the i-node number, **-l** prints UID, **-p** <PID> by specified process, **-u** <​user>​ by specified user, **-r** <n> refreshes the list every //n// seconds\\ ''​$ lsof /​dev/​cdrom''​\\ ''​$ lsof /​dev/​snd/​*''​\\ ''​$ lsof -p $$''​\\ (prints open files from the current shell) | | **lsof** (<​file/​device>​) | prints information about all or specified open files/​devices – their name, the program that uses the file/​device,​ PID, user name, file descriptor, file type, major and minor number of the device, file size in B and the i-node number, **-l** prints UID, **-p** <PID> by specified process, **-u** <​user>​ by specified user, **-r** <n> refreshes the list every //n// seconds\\ ''​$ lsof /​dev/​cdrom''​\\ ''​$ lsof /​dev/​snd/​*''​\\ ''​$ lsof -p $$''​\\ (prints open files from the current shell) |
Last modified: 2019/05/09 16:10 by Miroslav Bernát

visits: