Add cpu-power alias

This commit is contained in:
ItsDrike 2024-02-17 22:45:52 +01:00
parent 0f78f4e61e
commit 3c1362f7c9
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0

View file

@ -162,6 +162,7 @@ alias upload='curl -F "f:1=<-" ix.io'
alias upload-journal='sudo journalctl -b -1 | upload' # Upload journalctl from last boot to ix.io
alias auth-log='journalctl SYSLOG_FACILITY=10 -r'
alias cpu-stress='for i in $(seq $(getconf _NPROCESSORS_ONLN)); do yes > /dev/null & done' # Run `yes > /dev/null` on all cores as stress test
alias cpu-power='sudo turbostat --Summary --quiet --show PkgWatt --interval 1'
alias nvidia='__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia' # Run app with nvidia (on hybrid mode with optimus)
alias swapout='sudo swapoff -a; sudo swapon -a' # Reset swap (move everything to RAM)
alias mount-ram='mount -t tmpfs tmpfs' # Mount RAM disk for fast filesystem