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 ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| 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. |
| ||||
| 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! :-) |
| Thread Tools | |
| Display Modes | |
|
|