dbaspot
Tags Register FAQ Calendar Search Today's Posts Mark Forums Read

Is "less" command available in Solaris 10 ? - Unix and OS Discussions

This is a discussion on Is "less" command available in Solaris 10 ? - Unix and OS Discussions ; Is "less" command available in Solaris 10 ? I want to use "less" to browse huge log file. or any other way to do it during telnet session. Thanks....


Home > Database Forum > Database and Unix Discussions > Unix and OS Discussions > Is "less" command available in Solaris 10 ?

Reply

 

LinkBack Thread Tools Display Modes
  #1  
Old 05-13-2007, 09:36 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Is "less" command available in Solaris 10 ?

Is "less" command available in Solaris 10 ? I want to use "less" to browse
huge log file.

or any other way to do it during telnet session.

Thanks.




Reply With Quote
  #2  
Old 05-13-2007, 09:46 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: Is "less" command available in Solaris 10 ?

newbie wrote:
> Is "less" command available in Solaris 10 ? I want to use "less" to browse
> huge log file.
>

which less
/bin/less

--
Ian Collins.
Reply With Quote
  #3  
Old 05-13-2007, 11:39 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: Is "less" command available in Solaris 10 ?

In "newbie" writes:

>Is "less" command available in Solaris 10 ? I want to use "less" to browse
>huge log file.


>or any other way to do it during telnet session.


You have lots of choices...

$ whence more
/usr/bin/more
$ whence pg
/usr/bin/pg
$ whence less
/usr/bin/less

All of these have man pages.


--
-Gary Mills- -Unix Support- -U of M Academic Computing and Networking-
Reply With Quote
  #4  
Old 05-14-2007, 07:40 AM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: Is "less" command available in Solaris 10 ?

"newbie" writes:
> Is "less" command available in Solaris 10 ? I want to use "less" to browse
> huge log file.


Given that it's normally installed /usr/bin on Solaris 10, and that
you had to ask, is it possible that you don't have the SUNWless
package installed on your system?

What metacluster did you install on your system? Less is part of the
"Entire Distribution" metacluster, which is the one I'd recommend as a
starting place.

--
James Carlson, Solaris Networking
Sun Microsystems / 1 Network Drive 71.232W Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677
Reply With Quote
  #5  
Old 05-14-2007, 10:01 AM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: Is "less" command available in Solaris 10 ?

On May 14, 3:35 am, "newbie" wrote:
> Is "less" command available in Solaris 10 ? I want to use "less" to browse
> huge log file.
>
> or any other way to do it during telnet session.


Oh no, Solaris is soooo behind that they don't have new smart stuff
like less available. Hey, they don't even have colored ls outputs...

/Thommy M.

PS. Sorry gang, couldn't resist... ;-)

Reply With Quote
  #6  
Old 05-14-2007, 12:07 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default whence? wherefore art thou?

On Mon, 14 May 2007 03:38:50 +0000 (UTC), Gary Mills
wrote:

>In "newbie" writes:
>
>>Is "less" command available in Solaris 10 ? I want to use "less" to browse
>>huge log file.

>
>>or any other way to do it during telnet session.

>
>You have lots of choices...
>
> $ whence more
> /usr/bin/more
> $ whence pg
> /usr/bin/pg
> $ whence less
> /usr/bin/less
>
>All of these have man pages.


Gary, I am a relative rookie on Solaris and SPARC only having a
machine for a few months now. I learn more watching replies from
experienced admins like you than anywhere else on the WWW. The
'whence' command you used in the reply above is a gem. I've spent
hours looking for a specific file, and never seen 'whence' used
before. Thanks for that little gem.

a/k/a Brian

Reply With Quote
  #7  
Old 05-15-2007, 02:45 AM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: whence? wherefore art thou?

lost@the.net wrote:
> On Mon, 14 May 2007 03:38:50 +0000 (UTC), Gary Mills
> wrote:
>
>> In "newbie" writes:
>>
>>> Is "less" command available in Solaris 10 ? I want to use "less" to browse
>>> huge log file.
>>> or any other way to do it during telnet session.

>> You have lots of choices...
>>
>> $ whence more
>> /usr/bin/more
>> $ whence pg
>> /usr/bin/pg
>> $ whence less
>> /usr/bin/less
>>
>> All of these have man pages.

>
> Gary, I am a relative rookie on Solaris and SPARC only having a
> machine for a few months now. I learn more watching replies from
> experienced admins like you than anywhere else on the WWW. The
> 'whence' command you used in the reply above is a gem. I've spent
> hours looking for a specific file, and never seen 'whence' used
> before. Thanks for that little gem.



I tend to use 'which' which is not shell dependent
Reply With Quote
  #8  
Old 05-15-2007, 03:32 AM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: Is "less" command available in Solaris 10 ?

On 14 Mai, 03:35, "newbie" wrote:
> Is "less" command available in Solaris 10 ? I want to use "less" to browse
> huge log file.


I use the "more" command on Solaris to tackle even the largest of log
files. Solaris "more" is more capable than other versions, and though
its feels quite different from "less", it's up to the task.

Othmar

Reply With Quote
  #9  
Old 05-15-2007, 03:48 AM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: whence? wherefore art thou?

On Tue, 15 May 2007 06:45:26 GMT, Thommy M. Malmström wrote:
>
> I tend to use 'which' which is not shell dependent


Well, sort of. If which isn't a builtin in your shell, you get
/usr/bin/which: a csh script that calls the which csh builtin.
That won't report on functions or aliases defined in your shell,
but if you happen to have a ~/.cshrc, it _will_ report on aliases defined
there. For even more fun, imagine a ~/.cshrc that sets a different $PATH
than what you're running...

Reply With Quote
  #10  
Old 05-15-2007, 05:25 AM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: whence? wherefore art thou?

Mike Delaney wrote:
> On Tue, 15 May 2007 06:45:26 GMT, Thommy M. Malmström wrote:
>> I tend to use 'which' which is not shell dependent

>
> Well, sort of. If which isn't a builtin in your shell, you get
> /usr/bin/which: a csh script that calls the which csh builtin.
> That won't report on functions or aliases defined in your shell,
> but if you happen to have a ~/.cshrc, it _will_ report on aliases defined
> there. For even more fun, imagine a ~/.cshrc that sets a different $PATH
> than what you're running...
>


Whenever I use 'which' I get the result I want. It works in sh, bash, tcsh and ksh
.. Mostly I look for executables in my PATH.

'whence' _only_works in ksh. So the choice is easy for me... YMMW

Reply With Quote
Reply

Thread Tools
Display Modes



All times are GMT -4. The time now is 11:47 AM.