Unix Technical Forum

Unable to see output of 'ls' command

This is a discussion on Unable to see output of 'ls' command within the HP-UX Operating System forums, part of the Unix Operating Systems category; --> Hi all, I've got and old HP-UX 10.20. If i do un 'ls' i cannot see anything. If i ...


Go Back   Unix Technical Forum > Unix Operating Systems > HP-UX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-16-2008, 07:37 PM
Ste
 
Posts: n/a
Default Unable to see output of 'ls' command

Hi all,

I've got and old HP-UX 10.20. If i do un 'ls' i cannot see anything. If i
run 'find .' I see files of current dir.

There's some mistake??

Thanks
Ste
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-16-2008, 07:37 PM
Frank Slootweg
 
Posts: n/a
Default Re: Unable to see output of 'ls' command

Ste <stefano@#nospamme#3000.it> wrote:
> Hi all,
>
> I've got and old HP-UX 10.20. If i do un 'ls' i cannot see anything. If i
> run 'find .' I see files of current dir.
>
> There's some mistake??
>
> Thanks
> Ste


Perhaps someone aliased 'ls' to some other command.

Instead try:

/usr/bin/ls

or/and

echo *

If these work, then do a 'set' command and see if 'ls' is aliased. If
so, check the startup files of the shell to see where it is aliased and
change/delete that.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-16-2008, 07:37 PM
Sven Mascheck
 
Posts: n/a
Default Re: Unable to see output of 'ls' command

Frank Slootweg wrote:

> do a 'set' command and see if 'ls' is aliased.


"type" quite portably reveals both aliases and functions
(in contrast to "set")
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-16-2008, 07:37 PM
Frank Slootweg
 
Posts: n/a
Default Re: Unable to see output of 'ls' command

Sven Mascheck <cshh.l.mascheck@spamgourmet.com> wrote:
> Frank Slootweg wrote:
>
> > do a 'set' command and see if 'ls' is aliased.

>
> "type" quite portably reveals both aliases and functions
> (in contrast to "set")


'Yup'. I probably had a memory lapse, because "set" does not seem to
list aliases at all, at least not in a bash shell (no longer have
access to HP-UX) and the (HP-UX) manpages does not say it does.

However "type" by itself will not list aliases, you need to specify an
argument, i.e. for example "type ls".

OTOH, "alias" (Duh, Slootweg! :-)), by itself, will list aliases, so
my sentence *should* have been:

"do an 'alias' command and see if 'ls' is aliased."

Moral: Sometimes things *really* are simple, 'even' on UNIX! :-)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:45 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com