-
Notifications
You must be signed in to change notification settings - Fork 0
Extract information
Max Nilsson edited this page Nov 18, 2023
·
3 revisions
uname -a
will print something like this
Linux <hostname> 6.0.1-060001-generic #202210120833 SMP PREEMPT_DYNAMIC Wed Oct 12 08:37:06 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
ip addr show
One way to get your public IP address is to curl icanhazip.com
curl -4 icanhazip.com
df
sudo ss -tulpn
lsof -i :8888
If you lost your dev server on port 8888 and want to shut it down, run
kill -9 <pid>
You can combine it with lsof -i :8888 -t
(-t will make it only return the PID number).
sudo kill -9 $(lsof -i :8888 -t)
GPU
vcgencmd measure_temp
CPU
cat /sys/class/thermal/thermal_zone0/temp
or
cpu=$(</sys/class/thermal/thermal_zone0/temp)
echo "$((cpu/1000)) c"