Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias ll='ls -l'
- alias la='ls -A'
- alias l='ls -CF'
- function showhist {
- history > 'date +%Y-%m-%d'.txt
- }
- #trap show_history EXIT
- #$ echo -e "function alia { \n echo -e \"\n function \$1 { \n \$2 \n }\" >> ~/.bashrc \n }" >> ~/.bashrc$ echo -e "function alia { \n echo -e \"\n function \$1 { \n \$2 \n }\" >> ~/.bashrc \n }" >> ~/.bashrc
- # restart shell to use
- # usage: $ alia "name" "cmd"
- # e.g.: $ alia "gac" "git add -A; git commit -m \"\$1\" "
- # $ bash
- # $ gac "my commit message"
- #
- # $1 refers to a variable
- # note that $ and " characters are escaped in the alias content
- hgrep () {
- history | egrep --color=auto --recursive "$@" | egrep --color=auto --recursive -v "hgrep $@"
- }
- function fu() {
- if [ ! $1 ]; then
- echo "Usage: fuck you process_name"
- exit
- fi
- if killall $2; then
- echo
- echo " (╯°□°)╯ ︵$(echo $2 | flip)"
- echo
- fi
- }
- alias instl='sudo apt-get install'
- alias update='sudo apt-get update && sudo apt-get upgrade && sudo apt-get autoremove'
- alias rebt='sudo shutdown -r now'
- alias mostuse=$'history | awk \'{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] \" \" CMD[a]/count*100 \"% \" a;}\' | grep -v \"./\" | column -c3 -s \" \" -t | sort -nr | nl | head -n10'
- alias fhere="find . -name"
- alias lsl="ls -lhFA | less"
- alias ..="cd .."
- alias df="df -Tha --total"
- alias editbash="sudo nano ~/.bashrc"
- alias srcbash=". ~/.bashrc"
- alias sizes="du -h | perl -e 'sub h{%h=(K=>10,M=>20,G=>30);($n,$u)=shift=~/([0-9.]+)(\D)/;return $n*2**$h{$u}}print sort{h($b)<=>h($a)}<>;'"
- alias nn="sudo nano "
- alias on3="/var/www/html/rfoutlet/codesend 1382147"
- alias of3="/var/www/html/rfoutlet/codesend 1382156"
- alias on2="/var/www/html/rfoutlet/codesend 1382156"
- alias of2="/var/www/html/rfoutlet/codesend 1382156"
- alias version="lsb_release -a"
- alias stopp="sudo systemctl stop "
- alias rstrt="sudo systemctl restart "
- alias status="sudo systemctl status "
- alias showalias='cat ~/.bash_aliases | grep alias'
- alias editalias='sudo nano ~/.bash_aliases'
- alias editocto='nn ~/.octoprint/config.yaml'
- alias runocto='cd ~/Downloads/OctoPrint/venv/bin/ && ./octoprint &'
- alias psg="ps aux | grep -v grep | grep -i -e VSZ -e"
- alias highperm="sudo chmod a+x "
- alias bb="sudo !!"
- alias runmjpg='~/Downloads/mjpg-streamer/mjpg_streamer -i \" /usr/local/lib/input_uvc.so \" -o \" /usr/local/lib/output_http.so -w /usr/local/www \" '
- alias initd='ls /etc/init.d && cd $_'
- alias edithomebridge='nano ~/.homebridge/config.json'
- alias runhomebridge=' node /opt/node/bin/homebridge & '
- #alias wifisig='sudo iwlist wlan0 scan | egrep \" Cell|ESSID|Signal|Rates \" '
- alias hceeng='hsg for searching history, mcd for mkdir and cd'
- function wifisign {
- sudo iwlist wlan0 scan | egrep "Cell|ESSID|Signal|Rates"
- }
- function hsg {
- history | grep -i $1
- }
- mcd () {
- mkdir -p $1
- cd $1
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement