Velvet Star Monitor

Standout celebrity highlights with iconic style.

news

Find the "shortcut" names list of executable scripts

Writer Matthew Barrera

I am searching for hours with different key words without success.

The context: I give a name to some scripts .sh in order to make them executable anywhere.

For instance, the script gogo.sh is in /etc/gogo_program directory. In order to execute gogo.sh anywhere without having to cd to /ect/gogo_program, I gave it a name, a kind of "shortcut" called Cparti. So, launching a terminal anywhere I just need to type Cparti to execute it.

The problem is I don't find the command that lists all these terminal "shortcuts". I did it months ago, now I forgot and even searching with keywords like "alias" and so on, it does not give me the list of "shortcuts". And I need it because I have to check which are present, and have to clean it.

Thanks.

Ubuntu 18.04.5 LTS

3

1 Answer

Here's how:

find $(echo $PATH | tr ':' ' ') -type l -ls 

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy