I am new to Ubuntu. I want to know if sh is a symbolic link to bash. Similarly, if "/usr/bin/awk" is a symbolic link to gawk and if "/usr/bin/yacc" is a symbolic link to bison or a small script that executes bison. How do I do it?
Asked
Active
Viewed 2,541 times
1 Answers
4
To know what a command really is, you can do this:
$ which sh
/bin/sh
$ ls -l /bin/sh
lrwxrwxrwx 1 root root 4 déc. 13 22:34 /bin/sh -> dash
So, sh is a symbolic link to /bin/dash.

alci
- 5,839
readlink -f $(which awk)
– steeldriver Mar 06 '15 at 12:53