Useful wifi commands
List used wifi frequencies
sudo iwlist wlp1s0 scan | grep Frequency | sort | uniq -c | sort -n
List available channels
iwlist channel
List wifi networks
nmcli d wifi
List used wifi frequencies
sudo iwlist wlp1s0 scan | grep Frequency | sort | uniq -c | sort -n
List available channels
iwlist channel
List wifi networks
nmcli d wifi
Fedora 31 has started to use cgroups v2 by default. According to Common F31 bugs it doesn’t play nice with Docker, lxd and others. To make fedora switch back to the old cgroups:
sudo grubby --update-kernel=ALL --args="systemd.unified_cgroup_hierarchy=0"
To check what command is assigned to the alias use type command:
$ type gl
gl is aliased to `git log --oneline`
One liner to monitor a process with the name /wshub:
top -p "$(pgrep -f /wshub)"
Print every second cpu and memory usage of the process:
watch -n 1 "ps -eo pid,pcpu,pmem,args | kazy -i xnotitle -e kazy"
Install jq package:
sudo dnf install jq
Usage example:
curl -u key:x "https://api.com/users.json" | jq
sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
Add the following line to dnsmasq configuration file:
log-queries
lxc config device override mycontainer root size=20GB
Restart the container to apply changes.
CPU benchmark from Dell Precision 15 5510 Core-i5 i5-6440HQ
$ sysbench cpu run --time=5
sysbench 1.0.9 (using system LuaJIT 2.1.0-beta3)
Running the test with following options:
Number of threads: 1
Initializing random number generator from current time
Prime numbers limit: 10000
Initializing worker threads...
Threads started!
CPU speed:
events per second: 1157.88
General statistics:
total time: 5.0008s
total number of events: 5792
Latency (ms):
min: 0.80
avg: 0.86
max: 3.74
95th percentile: 1.06
sum: 4998.26
Threads fairness:
events (avg/stddev): 5792.0000/0.00
execution time (avg/stddev): 4.9983/0.00