Solved

Unix Find Command

Posted on 2014-09-12
3
481 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

749 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