- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- difference between /usr/bin/sh and /sbin/sh
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2000 06:33 AM
тАО12-08-2000 06:33 AM
can anybody tell me the difference between:
-r-xr-xr-x 2 bin bin 221184 Jan 20 2000 /usr/bin/sh
-r-xr-xr-x 1 bin bin 421888 Jan 20 2000 /sbin/sh
make this any sence ?
thanks in advance
regards
ralf
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2000 06:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2000 06:42 AM
тАО12-08-2000 06:42 AM
Re: difference between /usr/bin/sh and /sbin/sh
where as /usr/sbin/sh is dynamic (no libraries)thus it is smaller
you need /sbin/sh in singler user mode as /usr is not mounted thus no libraries are available
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2000 06:44 AM
тАО12-08-2000 06:44 AM
Re: difference between /usr/bin/sh and /sbin/sh
just in addition to Alan's reply:
If you boot into single user mode you will not have /usr mounted nor will you have access to the libraries.
Make sure, that you have /sbin/sh for root in the /etc/passwd file. If you happen to enter /usr/sbin/sh in there your system won't boot up, because it will never find a shell.
Steffi Jones
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2000 06:48 AM
тАО12-08-2000 06:48 AM
Re: difference between /usr/bin/sh and /sbin/sh
ralf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2000 06:49 AM
тАО12-08-2000 06:49 AM
Re: difference between /usr/bin/sh and /sbin/sh
Programmes in /usr directory are mostly called and used by the system in a stable state. You will notice that, the programmes in /usr/sbin are linked to /sbin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2000 06:02 PM
тАО12-09-2000 06:02 PM
Re: difference between /usr/bin/sh and /sbin/sh
there is another difference, for the reasons mentioned
above:
the "/sbin/sh" does NOT start with a history, for the
simple reason of not writing to the file system you might
be fsck-ing in single-user-mode (root-fs, that is).
In multi-user-mode you can safely switch on history.
HTH,
Wodisch