alias maj='sudo apt update && sudo apt upgrade -y'
alias ms='ls'
alias nvtop='watch nvidia-smi'
alias h='history|grep '
alias f='find . |grep '
alias where='which'
alias p='function _p(){ ps aux | grep $1 | grep -v grep;};_p'
alias wget='wget -c'
alias calc='python -ic "from __future__ import division; from math import *"'
## pass options to free ##
alias meminfo='free -m -l -t'
## Get cpu info ##
alias cpuinfo='lscpu'
## get top process eating memory
alias psmem='ps auxf | sort -nr -k 4'
alias psmem10='ps auxf | sort -nr -k 4 | head -10'
## get top process eating cpu ##
alias pscpu='ps auxf | sort -nr -k 3'
alias pscpu10='ps auxf | sort -nr -k 3 | head -10'