Discussion Locked
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.
by aisp
Poster rated this answer
Try this one:
find . -name your-file -print -exec ls -ls {} \;
Hope this help.
by aisp
Poster rated this answer
by aisp
This question was closed by the author
This discussion is closed to new replies.
Trending Linux posts
Sort by Trending
0 helpful
7 replies
0 helpful
6 replies
Question Locked
RE: How to fix the Docker and UFW security flaw
0 helpful
3 replies
Discussion Locked
Which Linux works best on old phone or tablet?
0 helpful
5 replies
Discussion Locked
My Job and Company
0 helpful
3 replies