Which of the following commands should you use to accomplish the task?

You work as the Network Administrator for Tech perfect Inc. The company has a Linux-based
network. You are a root user on the Red Hat operating system. You want to view all files created
after the myfile.txt file. Which of the following commands should you use to accomplish the task?

You work as the Network Administrator for Tech perfect Inc. The company has a Linux-based
network. You are a root user on the Red Hat operating system. You want to view all files created
after the myfile.txt file. Which of the following commands should you use to accomplish the task?

A.
find -newer myfile.txt

B.
find -new myfile.txt

C.
find -recent myfile.txt

D.
find -not newer myfile.txt

Explanation:

This command when used with the mtime option will list all files created after the myfile.txt file.
The find command searches system for files that comply with certain numeric criteria such as, the
date of the last change to the file’s data (-mtime), the date of the last change metadata (-ctime) or the date of the last time the file was read
(-atime). There are also corresponding timestamp matching criteria that perform searches in times
relative to the timestamps of other files
using -anewer, -cnewer and -newer, which tests mtime.



Leave a Reply 0

Your email address will not be published. Required fields are marked *