Operating System - Linux
1827288 Members
3119 Online
109717 Solutions
New Discussion

Re: HP-UX 11.11 vs Linux command

 
SOLVED
Go to solution
Ridzuan Zakaria
Frequent Advisor

HP-UX 11.11 vs Linux command

Hi,

I am currently moving my shell (sh/ksh) scripts from HP-UX 11.11 environment to our newly acquired "Red Hat Enterprise Linux AS release 3 (Taroon Update 1)" enviroment. I found that Linux do not have "pg" command. Can anyone suggest what command should I use in place of "pg".

One more thing how do I know what is my OS release version? "uname -a" return the following output.

Linux XXX 2.4.21-9.ELsmp #1 SMP Thu Jan 8 17:08:56 ES
T 2004 i686 i686 i386 GNU/Linux


Thanks.
quest for perfections
7 REPLIES 7
Patrick Wallek
Honored Contributor
Solution

Re: HP-UX 11.11 vs Linux command

Instead of 'pg' try 'more'.

You are running Linux kernel 2.4.21-9.ELsmp

Michael Tully
Honored Contributor

Re: HP-UX 11.11 vs Linux command

For future reference, this is good site to find differences between unix flavours.

http://bhami.com/rosetta.html
Anyone for a Mutiny ?
Ridzuan Zakaria
Frequent Advisor

Re: HP-UX 11.11 vs Linux command

Thanks Patrick,

"more" command work just fine.

quest for perfections
Ronald Schwartz_1
Frequent Advisor

Re: HP-UX 11.11 vs Linux command

You can also try the command less, which is more or less like more. :-)
Try the man page for all the details on how to use less.
dirk dierickx
Honored Contributor

Re: HP-UX 11.11 vs Linux command

you know what they say:

less is more!

and that is true however you want to take it ;)
H.Merijn Brand (procura
Honored Contributor

Re: HP-UX 11.11 vs Linux command

'less' is the road you should be walking on. Not only on your brand new Linux system, where it is installed by default, but also on HP-UX, where you should have installed it years ago :)

This setting for $LESS I use on both Linux and all my HP-UX versions, and supports about everything you need

lt09:/home/merijn/itrc 117 > echo $LESS
-CRQsieP?f"%f":-. %lt ?pB%pB\% .?e(EOF) ?xNext\: %x ..>
lt09:/home/merijn/itrc 118 >

Less for 11i (11.11):
http://hpux.connect.org.uk/hppd/hpux/Gnu/less-385/

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Ralph Grothe
Honored Contributor

Re: HP-UX 11.11 vs Linux command

Since Linux isn't an OS but only the Kernel sources, the output of e.g.

$ uname -srv
Linux 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003

is absolutely correct.
Therefore -s (system) shows Linux,
-r (release) is the booted kernel's release and subversion, and -v (version) here is the time the kernel was built.

If you're on a RedHat box you could additionally look out for this file


$ cat /etc/redhat-release
Red Hat Linux release 9 (Shrike)

But this is Distro specific and not garuanteed to be exsitent.


Btw, I'm curious how you use a pager in a script? ;-)

On Linux, always use "less".
It's so much better than more that I even installed it on our Solaris and many HP-UX boxes.
Madness, thy name is system administration