Skip to content

Linux

linux

CPU

Change scaling governor

for c in $(ls -d /sys/devices/system/cpu/cpu*); do echo ondemand >$c/cpufreq/scaling_governor; done

(https://wiki.gentoo.org/wiki/Power_management/Processor#Hprofile)

Change CPU maximum frequency

for c in $(ls -d /sys/devices/system/cpu/cpu*); do echo >$c/cpufreq/scaling_max_freq; done

Users and Groups

Groups

You can check the groups and their members in /etc/groups. There's also an utility called members.

(https://www.cyberciti.biz/faq/linux-list-all-members-of-a-group/)