Operating System - HP-UX
1833983 Members
1970 Online
110063 Solutions
New Discussion

Command for command list or index

 
SOLVED
Go to solution
Dee_3
Regular Advisor

Command for command list or index

Is there a command for HP-UX that will give me a list or index of the commmands available? man is pretty useless to me unless I already know the command because I do not know how to list the commands available...thx
7 REPLIES 7
Sridhar Bhaskarla
Honored Contributor
Solution

Re: Command for command list or index

There is no command that lists all the command alphabetically. Doing an ls /usr/bin gives the user commands.Most of the Administrator specific commands are in /usr/sbin and /usr/lbin.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
James R. Ferguson
Acclaimed Contributor

Re: Command for command list or index

Hi Terri:

Two things leap to my mind:

1) You can do keyword searches by doing:

# 'man -k keyword'

...if you have the 'whatis' database setup:

# catman -m

2) You can consult the online web man pages:

http://docs.hp.com/hpux/os/man_pages.html

Regards!

...JRF...
A. Clay Stephenson
Acclaimed Contributor

Re: Command for command list or index

He Terri:

Welcome to Unix. I don't have a great answer but this is about as close as it gets:
cd /usr/share/man
ls man1.Z man1m.Z | sort > /var/tmp/mylist

This will create a list sorted lost of the commands in the file /var/tmp/mylist.

Regards, Clay

If it ain't broke, I can fix that.
Sanjay_6
Honored Contributor

Re: Command for command list or index

Hi Terri,

There is no command that will list all the command on HP-UX. you have to see the list the hard way. use "ll" for the directories
/use/bin --> Normal command available to all users
/sbin --> System Commands
/usr/sbin --> Command normally used by root user
/usr/local/bin --> Command created by oracle install program ( may not be available on your system)
/etc --> Most of these commands are linked to /usr/sbin

Then, there are some command which are created by specific program, which sometimes are in /opt/$program/bin.

Hope this helps.

thanks
Michael Tully
Honored Contributor

Re: Command for command list or index

Hi,

As suggested by Clay you could sort, but there
will commands missing, like application
specific ones on your server. To find out where
the 'man' pages are use from your shell,
# echo $MANPATH
This will tell where all the 'man' pages are.

Good Luck
-Michael
Anyone for a Mutiny ?
Gregory Fruth
Esteemed Contributor

Re: Command for command list or index

Aside from the "man -k" or "apropos"
commands, if you use the tcsh shell
you can use command completion to help
you out.

Type "set autolist". Then, hitting ESC-ESC
or TAB will complete the current command;
e.g., if you type "a" then ESC-ESC or TAB, it'll
print a list of all commands that begin with "a".

HTH

Dee_3
Regular Advisor

Re: Command for command list or index

Thanks to all - I will give the various suggestions a try