Advertisement
Guest User

~/.bash_aliases

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