Linux command 'll' is not working

Try sudo ls -l.

As ll is a shorthand for ls -l.


Create an alias for ll.

alias ll="ls -al"

As it has been explained:

ll is actually an alias to ls -l

In your prompt, I would recommend using the following 3 commands when you are not sure about a command that you input:

  • type <command_name> will give you information about the command, in our particular case, the output will be: ll is aliased to 'ls -l'

    • which <command_name> will show you the path of the command you are going to use

    • whatis <command_name> will give you basic information about the command

Last but not least, alias ll="ls -al" will allow you to create the alias you are looking for. However to avoid redefining your aliases every single time you open a new shell. You will have to save them in your .profile or add them in your .bashrc file (use .bash_aliases file for this purpose and uncomment that section in your .bashrc ) in the home directory of your user.

For additional information, please have a look at the following link:

https://unix.stackexchange.com/questions/183496/how-to-create-permanent-aliases-on-unix-like-systems


I am quite late, but ... In Debian 10 the command ll is commented (#).

To make ll available just change yourr .bashrc file:

su gedit .bashrc

After in your text editor uncommnet as you wish:

# some more ls aliases alias ll='ls -l' #alias la='ls -lA'

Do not forget to restart your terminal emulator.

Tags:

Linux

List