Using find to search files



Looking for something? Find has all the power you’ll need to locate any file or directory on your system, as long as you know the name of what you’re trying to find.

First you’ll need to launch a terminal session, and then we’ll dive into this by typing the following command.

find / -name 'my-file.txt' 2>/dev/null

Breaking down our ‘ find ‘ command

  • ‘ / ‘ - is our search location, since we’re using / it’ll search everything on our root partition

  • ‘ -name ‘ - says we’re gonna search by name, and we can type anything in here (* wildcard)

  • ‘ 2>/dev/null ‘ - will tell the shell to pipe all errors to dev/null meaning they wont be displayed



Digg Google Bookmarks reddit Mixx StumbleUpon Technorati Yahoo! Buzz DesignFloat Delicious BlinkList Furl

3 comments:

madin said...

With their unwavering commitment to transcending modern fashion, replica Ray-Ban Sunglasses stands out with its replica Ray-Ban Sunglasses clubmaster state-of-the-art eyewear collection that transcends time and age.

heavy said...

Replica luxury handbags free shipping worldwide,the highest quality and lowest price,GUCCI LV DIOR CHANEL
PRADA website:kelly online shop

https://www.zhongximaoyi.com

madin said...

Fake Christian Louboutin Renowned for their red-lacquered soles, replica men Louboutin espadrilles Christian Louboutin shoes bring luxury footwear to daring new heights. No matter the event, Louboutin shoes exude glamour and an unrivaled appeal. Discover statement-making Louboutin heels like the So Kate, Pigalle, chic printed flats, and more unique styles.

Post a Comment

Popular Posts