Use of Find command in Linux

find command is the best command to find something on a Linux server. Let’s take a deep look at the find command.

Find hidden files using the "Find" Command

You can follow the below command to find and list all the hidden files on your server.

$  find .

"Find" Command in Linux

You can use -iname for case-sensitive search.
find . -name "backup*"

To list only files starting with the "backup", use the below command.

find . -type f -iname "backup*"

Filter your search result with -size command

To list all the files starting with the backup name and over 1MB in size.
find . -type f -size +1M -iname "backup*"

"Find" With Permissions Codes

To list all the files or directories having 644 permission.
find . -perm 644
To read more about use of find command in Linux. Refer to the blog.
  • attributes, find command with example, find using -size, find file, linux command, find using permission code, find using keyword in linux, find using time argument, linux, find command, find hidden files, list hidden files in linux, live example find command, find directory
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

What are some Basic SSH commands?

List of some basic SSH commands are: ls – This command is used to list all files and...

How to connect to SSH?

Putty is an open-source SSH client used to connect to a remote server. This article describes how...

20 Basic Linux Commands and their Uses.

Following are the top 20 basic Linux Commands with Live Examples that would definitely help you...

How to Block/Unblock IPs from SSH?

You can easily block or unblock IPs  from SSH. #1. Block An IP Address from SSH First of all,...

How to install CpCleaner in cPanel through SSH?

CpCleaner is a cPanel plugin created to give cPanel users the option to clean junk files that...