Bash aliases to enhance your productivity

From BITS wiki
Jump to: navigation, search
Go back to parent page Introduction to Linux for bioinformatics

IO=ntro

You specify aliases in the .bashrc file in your home directory.

alias myalias="<my fancy command>"

Change 'my fancy command' to a real command!!

Before you can use your new aliases, you have to reload the .bashrc file. You do this by

$ source ~/.bashrc

or

$ . ~/.bashrc

Now, let's do this exercise.

Sometimes you might want to open a big text file from the end on, and start scrolling towards the top. We will create an alias for this in this exercise.


Show all aliases on your system

Forgot an alias? To see all your aliases, run the command

$ alias
.
Go back to parent page Introduction to Linux for bioinformatics