Write a command to find all of the files which have been
accessed within the last 30 days.
Answers were Sorted based on User's Feedback
Answer / pk
find / -type f -atime -30 > November.files &
This command will find all the files under root, which is
"/", with file type is file. "-atime -30" will give all the
files accessed less than 30 days ago. And the output will
put into a file call November.files.
Is This Answer Correct ? | 39 Yes | 2 No |
Answer / diksha kakkar
the command is - find . -mtime -30 -print
Here you are telling find to list the files that were
modified with in last 30 days. You can increase the span of
time that "find" will report back on or go to a more
restricted time period.
Is This Answer Correct ? | 17 Yes | 4 No |
Answer / sathyasen
ff -a -30 -u /dev/hd0
This displays the path name, i-node number, and owner's
user name (the -u flag) of each file on the /dev/hd0 device
that has been modified within the last 30 days ( -m -30).
Is This Answer Correct ? | 3 Yes | 2 No |
Answer / jyoti pruthi
find / -atime -30
Here,
/ is for root directory
-atime is for access time
-30 is for within 30 days
It will give the details of the file that have been accessed
within the last 30 days.
Is This Answer Correct ? | 2 Yes | 2 No |
How do you grep recursively?
in UNIX ,What is the command to view contents of a large error log file?
What command is used to replace the existing string with some other?
How will you know who are the users logged in to the system before 15 minutes?
How to check whether some services are running in another server or not? Suppose i am currently in a server named A.I want to check whether some services are running in server B without logging into the server B.
3 Answers Amazon, MBA, Syntel, TCS, Unisys,
How do you find out all processes that are currently running in UNIX OS?
what is exact definition of operating system?
What is merge command in unix?
If JFS file system is 100% full how we can increase the file system ?
Write a command that will display files in the current directory, in a colored, long format.
What is the syntax of grep command and what is its use?
why metadb requires a seperate slice to create Solaris volume manager