View previous topic :: View next topic |
Author |
Message |
fpemud Guru
Joined: 15 Feb 2012 Posts: 349
|
Posted: Tue Aug 13, 2013 3:20 pm Post subject: why /usr/bin has soft-links to /bin? |
|
|
Code: | fpemud-workstation bin # pwd
/usr/bin
fpemud-workstation bin # ls -l | grep -- "-> /bin"
lrwxrwxrwx 1 root root 13 Jul 21 13:33 basename -> /bin/basename
lrwxrwxrwx 1 root root 11 Jul 21 13:33 chroot -> /bin/chroot
lrwxrwxrwx 1 root root 8 Jul 21 13:33 cut -> /bin/cut
lrwxrwxrwx 1 root root 8 Jul 21 13:33 dir -> /bin/dir
lrwxrwxrwx 1 root root 12 Jul 21 13:33 dirname -> /bin/dirname
lrwxrwxrwx 1 root root 7 Jul 21 13:33 du -> /bin/du
lrwxrwxrwx 1 root root 8 Jul 21 13:33 env -> /bin/env
lrwxrwxrwx 1 root root 9 Jul 21 13:33 expr -> /bin/expr
lrwxrwxrwx 1 root root 9 Aug 26 2012 gawk -> /bin/gawk
lrwxrwxrwx 1 root root 9 Jul 21 13:33 head -> /bin/head
lrwxrwxrwx 1 root root 11 Jul 21 13:33 mkfifo -> /bin/mkfifo
lrwxrwxrwx 1 root root 11 Jul 21 13:33 mktemp -> /bin/mktemp
lrwxrwxrwx 1 root root 9 Jun 22 21:18 nano -> /bin/nano
lrwxrwxrwx 1 root root 11 Jul 21 14:19 passwd -> /bin/passwd
lrwxrwxrwx 1 root root 13 Jul 21 13:33 readlink -> /bin/readlink
lrwxrwxrwx 1 root root 8 Jul 21 13:33 seq -> /bin/seq
lrwxrwxrwx 1 root root 10 Jul 21 13:33 sleep -> /bin/sleep
lrwxrwxrwx 1 root root 9 Jul 21 13:33 sort -> /bin/sort
lrwxrwxrwx 1 root root 9 Jul 21 13:33 tail -> /bin/tail
lrwxrwxrwx 1 root root 10 Jul 21 13:33 touch -> /bin/touch
lrwxrwxrwx 1 root root 7 Jul 21 13:33 tr -> /bin/tr
lrwxrwxrwx 1 root root 8 Jul 21 13:33 tty -> /bin/tty
lrwxrwxrwx 1 root root 10 Jul 21 13:33 uname -> /bin/uname
lrwxrwxrwx 1 root root 9 Jul 21 13:33 vdir -> /bin/vdir
lrwxrwxrwx 1 root root 7 Jul 21 13:33 wc -> /bin/wc
lrwxrwxrwx 1 root root 8 Jul 21 13:33 yes -> /bin/yes |
I think these are totally unneccessary since both /bin and /usr/bin are in PATH env-var. |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9679 Location: almost Mile High in the USA
|
Posted: Tue Aug 13, 2013 5:00 pm Post subject: |
|
|
This was to fix some scripts and programs that call these programs with hardcoded paths.
Hardcoded paths are not a bad thing, it prevents PATH exploits for security. _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
|