Solved

recursively listing to find a file

Posted on 2014-09-27
2
172 Views
Last Modified: 2014-09-27
I am at /home. All my web sites are listed with ls. No problem in getting listed all their files (ls -Rl).
Now I would like to make the list with all the sites with a wiki. I tried "ls -R LocalSettings.php". It does not work.

Actually what I would like to have is the complete /home/site/LocalSettings.php information on a single line. Is there a way?

Thank you!
0
Comment
Question by:versailles
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 84

Accepted Solution

by:
ozo earned 500 total points
ID: 40347329
I'm not sure what you are asking for
do you want something like
ls -R | grep LocalSettings.php
or
find . -name LocalSettings.php
0
 

Author Closing Comment

by:versailles
ID: 40347331
Thanks. find .-name LocalSttings.php once I removed the ".".
Thx !!
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question