Common usage of find command Find under Linux

Hello everyone, my name is "Bigder"~

Share the common usage of Find today

1. Find the current directory including the "bigder" folder

# find . -name "*bigder"
复制代码

Directory file before filtering:

pictureAfter filtering, the current directory only displays folders whose names contain bigder:

newBigder is not displayed because B is uppercase, and Linux judges it to be case-sensitive.

picture

2. Display the current directory and **** subdirectories , including files with "txt suffix"

find . -name "*.txt"
复制代码

picture

3. List all files in the current directory and subdirectories that have been updated in the past 5 days

find . -ctime 5
复制代码

picture

that's all,

「Bigder」

sentence a day

1. Express what you want, not what you don't want
2. Express your feelings, not emotions (eg: express that you are angry now, instead of expressing anger)
3. Express your needs instead of complaining
4. , Express the direction you want to go, instead of complaining about where you are (look at the goal, not get stuck in things)

Recommended reading

Linux安装JDK-java: command not found&cannot execute binary file

The small change will be launched on the same day as the transfer test. Do you want to write a use case?

How to maintain the test environment most efficiently?

The official test is only after Showcase has passed

Who is responsible for testing a project in turns and bugs?

To outsource or not to go

Linux performance pressure test command with ab- command not found, plugins: fastestmirror

I have worked very hard, but my boss always asks me to improve my abilities and even blames me for being a hindrance. What should I do?

Linux turns off firewall - iptables|iptable.service could not be found

This article uses the article synchronization assistant to synchronize

Guess you like

Origin juejin.im/post/7087432237905362951