Tech Note: How to use find in Linux

Find is one of the more powerful and flexible command line tools in the daily toolbox, so it is worth spending more time.

At its simplest, find keeps up with the path to find something. E.g:

Find /

It will find (and print out) every file in the system. And since everything is a file, you get a lot of output that needs to be sorted out. This may not help you find what you are looking for. You can change the path parameter to narrow the range, but it will not be more helpful than using the ls command. So you need to think about what you are looking for.

Maybe you want to find all the JPEG files in the home directory. The -name parameter allows you to limit the result to a file that matches the given pattern.

Find ~ -name'*jpg'

But wait! What if some of them are uppercase extensions? -iname is like -name but it is case insensitive.

Find ~ -iname'*jpg'

well! But the 8.3 name scheme is so old. Some pictures may have a .jpeg extension. Fortunately, we can combine patterns with "or" (denoted as -o).

Find ~ ( -iname'jpeg' -o -iname'jpg')

We are approaching the goal. But what if you have some directories ending in jpg? (Why you name a bucketofjpg instead of a pictures directory is beyond the scope of this article.) We use the -type parameter to modify our commands to find files.

Find ~ \( -iname'*jpeg' -o -iname'*jpg'\) -typef

Or, maybe you want to find those strangely named directories so that you can rename them later:

Find ~ \( -iname'*jpeg' -o -iname'*jpg'\) -typed

You recently took a lot of photos, so let's narrow it down to the changed file last week.

Find ~ \( -iname'*jpeg' -o -iname'*jpg'\) -typef -mtime -7

You can perform time filtering based on file state change time (ctime), modification time (mtime), or access time (atime). These are within a few days, so if you want more fine-grained control, you can express it in minutes (cmin, mmin, and amin, respectively). Unless you know exactly what time you want, you may add numbers after + (greater than) or - (less than).

Technical Posts: How to use find in Linux

But maybe you don't care about your photos. Maybe you don't have enough disk space, so you want to find all the huge (let's define it as "greater than 1GB") files in the log directory:

Find /var/log -size +1G

Or maybe you want to find all the files owned by bcotton in /data:

Find /data -owner bcotton

You can also find files based on permissions. Maybe you want to find files that are readable by everyone in your home directory to make sure you don't overshare.

Find ~ -perm -o=r

This article only talks about the surface of what find can do. Combining test conditions with Boolean logic provides you with incredible flexibility to find the exact file you are looking for. And with parameters like -exec or -delete, you can let find take action on what it finds.

IDC Socket Connector

Antenk Insulation Displacement termination connectors are designed to quickly and effectively terminate Flat Cable in a wide variety of applications. The IDC termination style has migrated and been implemented into a wide range of connector styles because of its reliability and ease of use. Click on the appropriate sub section below depending on connector or application of choice.

An insulation-displacement contact (IDC), also known as insulation-piercing contact (IPC), is an electrical connector designed to be connected to the conductor(s) of an insulated cable by a connection process. The IDC forces a selectively sharpened blade or blades through the insulation, bypassing the need to strip the cable.

Picoflex IDC connector

IDC Plug / Socket - Card Edge Slot Connector

Card Edge SLOT Connector is the portion of a printed circuit board (PCB) consisting of traces leading to the edge of the board that are intended to plug into a matching socket.


IDC Connectors
The IDC connector is also known as an insulation-displacement contact, or insulation-piercing contact. It is a connector designed to work with ribbon cables, and uses sharp contacts to clamp onto the wire, piercing the insulation and connecting with the wire in a secure and convenient way.
This simple connection principle is ideal for multi-stranded ribbon cables, as it allows the connector to make an assured connection across the multiple wires without having to strip the wires. This cold welding connection may ensure a gas tight connection between the wire and connector.


The Antenk range of IDC connectors includes plug and sockets in configurations to suit your purposes.

IDC Connectors Applications
IDC connections are often used low voltage applications, such as to connect computer drives internally or to connect computer peripheries. They are often cited as preferable due to their having much faster installation speeds than conventional wiring connectors.
IDC connectors also have an advantage in that several IDC connectors can be attached to the same length of ribbon cable, able to handle multiple connections economically, saving time in more complicated installations.

IDC Connectors Features and Benefits
• Fast cold welding connection
• Cost effective
• Versatile
• Quick termination to wire.


Antenk IDC socket connectors are also known as, IDC connectors, IDC socket connectors, IDC socketed connectors, idc connectors, 4x2 idc socket connector, 8 pin idc socket connector, 5x2 idc socket connector, 10 pin idc socket connector, 7x2 idc socket connector, 14 pin idc socket connector, 8x2 idc socket connector, 16 pin idc socket connector, 10x2 idc socket connector, 20 pin idc socket connector, 12x2 idc socket connector, 26 pin idc socket connector, 18x2 idc socket connector, 36 idc socket connector, 20x2 idc socket connector, 40 pin idc socket connector, 25x2 idc socket connector, 50 pin idc socket connector, 30x2 idc socket connector, 60 pin idc socket connector, 32x2 idc socket connector, 64 pin idc socket connector, 2.54mm idc socket connector, 0.10 inch IDC socket connector, IDS socket connector, regular density idc socket connector, PCB idc socket connector, printed circuit board idc socket connector, Ribbon Cable Connectors, ribbon cable idc socket connector, flat ribbon connectors, flat ribbon idc socket connector, flat wire connectors, flat wire idc socket connector, 4x2 IDC socket connector, 8 pin IDC socket connector, 5x2 IDC socket connector, 10 pin IDC socket connector, 7x2 IDC socket connector, 14 pin IDC socket connector, 8x2 IDC socket connector, 16 pin IDC socket connector, 10x2 IDC socket connector, 20 pin IDC socket connector, 12x2 IDC socket connector, 26 pin IDC socket connector, 18x2 IDC socket connector, 36 IDC socket connector, 20x2 IDC socket connector, 40 pin IDC socket connector, 25x2 IDC socket connector, 50 pin IDC socket connector, 30x2 IDC socket connector, 60 pin IDC socket connector, 32x2 IDC socket connector, 64 pin IDC socket connector, 2.54mm IDC socket connector, 0.10 inch IDC socket connector, IDS socket connector, regular density IDC socket connector, PCB IDC socket connector, printed circuit board IDC socket connector, ribbon cable connectors, ribbon cable IDC socket connector, flat ribbon connectors, flat ribbon IDC socket connector, flat wire connectors, flat wire IDC socket connector, IDC socket header, idc socket header, 2.54mm IDC socket header, 0.10 inch IDC socket header, flat ribbon cable, flat ribbon wire, 10 conductor ribbon cable, 16 conductor ribbon wire.

Idc Connector,Idc Socket Connector,Idc Cable,Idc Socket Fc Connector,IDC Plug Socket,Card Edge Slot Connector,IDC Box Header,2.54 Micro Match Female IDC connetor,Red DIP Type

ShenZhen Antenk Electronics Co,Ltd , https://www.antenkelec.com