Last active
June 29, 2019 19:11
-
-
Save OAkyildiz/8b280cd021eac7b4f3d508b438bbf038 to your computer and use it in GitHub Desktop.
Useful Aliases for Ubuntu (with ROS/Cuda/Anaconda...).Personalize! Also, Might need some fixing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# User your favorite editor here! | |
alias word=vim | |
#Useful Aliases for Ubuntu (with ROS/Cuda/Anaconda...).Personalize! Also, Might need some fixing | |
## get rid of a common typo - command not found ## | |
alias cd..='cd ..' | |
## apt-get laziness # Debian encourages using apt now | |
alias update='sudo apt update' | |
alias upgrade='sudo apt upgrade' | |
## a quick way to get out of current directory ## | |
alias ..='cd ..' | |
alias ...='cd ../..' | |
alias ....='cd ../../..' | |
alias .....='cd ../../../..' | |
alias .4='cd ../../../../' | |
alias .5='cd ../../../../..' | |
alias create_pkg_ozan="catkin_create_pkg -l MIT -a $EMAIL -m $MYNAME" | |
alias inst="sudo apt-get install" | |
alias walrus_widget="rosrun walrus_widget widget" | |
alias walrus_driver="roslaunch walrus_driverstation driverstation.launch" | |
## better ls | |
alias la='ls -d .* --color=auto' | |
alias ll='ls -dl .* --color=auto' | |
##catkin build with a fresh start | |
alias fresh_build="catkin clean --all; catkin clean -c; catkin build" | |
## Colorize the grep command output for ease of use (good for log files)## | |
alias grep='grep --color=auto' | |
alias egrep='egrep --color=auto' | |
alias fgrep='fgrep --color=auto' | |
## Start calculator with math support | |
alias bc='bc -l' | |
##Create parent directories on demand | |
alias mkdir='mkdir -pv' | |
## Make mount command output pretty and human readable format | |
alias mount='mount |column -t' | |
## Create a new set of commands | |
alias path='echo -e ${PATH//:/\\n}' | |
alias now='date +"%T"' | |
alias nowtime=now | |
alias nowdate='date +"%d-%m-%Y"' | |
## replace mac with your actual server mac address # | |
## TODO: ADD TO WALRUS | |
#alias wakeupnas01='/usr/bin/wakeonlan 00:11:32:11:15:FC' | |
#alias wakeupnas02='/usr/bin/wakeonlan 00:11:32:11:15:FD' | |
#alias wakeupnas03='/usr/bin/wakeonlan 00:11:32:11:15:FE' | |
# reboot / halt / poweroff | |
alias reboot='sudo /sbin/reboot' | |
alias poweroff='sudo /sbin/poweroff' | |
alias halt='sudo /sbin/halt' | |
alias shutdown='sudo /sbin/shutdown' | |
## pass options to free ## | |
alias meminfo='free -m -l -t' | |
## 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' | |
## Get server cpu info ## | |
alias cpuinfo='lscpu' | |
## older system use /proc/cpuinfo ## | |
##alias cpuinfo='less /proc/cpuinfo' ## | |
## get GPU ram on desktop / laptop## | |
alias gpumeminfo='grep -i --color memory /var/log/Xorg.0.log' | |
##walrus and MQP | |
alias local_master="export ROS_MASTER_URI=http://localhost:11311; export ROS_HOSTNAME=localhost; export ROS_IP=$ROS_HOSTNAME;" | |
## wget continue## | |
alias wget='wget -c' | |
## this one saved by butt so many times ## | |
alias ff4='/opt/firefox4/firefox' | |
alias ff13='/opt/firefox13/firefox' | |
alias chrome='/opt/google/chrome/chrome' | |
alias opera='/opt/opera/opera' | |
# Default ff | |
alias ff=ff13 | |
# My default browser | |
alias browser=chrome | |
# Pass/edit changes to .bashrc and aliases easily | |
alias bash-update='source ~/.bashrc' | |
alias bash-edit='word ~/.bashrc' | |
alias aliases-edit='word ~/.bash_aliases' | |
# Default ROS workspace | |
alias ros_def_src='source /opt/ros/kinetic/setup.bash' | |
# Check last command | |
alias check='echo $?' | |
#quick recovery from rospack gvfs bug | |
alias ref-gvfs='sudo umount /home/ozan/.gvfs && sudo rm -rf /home/ozan/.gvfs' | |
#conda |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment