Access to information is restricted depending on your login. Request login-information through our contact form.


Application Notes

Howto... (unordered)

Set Backlight Brightness

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

X: Value 0..100

List Block Devices (incl. mountpoint)

$ lsblk 

Example output:

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

$ lsusb

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

List PCIe Devices

$ 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:

$ stty cols 1000

i.e. check window-size of serial-terminal:

$ shopt -s checkwinsize
$ resize

Using Serial (tty) in Linux

To identify usably serial ports use:

$ dmesg | grep tty

Configuration and terminals:

  • setserial
  • cu; i.e. cu -l /dev/ttyS0 -s 115200
  • screen
  • minicom
  • putty
  • tip

When accessing a serial port i.e. /dev/ttyS0 or /dev/ttyUSB0 (FTDI) , you may get a /dev/ttyS0: Permission denied error.
A way around this is to add yourself to the tty and dialout group:

sudo usermod -a -G tty <username>
sudo usermod -a -G dialout <username>

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

Show Size of a Directory

$ du -h --max-depth=1 <folder-path>
$ ncdu <folder-path>
Cookies helfen bei der Bereitstellung von Inhalten. Durch die Nutzung dieser Seiten erklären Sie sich damit einverstanden, dass Cookies auf Ihrem Rechner gespeichert werden. Weitere Information
service/linux/aappnote/aappnote.txt · Zuletzt geändert: 2020/04/16 05:49 von