Solved

Unix Find Command

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

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…
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…
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

746 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

12 Experts available now in Live!

Get 1:1 Help Now