Command and Switches Flashcards
lscpu
display offline and online CPUS
-a | –all
lscpu
only online CPU info
-b | –online
lscpu
only offline CPU info
-c | –offline
lscpu
display the info in a more readable format
-e | –extended = [list]
lscpu
column(s) to include (default is all - examples include ‘cpu’ or ‘node’)
[list]
lscpu
provide info displayed in a comma delimeted form used for logging - used by other apps for reporting
-p | –parse
lscpi
controls the level of verbosity of the info displayed
-v | -vv | -vvv
the second value is v v. not w
lscpi
displays the PCI info in a parseable format
-m | -mm
lspci
nicely formatted listing of PCI h/w on system
-vmm
lspci
displays a tree view of the PCI devices on the system (just device slot/port
-t
lspci
associate the device names with the IDs in a tree view
-tvmm
lsscsi
output is the same as running cat /proc/sci/scsi
-c | –classic
lsscsi
provides additional ‘major/minor’ device numbers behind each detected device
-d | –device
lsscsi
generice scsi device file name (sg)
-g | –generic
lsscsi
additional info for each device
-l | –long
lsscsi
print disk size in more readable format
-s | –size
lsscsi
controls level of verbosity
-v | -vv | -vvv
v v not w
lsusb
shows specified bus and device number info
-s [bus][:][device #]
lsusb
show only devices with indicated vendore and product ID in hex format
-d [vendor]:[product #]
lsusb
only this user can issue the
-D [device]
root
lsusb
displays hierarch in tree view
-t
lsusb
verbose device output
-v
lsblk
list empty devices as well - turned off by default
-a | –all
lsblk
print only top level device information
-d | –nodeps