Commands Flashcards
(135 cards)
lsblk
list disks and partitions attached to system
What command can be used to display mounted devices and paritions
lsblk
What commands can be used to create or list partitions
fdisk -l <dev>
gdisk -l <dev></dev></dev>
fdisk -l
list partitions
gdisk
likes GPT partitions
su -
switch user to root
uname
identify kernel version
sudo
use root for one specific command
What commands can be used to identify hard ware
lspci
lsusb
usb-devices
-v (verbose)
-k (expanded output)
cat <file></file>
stream contents of file to terminal/shell
What commands can be used to identify USB serial number
lsusb -v
usb-devices
man <command></command>
user manual / information on the command
What commands can be used to identify disk information
lsscsi (does not show partitions)
file -s
fdisk - l </dev/>
What is the order of commands to use to identify a device, partition, and file system
lsblk = mounted devices
fdisk -l <> = partition information
file -s <> = file system
lsscsi
list the scsi partitions
file -s </dev/sdaX>
identify the file system of a device
dmesg
device messages / information about a device received directly from kernel
can contain serial number, model, date/time connected/disconnected
what is the /bin folder
binary folder which contains standard commands like ls, cd, pwd, etc
what is the /boot folder
contains files needed at bool (LILO or GRUB)
what is the /dev folder
files that represent devices on a system (device nodes)
what is the /etc folder
contains administrative configuration files and scrips
what is the /home folder
user home directory
what is the /lib folder
32bit software libraries (program files)
what is the /lib64 folder
64bit software libraries (program filesx64)