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



Write a command to find all of the files which have been accessed within the last 30 days...

Answer / sridhar

find -type f -atime -30 -print

Is This Answer Correct ?    27 Yes 3 No

Write a command to find all of the files which have been accessed within the last 30 days...

Answer / mohan

find -type f -ctime +30 -print

Is This Answer Correct ?    14 Yes 6 No

Write a command to find all of the files which have been accessed within the last 30 days...

Answer / jsdkar

find -type f -atime +30 -print

Is This Answer Correct ?    12 Yes 5 No

Write a command to find all of the files which have been accessed within the last 30 days...

Answer / siva

find . -mtime -30 -type f -print

Is This Answer Correct ?    8 Yes 3 No

Write a command to find all of the files which have been accessed within the last 30 days...

Answer / rajib mallick

find ? -atime -30 -type f -print.

Is This Answer Correct ?    0 Yes 1 No

Write a command to find all of the files which have been accessed within the last 30 days...

Answer / subbareddy kake

i tried for this question.Sridhar answer is correct.

Is This Answer Correct ?    0 Yes 1 No

Write a command to find all of the files which have been accessed within the last 30 days...

Answer / sourisengupta

Right answer is :-

find . -atime -30 -print

Sridhar, I think it will work, can you tell me why you
use -type -f

Is This Answer Correct ?    0 Yes 1 No

Write a command to find all of the files which have been accessed within the last 30 days...

Answer / syed mahboob feroz ahmed

Hi,
c:/ with whatever the file path is for example
c:/windows/documents and settings/dir A/H (Which will show
all the hidden files in that particular directory.

Is This Answer Correct ?    1 Yes 2 No

Write a command to find all of the files which have been accessed within the last 30 days...

Answer / dipak

find . -type f -atime -30

Is This Answer Correct ?    0 Yes 1 No

Write a command to find all of the files which have been accessed within the last 30 days...

Answer / naveen

@ Sourisengupta,

type -f is used to check only for files, not for all.

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More Unix Commands Interview Questions

What do know about tee command?

0 Answers  


Can you explain a little bit about command substitution?

0 Answers  


What do know about tee command and its usage?

0 Answers  


What is unix command line?

0 Answers  


How do you copy a directory with many files and folders into another directory?

2 Answers  






when we installing aix os the ssh installed default?

2 Answers  


why unix commands can be divided into internal and external commands?

3 Answers   Informatica,


Write a command to display a file’s contents in various formats?

0 Answers  


What is awk command used for?

0 Answers  


hw will u use awk in replacing cahrs and files

0 Answers  


why metadb requires a seperate slice to create Solaris volume manager

0 Answers   Wipro,


solaris Run level?

3 Answers   Wipro,


Categories