Solved

Unix Find Command

Posted on 2014-09-12
3
487 Views
Last Modified: 2014-09-12
I would like to do a search for a particular file, "program-nav" in the the current directory and all its subdirectories. I am not sure that the name is correct, so perhaps I would like do a search on all file names that have the word "program" in it, i.e., using the wildcard character. Can someone show me the quickest way to do it?

Thanks.
0
Comment
Question by:geeta_m9
[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
3 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 40319991
find .  -type f -name "*program*"

If you don't know if it's uppercase or lowercase (or mixed) use the case-insensitive test "-iname" instead of "-name":

find .  -type f -iname "*program*"
0
 

Author Comment

by:geeta_m9
ID: 40320003
It worked like a charm, thank you!
0
 
LVL 9

Expert Comment

by:Trenton Knew
ID: 40320004
find / | grep program-nav

Open in new window

0

Featured Post

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

717 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