Open main menu

CDOT Wiki β

Changes

OPS235 Lab 6 - Fedora17

534 bytes added, 15:58, 2 March 2010
Investigation 3: What files does the system-config-network GUI tool change?.
#* Previously, you created a file called <code>/tmp/timestamp</code>. Any files that were modified by the GUI network configuration program should have a timestamp later (or newer) than the "timestamp" file you created. All the Linux TCP/IP configuration files are stored under the "/etc" directory or its sub-directories. The following command when run as root will give you a list of all the files under the <code>/etc</code> directory with a file modification date newer than the date of the "timestamp" file:
#**<code>find /etc -newer /tmp/timestamp</code>
# Capture the output to a file called <code>netcfg.lst</code> under user root's home directory.
# Create a new directory called <code>/tmp/lab6</code> and copy all the files from the <code>find<code> command to it.
#* There are a number of ways to accomplish this:
#** Edit <code>netcfg.lst</code> and turn it into a bash script.
#** Copy the files manually using the <code>cp</code> command.
#** Investigate the <code>-exec</code> option of the <code>find</code> command to see how to find and copy the files with a single command.
9
edits