Understanding gadgets on Linux techniques

0
1
Understanding gadgets on Linux techniques



$ df -h
Filesystem Dimension Used Avail Use% Mounted on
/dev/sda3 14G 6.7G 6.2G 52% /
devtmpfs 4.0M 0 4.0M 0% /dev
tmpfs 886M 96K 886M 1% /dev/shm
efivarfs 64K 6.0K 53K 11% /sys/firmware/efi/efivars
tmpfs 355M 1.7M 353M 1% /run
tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-journald.service
tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-network-generator.service
tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-udev-load-credentials.service
tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-tmpfiles-setup-dev-early.service
tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-sysctl.service
tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-tmpfiles-setup-dev.service
tmpfs 886M 16K 886M 1% /tmp
/dev/sda3 14G 6.7G 6.2G 52% /dwelling
/dev/sda2 974M 358M 549M 40% /boot
/dev/sda1 599M 20M 580M 4% /boot/efi
tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-tmpfiles-setup.service
tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-resolved.service
tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-vconsole-setup.service
tmpfs 178M 180K 177M 1% /run/consumer/1000
tmpfs 178M 76K 177M 1% /run/consumer/1001

You’ll be able to scale back the output to a extra concise itemizing like this (eradicating the tmpfs file techniques):

$ df -h | grep -v tmpfs
Filesystem Dimension Used Avail Use% Mounted on
/dev/sda3 14G 6.7G 6.2G 52% /
efivarfs 64K 6.0K 53K 11% /sys/firmware/efi/efivars
/dev/sda3 14G 6.7G 6.2G 52% /dwelling
/dev/sda2 974M 358M 549M 40% /boot
/dev/sda1 599M 20M 580M 4% /boot/efi

You’ll be able to have the df command provide info on one partition with a command like this:

$ df -h /dwelling
Filesystem Dimension Used Avail Use% Mounted on
/dev/sda3 14G 6.7G 6.2G 52% /dwelling

Utilizing the mount command with out arguments will show all the mounted file techniques. To checklist file techniques by sort, you should utilize a command like this that lists solely ext4 file techniques:

$ mount -t ext4
/dev/sda2 on /boot sort ext4 (rw,relatime,seclabel)

Passing the output of the mount command to the column command will present a list that can probably be simpler to learn because the output can be displayed with separated columns of information.

$ mount | column -t

The fdisk -l command will show particulars on file techniques, however requires root entry.

$ sudo fdisk -l
Disk /dev/sda: 14.91 GiB, 16013942784 bytes, 31277232 sectors
Disk mannequin: KINGSTON SNS4151
Models: sectors of 1 * 512 = 512 bytes
Sector measurement (logical/bodily): 512 bytes / 512 bytes
I/O measurement (minimal/optimum): 512 bytes / 512 bytes
Disklabel sort: gpt
Disk identifier: 9645D103-5519-4B2A-82FB-636FED806E1B

Machine Begin Finish Sectors Dimension Sort
/dev/sda1 2048 1230847 1228800 600M EFI System
/dev/sda2 1230848 3327999 2097152 1G Linux prolonged boot
/dev/sda3 3328000 31277055 27949056 13.3G Linux filesystem

Disk /dev/zram0: 1.73 GiB, 1855979520 bytes, 453120 sectors
Models: sectors of 1 * 4096 = 4096 bytes
Sector measurement (logical/bodily): 4096 bytes / 4096 bytes
I/O measurement (minimal/optimum): 4096 bytes / 4096 bytes

The lspci command will show info on pci (peripheral part interconnect) gadgets.

LEAVE A REPLY

Please enter your comment!
Please enter your name here