Operating System - HP-UX
1826633 Members
4523 Online
109695 Solutions
New Discussion

Command equivalent for ls -lh

 
Mohammed Yasar
Occasional Advisor

Command equivalent for ls -lh

Hi,

What is the equivalent command for ls -lh in HP-UX.





Thanks
yasar
7 REPLIES 7
Ivan Krastev
Honored Contributor

Re: Command equivalent for ls -lh

The -l agrument is same in HP-UX, but there are not -h (human readable format).

For more info see man ls.


regards,
ivan
Mohammed Yasar
Occasional Advisor

Re: Command equivalent for ls -lh

Hi,

I want to see in human-readable format....so that i can see the file size
Peter Godron
Honored Contributor

Re: Command equivalent for ls -lh

Yasar,
you can instll coreutils:
http://hpux.connect.org.uk/hppd/hpux/Gnu/coreutils-6.7/
which gives you this functionality.
MSECO_1
Trusted Contributor

Re: Command equivalent for ls -lh

Hi Yasar,

Try #ls -al or #ll

Regards,

Marco
Keep learning!!!
Bill Hassell
Honored Contributor

Re: Command equivalent for ls -lh

The -h option is not part of a standard ls command so you must be using a Gnu version on another Unix flavor. AS mentioned, you can add the Gnu version of ls but be careful: if you replace /usr/bin/ls, you may break a lot of scripts that depend on standard option behavior. It's best to put non-standard utilities in /usr/contrib/bin and for certain users, use alias in their .profile like this:

alias ls='/usr/contrib/bin/ls'


Bill Hassell, sysadmin
Mohammed Yasar
Occasional Advisor

Re: Command equivalent for ls -lh

Hi,


Where to get the Gnu Version and How to install it.





Ivan Krastev
Honored Contributor

Re: Command equivalent for ls -lh

It's part of coreutils - http://hpux.cs.utah.edu/hppd/hpux/Gnu/coreutils-6.7/


regards,
ivan