- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How HPUX commands work.
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
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
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-17-2001 11:21 AM
12-17-2001 11:21 AM
I have been looking around the directory tree. And looking closely at
/sbin /bin /usr/sbin /bin. I tried to look at the commands .. more command but they are not text files. And then I noticed that some commands are in all 4 directories like rm. Now I am just wondering why are the commands all in differnt directories and why are some in all 4? Basicly how do HPUX commands work.
Thanks
Richard
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2001 11:26 AM
12-17-2001 11:26 AM
Solution/sbin
and
/usr/bin
/bin is a link to /usr/bin so all commands will show as being in both places if you do an ll.
The reason for some commands being in both places is, in a nutshell, single-user mode.
When you boot up in single-user mode, the only LV that is available is /, since not all root LVs are mounted by default in single-user mode. So the only directory available with user commands is /sbin. Most of the commands in /sbin are also compiled such that they do not require any external libraries.
When you come up in multi-user mode then all other LVs get mounted and all commands in /usr/bin and whatever libraries they might need are then available to you. You could also accomplish the same thing in single-user mode by manually mounting all vg00 LVs.
Does this make sense?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2001 11:42 AM
12-17-2001 11:42 AM
Re: How HPUX commands work.
There are some command which are used when the system is in single user mode. Like vg manipulation commands. When the system boots into single user mode, the /usr filesystem is not mounted but you still get the functionality of the same command which are there in /usr/sbin, because there are some of the same commands in /etc /sbin etc. These are almost the same, but with some advanced functionality available or unavailable.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2001 11:47 AM
12-17-2001 11:47 AM
Re: How HPUX commands work.
They are helpful during single user mode, when /usr is not available or when there are problems with dynamic libraries like dld.sl etc.,
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2001 12:45 PM
12-17-2001 12:45 PM
Re: How HPUX commands work.
How do HP-UX commands work?
When you have successfully logged into HP-UX, the shell monitors input from your terminal. The shell accepts typed lines from the terminal, splits them into command names and arguments, then executes the command. The command can be the name of a shell built-in, an executable script of commands, or an executable program. There is nothing special about system-provided commands, except that they are kept in directories where the shell can find them. You can also keep commands in your own directories and arrange for the shell to find them there.
See this for useful information:
http://www.docs.hp.com/hpux/onlinedocs/B2355-90128/B2355-90128.html
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2001 01:17 PM
12-17-2001 01:17 PM
Re: How HPUX commands work.
I guess you are looking for another explanation - hopefully I meet your expectations ;-)
/sbin = single user binaries: stuff needed in single user mode
/bin = /usr/bin = binaries: stuff needed by everybody
/usr/sbin = sysadmin binaries: stuff needed by sysadmins in multi user mode
/*/lbin = ... (read: I not know a mnemonic): binaries not meant to be executed from command line, but from daemons and the like
And the reason for the start of all this was back in the times of UNIX even before System V, since disks were not big enough to store all commands needed in one place - so the *fathers of UNIX* had to split the list...
HTH,
Wodisc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2001 01:27 PM
12-17-2001 01:27 PM
Re: How HPUX commands work.
That makes sense what everyone says.
Makes since. Just for fun I am just going though the whole HPUX directory tree to see what I can find.One command that I found rather intresting was
#leave
leave(1) leave(1)
NAME
leave - remind you when you have to leave
But anyways .. thanks for all your answers.
Richard