Skip to content

Instantly share code, notes, and snippets.

@pedropombeiro
Last active April 3, 2019 13:03
Show Gist options
  • Save pedropombeiro/449ddc0e100480b8ceaa6f1cec2f79f8 to your computer and use it in GitHub Desktop.
Save pedropombeiro/449ddc0e100480b8ceaa6f1cec2f79f8 to your computer and use it in GitHub Desktop.
Useful commands in Linux

Useful commands in Linux

Networking

Watch WiFi signal strength:

watch -c "nmcli -c yes -f "SIGNAL,BARS,CHAN,RATE,SSID,IN-USE" d wifi list | sort -hrs -k1.6"

or

watch "iw dev wlp2s0 link"

Run a network throughput test using iperf3:

iperf3 -c nas -p 5201 -P 11 -R

Display

Query connected monitor properties:

xrandr --query

Set monitor properties (e.g. scaling and resolution):

xrandr --output eDP-1 --scale 1x1 --panning 2560x1440

https://www.valhalla.fr/2018/07/14/hidpi-on-gnome-desktop/

Set external monitor brightness:

xrandr --output DP-1 --brightness 0.5

Setting up device scale per screen: https://unix.stackexchange.com/a/190011

Secure Boot

List all modules not digitally signed:

find /lib/modules -name '*.ko' -exec grep -FL '~Module signature appended~' {} \+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment