Solved

recursively listing to find a file

Posted on 2014-09-27
2
161 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
2 Comments
 
LVL 84

Accepted Solution

by:
ozo earned 500 total points
Comment Utility
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
Comment Utility
Thanks. find .-name LocalSttings.php once I removed the ".".
Thx !!
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

763 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now