Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
why /usr/bin has soft-links to /bin?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
fpemud
Guru
Guru


Joined: 15 Feb 2012
Posts: 349

PostPosted: Tue Aug 13, 2013 3:20 pm    Post subject: why /usr/bin has soft-links to /bin? Reply with quote

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
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9679
Location: almost Mile High in the USA

PostPosted: Tue Aug 13, 2013 5:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum