DistributedNetworksDistributedNetworks





Host Security  «Prev 
Finding modified and sticky files

Find command

The format of the find command is:
find path pattern
If you do not specify a path, find starts in the current working directory and looks through all subdirectories for the specified pattern.
The find command has many options that you can review by entering man find at a shell prompt. The most common option is -name, which tells find to search for all files and directories with a certain string of letters in their name.
find . -name foo
 
The above command searches through the current working directory for all files with "foo" in their name.


Finding modified and sticky files 1
Finding modified and sticky files 1

This is the commmand
This is the commmand

These are the user specified paths that will be searched for modified files
These are the user specified paths that will be searched for modified files

As an option that locates all files modified within a user-specified number of days
As an option that locates all files modified within a user-specified number of days


The number of days as specified by the user
The number of days as specified by the user

An option requesting a list containing additional information about modified files
An option requesting a list containing additional information about modified files

This output displays all the files under the /etc directory that have been modified in the past 24 hours
This output displays all the files under the /etc directory that have been modified in the past 24 hours