Where can I find a list/file of all aliases created in Ubuntu 17.04? I mean shortcuts for commands most frequently used and more.
Where can I find a list/file of all aliases created in Ubuntu 17.04? I mean shortcuts for commands most frequently used and more.
List of defined aliases
Type
alias
, you'll get a list of all defined ones in your environment.List along the file they've been set in
To find the files that your aliases have been defined in, use this solution, with a little bit altering it:
Which gives you a list of files, stating what
alias
defined there, the output is similar to:Which states
'la=ls -A'
has been set in my.bashrc
.Important files
There are many places that we can define our aliases, the most important ones might be:
~/.bashrc
~/.bash_aliases
~/.bash_profile
~/.bash_login
~/.profile
/etc/bash.bashrc
/etc/profile
And any other place which get sourced while running a shell.
Aliases are defined on a per-user, per-shell basis. You can see what aliases are defined for your current shells via
Read more about aliases in
man bash
.I might also throw in that the
.bashrc
for new users (not existing) is populated from/etc/skel/.bashrc
, inside which you'll find aliases for things likell
,la
,l
, etc. So if you want every new user to have more/less/different aliases that's the place to modify them