Posts Shorten long commands by alias in Ubuntu
Post
Cancel

Shorten long commands by alias in Ubuntu

Use alias in bash for creating short-cuts to commonly run commands

  1. vim ~/.bashrc
  2. add a line similar to the following to create the alias
    1
    
    alias j2dir="cd /home/user/this/long/and/annoyingly/deep/directory/workstuff"
    
  3. source ~/.bashrc
  4. Let’s try j2dir

“Stay away from those people who try to disparage your ambitions. Small minds will always do that, but great minds will give you a feeling that you can become great too.” — Mark Twain

This post is licensed under CC BY 4.0 by the author.