LFCS and LFCE: How to find files?
Now we are going to see the commands that are going to help us to find files. We can look for files by many criteria including name, size, date, and type.
To make a test with the command find I am going to create 4 files with the below command:
touch fileA fileB fileC fileDWe can create also files with no information on it, just based on a specific quantity of space.
truncate -s 3MB file1truncate -s 30MB file2truncate -s 25MB file3find -name fileATo find a file regardless of what's begore and after it use this command:
find . -name "*A*"Insted to just find by size use:
find . -size -5M(-5M indicates that we are going to search for files that are less than 5 Megabytes)

Comments