Skip to content
Advertisement

get all aliases in linux shell

How to list all aliases defined in a shell. Like the command below to list all files/folders in a directory I have defined some alias in ~/.bashrc i want to list all that

command

ls in a directory

Advertisement

Answer

Are you wondering if you have a UNIX alias already set for a specific command?

You can find it easily by issuing this on the command line:

command

alias

This command will list all aliases currently set for you shell account.

Advertisement