LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-23-2003, 06:09 PM   #1
mikeshn
Member
 
Registered: Feb 2002
Posts: 586

Rep: Reputation: 30
/bin vs. /sbin


/bin and /sbin directories both contain commands for Linux as I understand. What is the reason behind two different directories instead of just one?
 
Old 09-23-2003, 06:20 PM   #2
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
/bin amongst other things contains applications that all users have access to whereas /sbin contains root user system utilities - its just meant to be a neater division of progs between those that are primarily used by all users and those that are primarily root user utilities.

Last edited by Skyline; 09-23-2003 at 06:48 PM.
 
Old 09-23-2003, 06:47 PM   #3
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
/sbin is for the system administrator or "god" account, the account that is allowed to do anything to the system.
 
Old 09-23-2003, 09:33 PM   #4
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,268

Rep: Reputation: 530Reputation: 530Reputation: 530Reputation: 530Reputation: 530Reputation: 530
/sbin is the upscale neighborhood.
 
Old 10-07-2003, 03:46 PM   #5
mikeshn
Member
 
Registered: Feb 2002
Posts: 586

Original Poster
Rep: Reputation: 30
In the /bin directory I see two links "rvi" and "rview"
that points to the same program. What is the purpose to have two different files points to the same location vi .. wierd . don't you think so..



lrwxrwxrwx 1 root root 2 May 23 17:48 rvi -> vi
lrwxrwxrwx 1 root root 2 May 23 17:48 rview -> vi

Same for
lrwxrwxrwx 1 root root 8 May 23 13:20 ypdomainname -> hostname

lrwxrwxrwx 1 root root 8 May 23 13:20 nisdomainname -> hostname

lrwxrwxrwx 1 root root 8 May 23 13:20 dnsdomainname -> hostname

lrwxrwxrwx 1 root root 8 May 23 13:20 domainname -> hostname

Last edited by mikeshn; 10-07-2003 at 03:50 PM.
 
Old 10-07-2003, 03:58 PM   #6
LavaDevil94
LQ Guru
 
Registered: Jul 2003
Distribution: Gentoo 2004.2: Who needs exmmpkg when you have emerge?
Posts: 1,795

Rep: Reputation: 47
what if, for example, youve used linux before, and that had rview for a pointer, and you move to a system that has only rvi for a pointer. its just convinent. especially for programs that dont look for both of them (if they need it).
 
Old 10-07-2003, 03:59 PM   #7
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Its just a way to create a link to another directory and command without having to put that directory in the users default $PATH
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
openbsd difference between bin and sbin noir911 *BSD 1 07-15-2005 11:28 PM
Is it ok to create links between /usr/sbin and /bin binaries? johnnygun Slackware 5 07-14-2004 02:09 AM
kernel panic, everything in bin and sbin have astericks on them JunLitsu Linux - Software 3 11-01-2003 04:30 PM
sbin and bin Stephanie General 5 09-05-2002 08:47 AM
list of programs in /usr/bin, /sbin, etc. punt Linux - General 1 07-31-2001 04:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration