?
Solved

Unix Find Command

Posted on 2014-09-12
3
Medium Priority
?
498 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 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month15 days, 14 hours left to enroll

743 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