Changes

Jump to: navigation, search

NAD710 Lab 4 Answers

1,039 bytes added, 18:20, 29 September 2008
Added steps for a simpler way to find modified files.
* find /etc -cmin -2 --> This will let u see all files in /etc that were changed in last 2 minutes.
* Nestor the Master
 
'''A simpler way to find the files modified by a change made in the system configuration GUI:'''
 
If you are trying to determine what files in the /etc/ directory were modified by a particular configuration change made in the GUI, the simplest method is the following:
 
1. Before you make the alteration to the GUI settings, run the following command in your shell of choice:
 
'touch ~/timestamp'
 
This command creates an empty file in your home directory named timestamp. We don't need to put anything in this file - the only important part is the modification time.
 
2. Make the configuration alteration that interests you in the GUI.
 
3. Now, return to your shell of choice and run the following command:
 
'find /etc/ -cnewer ~/timestamp'
 
This command will return a list of files in the /etc/ directory that have been modified more recently than the file '~/timestamp', making it much easier than attempting to calculate the correct time by hand using the other time related switches for the find command.
 
''- Gregory Masseau''

Navigation menu