Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Get current CPU frequency
- alias cpu-freq='echo -n "CPU Frequency (Hz): " ; cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq'
- #Get CPU temperature
- alias cpu-temp='echo -n "CPU Temperature (C): " ; cat /sys/class/thermal/thermal_zone0/temp | cut -c1-2'
- #Create a strong versioned SSH key with an easily identifiable comment field
- alias create-ssh-key='ssh-keygen -b 8192 -o -v -C "$(whoami)@$(hostname)-$(date +"%F %T (%A %B %d %Y %Z %z)")"'
- #Do a full system upgrade (depends on rpi-update)
- alias do-full-upgrade='sudo rpi-update ; sudo apt-get update ; sudo apt-get dist-upgrade ; sudo apt-get autoremove ; sudo apt-get autoclean'
- #Restart the secure shell service
- alias restart-ssh='sudo service ssh stop ; sudo service ssh start'
- #Restart WLAN service
- alias restart-wlan0='sudo ip link set wlan0 down ; sudo ip link set wlan0 up'
- #Extract a .tar archive with verbosity
- alias untar='tar -xvzf'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement