Linux 101 : Looking for files - Useful "find" commands -
Looking for files could help us reorganize our system and also remove files that could pose a security risk.
Below are some useful "find" command:
To find empty directories, we use the below command:
To look throughout the system for files that are "read-only" for the owner of the file, we use:
To look for "executable" files on our system, we use:
To look for files that have been modified five days ago, we use:
To look for files that have been created in the last half-hour, we use:
To find the file that were changed in the last five to ten days, we use:
To look for files that have been altered within the last five minutes, we use:
To find the files that have been accessed within the the last fifteen minutes, we use the below command:
To look for file that are between fifty and hundred megabytes in size, we use the following command:
To find the files that have been opened in the last five days, use the below command:
To look for empty files on our system, we could use the below command:
Comments