ll is a common alias in many Linux distros.
How can I tell what it aliases to?
I’ve tried checking my .bashrc, but I am not able tell what ll is equivalent to.
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
You can use the alias command.
$ alias ll ll='ls --color=auto -Flh'
Method 2
You can find a list of aliases on the system with the following command
type -a ll
ll is aliased to `ls -alF’
As a side note, you can see a list of all aliases on the system with
compgen -a
Method 3
Typing in the command also lists all the aliases in the shell
alias
Method 4
From the manual page for command:
If either the ‘-V’ or ‘-v’ option is supplied, a description of command is printed.
So, command -v ll might produce this output: alias ll='ls -l'.
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0