locate

20+ Unix/Linux find command examples

Linux/Unix FAQ: Can you share some find command examples?

Sure. The Unix/Linux find command is very powerful. It can search the entire filesystem to find files and directories according to the search criteria you specify. Besides using the find command to locate files, you can also execute other Linux commands (grep, mv, rm, etc.) on the files and directories you find, which makes find extremely powerful. 

A collection of 75+ free Linux tutorials

Free Unix and Linux tutorials: Wow, this blog post makes me feel a little old. As I've been working on reorganizing the website lately, I found that I've written more than seventy-five Unix and Linux tutorials. To try to make them easier to find, I created this page to link most of them up.

So, to that end, here is a list of at least 75 free Unix and Linux tutorials I've written. I hope you enjoy them, and I hope they're helpful.

An egrep example with multiple regular expressions

Summary: How to use the Linux egrep command with multiple regular expressions (regex patterns).

As a quick note here today, I just used the Linux egrep command to perform a case-insensitive search on multiple regular expressions (regex patterns). Really, what I did was a little more complicated:

locate -i calendar | grep Users | egrep -vi 'twiki|gif|shtml|drupal-7|java|PNG'

As you can see from that command, I did this:

Linux and Unix examples, commands, and tutorials

This page is an index to the Unix and Linux command tutorials and examples we've created. We've found that while Unix and Linux are powerful operating systems, its cryptic commands can sometimes be hard to remember, so hopefully these "Learn Unix by Example" tutorials will help make your Unix and Linux life easier.

Linux commands, organized by category

To make it easier to find the Linux command tutorials you're looking for, we've broken them down into the following sections:

Linux locate command man page

This page shows the contents of the Linux locate comamnd man page. This locate command output was created on a CentOS Linux system.

You can see this same locate command man page output by entering this command on your own Linux system:

Where to put your AppleScript programs

I was just working on a new AppleScript program on my Mac, when I had to remember where to install my script so I could access it from the Mac menu bar.

After digging around real quick, I saw that I installed all of my original scripts in this Mac folder:

/Library/Scripts/AlsScripts

I think I did this so my scripts would appear near the top of the list of available AppleScript programs, as shown in the following figure:

Linux: Case-insensitive file searching with locate and find

Earlier today someone asked for the source code for my TypeAhead predictive-text, type-ahead, auto-complete JNLP Swing application. While trying to remember where I put it I realized I was going to have to do some case-insensitive file searching.

I was happy to learn that both of my favorite Unix and Linux file-finding utilities support case-insensitive file searching.

Perl error: Can't locate module in @INC

Help, I've just run into this Perl error: "Can't locate module in @INC".

If you get a Perl error message like "Can't locate Foo.pm in @INC", this message means that the Perl module you're trying to include (like the module named Foo) can't be found in Perl's include path, which is represented by the variable named @INC.

Linux find command recipes

Thinking about my own work when using Linux and Unix systems, a lot of the work is based around files, and when you're working with files, tools like the Linux find command are very helpful. So, I've decided to put together this list of find command examples/recipes that I'll update from time to time when I use the find command in different ways.

How to find all files beneath the current directory that end with the .jsp extension:

Finding files that Spotlight is missing

I generally use Spotlight when searching my Mac for a file, but there are times it doesn't work, especially when I'm trying to find a file that contains a phrase I know. For instance, I may have a file named "Fred.txt", and it contains the phrase "foo bar", but when I open Spotlight and type in "foo bar", the file Fred.txt never shows up.

Syndicate content