Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Child pages (Children Display)

Howto... (unordered)

Set Backlight Brightness

Code Block
$ echo X > /sys/class/backlight/backlight/brightness

X: Value 0..100

List Block Devices (incl. mountpoint)

Code Block
$ lsblk 

Example output:

Code Block
NAME         MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda            8:0    1 14.6G  0 disk
`-sda1         8:1    1 14.6G  0 part /run/media/sda1
mmcblk0      179:0    0  7.1G  0 disk
|-mmcblk0p1  179:1    0  500M  0 part /run/media/mmcblk0p1
`-mmcblk0p2  179:2    0  6.6G  0 part /
mmcblk0boot0 179:32   0    4M  1 disk
mmcblk0boot1 179:64   0    4M  1 disk
mmcblk0rpmb  179:96   0    4M  0 disk

List USB Devices

Code Block
$ lsusb

See 'lsusb –help' for options; i.e. -v for verbose output.

List PCIe Devices

Code Block
$ lspci

See 'lspci –help' for options; i.e. -v for verbose output.

Change Terminal Output Length

Useful to view logs or enter commands in terminal window without having the line-wrap/cut after 80 characters.
i.e. set to 1000 characters:

...

Code Block
$ shopt -s checkwinsize
$ resize

Using Serial (tty) in Linux

To identify usably serial ports use:

...

You will need to properly logout and login again for changes to take effect.

Show Size of a Directory

Code Block
$ du -h --max-depth=1 <folder-path>

...