1833704 Members
2642 Online
110062 Solutions
New Discussion

Mr GNU

 
SOLVED
Go to solution
SM_3
Super Advisor

Mr GNU

I read some threads about certain utilities that are useful, including lsof and sudo.

I'm now using lsof and reading about sudo.

Can you suggest any other useful utilities either from GNU or anywhere else?

Thanks
12 REPLIES 12
Pete Randall
Outstanding Contributor

Re: Mr GNU

You could take a look at the offerings from the software porting and archive center:

http://hpux.cs.utah.edu/


Pete

Pete
Patrick Wallek
Honored Contributor

Re: Mr GNU

LSOF and SUDO should be installed on every unix machine out there.

Another thing you'll want to do is upgrade gzip to the latest version. The version HP-UX ships with is damned old and does not handle large files (2GB files).

If you don't have HP ANSI/C, get gcc for an ANSI C compiler.

There are numerous utilities availabe at the GNU site and at the HP porting centre.

http://www.gnu.org/

http://hpux.cs.utah.edu/
SM_3
Super Advisor

Re: Mr GNU

I was looking at the sites mentioned the other day.

there's a lot of utilities available.

you guys used GNU date?
Pete Randall
Outstanding Contributor

Re: Mr GNU

Gnu date? Not I.

Pete

Pete
H.Merijn Brand (procura
Honored Contributor
Solution

Re: Mr GNU

My ITRC page has some prebuilt GNU binaries available, but it also has a list of GNU utility links to stuff /I/ think useful.

https://www.beepz.com/personal/merijn/ or http://www.cmve.net/~merijn/

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
SM_3
Super Advisor

Re: Mr GNU

Thanks Pete & Patrick!
Patrick Wallek
Honored Contributor

Re: Mr GNU

I have used Gnu Date before. It is pretty handy. It can do some date calculations like 'date +7days' type of things. Although now I'd just use A. Clay Stephensons "date hammer" caljd.sh.
SM_3
Super Advisor

Re: Mr GNU

Patrick

How come you prefer the date hammer?
SM_3
Super Advisor

Re: Mr GNU

procura

I have seen that site before but almost forgot it.

Very good site.
Patrick Wallek
Honored Contributor

Re: Mr GNU

I think Clay's date hammer is probably much more flexible.

If you haven't played with it, put on one of your systems and give it a shot.
Ralph Grothe
Honored Contributor

Re: Mr GNU

I think it is justified to say that almost all GNU tools are better replacements for venerable Unix commands, because they are more up to date (e.g. like the mentioned handling of large files), and offer many many more features through a bewildering array of additional options.

The guy who started issueing these tools and who founded the FSF (i.e. Richard Stallman) was obsessed by the idea that usable and useful software should be available free of charge, and free for anyone to extend these to their own needs by disclosing their source code.

Apart from those GNU tools already mentioned there are a few I wouldn't want to miss.

One that way outperforms the standard pager more is less.
It has far better parsing capabilities.
A real goodie is its 'F' command which switches an inspected file into follow mode (like what "tail -f" does).
Another great feature about less is that you can define a so called LESSPIPE.
Thus you can do a less on e.g. an HP-UX depot file (provided you have configured the lesspipe to pipe into swlist commands) to show its contents on the fly.
The same works of courese for tarballs, gzipped, b2zipped, compressed or whatever kind of archives.

So instead of always having to type

gzip -dc my_tarball.tar.gz | tar tvf - | more

you simply say

less my_tarball.tar.gz

Read the manpage of less to find out about how to configure a lesspipe.
If you can shell script a little its easy.

Then you should also get GNU's version of tar, which can do many more things than standard tar.

This is almost true for every GNU command.

Of course not to mention the great Bash, another GNU offspring.

But there is a slight drawback that when you got used to it you will automatically expect it on other Unices.
And since you got spoiled by the comfort (like all Linux users whose OS ships with GNU commands) it may ruin your day when you are confronted with a misdemeaning more pager on e.g. Solaris (which really is a pain)


Madness, thy name is system administration
Pete Randall
Outstanding Contributor

Re: Mr GNU

Here's a site that the one and only Bill Hassell usually refers people to, in particular for the bdfmegs script:

ftp://contrib:9unsupp8@hprc.external.hp.com/sysadmin/coolscripts/


Pete

Pete