1834928 Members
2789 Online
110071 Solutions
New Discussion

Type of command

 
Vibhor Kumar Agarwal
Esteemed Contributor

Type of command

Hi,

Over a dozen of times i have read the sentence "This option is supported in Gnu utility and that one is not supported".

But i unable to find out whether my command is Gnu one or not.
How can i find it out?
Vibhor Kumar Agarwal
8 REPLIES 8
Muthukumar_5
Honored Contributor

Re: Type of command

Can you post the full sentence here. I think that document may be saying with two option and one is supported in gnu and another is not supported.

which utility you are checking out?

hth.
Easy to suggest when don't know about the problem!
Vibhor Kumar Agarwal
Esteemed Contributor

Re: Type of command

Very simple commands like find, grep, sed, etc.
Vibhor Kumar Agarwal
Muthukumar_5
Honored Contributor

Re: Type of command

May be some informations added in man page. Check your find,grep,sed man page for GNU pattern.?

hth.
Easy to suggest when don't know about the problem!
David Child_1
Honored Contributor

Re: Type of command

I don't believe that any of the basic commands are GNU (cp, find, etc) unless you have installed them yourself.

The man pages should give you the required info. Example from the man page for the GNU version of xargs;

"This manual page documents the GNU version of xargs"

Another for the GNU version of find;

"This manual page documents the GNU version of find"

Also, if your trying to use a GNU feature and it isn't working; you probably don't have the GNU version.

David
Vibhor Kumar Agarwal
Esteemed Contributor

Re: Type of command

When you are setting up the system then everything is fine.

But imagine the situation when you are given a job to do.

Now comes the main problem.
You try some features which are not working, it gives random errors, you don't know that these features are specific to Gnu and vice versa.
On Googling you find out that these are specific to Gnu.

So now the only option that i have is to check the man pages to find out whether mine commands are Gnu or not.

Okay i will try you update you all.
Vibhor Kumar Agarwal
harry d brown jr
Honored Contributor

Re: Type of command

Simple.

(1) only install GNU software from HP (http://www.software.hp.com/) or the porting sites (http://hpux.ee.ualberta.ca/hppd/hpux/Languages/python-2.3.3/) using swinstall (depot files).
(2) use swlist to determine what OTHER packages you have installed other than the normal Hp stuff.
(3) check your PATH variable. Use the command "which" (which command is found in your PATH first) and "whereis" (to determine what commands are available in your PATH).
(4) GNU commands typically have a "--version" option

live free or die
harry d brown jr
Live Free or Die
Vibhor Kumar Agarwal
Esteemed Contributor

Re: Type of command

That means all Gnu commands have the -version option.

If this is right then its very easy to find out whether my commnad is Gnu one or not.
Vibhor Kumar Agarwal
harry d brown jr
Honored Contributor

Re: Type of command

"typically" doesn't mean "ALL". And not all commands that have a "--version" option mean that they are GNU: an example is perl.

live free or die
harry d brown jr
Live Free or Die