Reddy, Loka Dayakar, JR (Dayakar) wrote: > I did ls -ltr > It displayed directories and files > In my directory I found one directory with the "om" name. Even I didn't > create that directory. > Then i did cd om, but it said "ksh: om: not found"
It is very likely that the name of the directory contains characters which are not being displayed properly on your terminal. Therefore the name is not really "om" but really something else entirely. That is likely to be the reason you could not cd there. Use the -b option to ls to display non-printable characters as escape sequences. ls -lb There are several ways to rename those files. I find the easiest is to allow the shell to expand it automatically. But that is hard to describe. Easier is to grip upon a part of the file and to use wildcards for the other parts. Assuming that "om" is the ending part of the name you might try this. ls ld *om If that shows only one name then you might try to rename it. mv *om bettername Bob _______________________________________________ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils