• Most COVID-19 rules have ended in New Zealand.
    • You must still isolate for 7 days if you have COVID-19.
    • You must wear a face mask in healthcare facilities, such as hospitals. International travellers will not need proof of COVID-19 vaccination.
    From 13 September 2022, to enter New Zealand, you do not need proof of vaccination.

-bash: ll: command not found [Solved]


Creative Team
User ID
7 Jan 2019
Reaction score
Did you get ll: command not found error in SSH session? If yes, then read on how to fix it in less than one minute.

Reason for ll: command not found error

In SSH session of Linux system, often times you want to get listing of files inside a directory, and it’s most convenient to have each file displayed on its own line, with permissions. The command to do so is ls -al.

This command is run quite often. Thus, some Linux distributions provide an easy shortcut for it. Just type ll on the command prompt and it will produce the same output as ls -al.

However, on Debian derived systems such as Ubuntu, you may get an error when running ll, i.e.:
-bash: ll: command not found


To fix this, you need to add command alias. Just run the following command:
sudo echo "alias ll='ls -l'" > /etc/profile.d/ll.sh
It will make the command alias available to all SSH users, so if you log out from SSH and log back in, you can now type ll and save yourself those few milliseconds when you want to list the directory contents.
 Short URL: