Troubleshooting

-sh: 1: ll: not found [SOLVED]

by ,


We have by far the largest RPM repository with dynamic stable NGINX modules and VMODs for Varnish 4.1 and 6.0 LTS. If you want to install NGINX, Varnish, and lots of useful modules for them, this is your one-stop repository to get all performance-related software.
You have to maintain an active subscription in order to be able to use the repository!

Did you get ll: not found error in SSH session? If yes, then read on how to fix it in under one minute.

Reason for ll: 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 ran quite often. Thus, some Linux distributions provide 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 like Ubuntu, you may get an error when running ll, i.e.:

-sh: 1: ll: not found

Solution

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. Logout from SSH and log back in. You can now type ll and save yourself those few milliseconds when you want to browse directory contents.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.