Discussion Locked

ls -R myfile.cgi does not seem to work.

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I'm trying to check if myfile.cgi exists somewhere on the volume. I'm logged (via Telnet) as a superuser and I'm using ls -R myfile.cgi from the root directory. The reply is 'file not found'. The file actually exists in one of the subdirectories, though. So I must be doing something wrong. Please help. Your "vote" is worth 271 points :-)

7 replies

by rkeckler2000

The ls command still only searches the present directory for your myfile.cgi. The ls -R command by itself will list everything under it. If you give it a directory name ie.
ls -R DIR_NAME it will list the files on that directory only. You might want to pipe it to more or to a file. Then search the file for you myfile.cgi.

This discussion is closed to new replies.