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 is the use of the tee command?

0 Answers  


Which command will print your home directory on screen?

0 Answers  


What is the use of touch command in there?

1 Answers   Accenture,


What is pipe command in unix?

0 Answers  


The rm command removes links to file. What does this mean? How then is a file deleted from the file system?

5 Answers  


What does #!/ Bin sh do?

0 Answers  


How to open a Database using Unix Command Please Do Reply

9 Answers   Cognizant, CTS,


How does one process we can start an executable file? How to get the PID process, which we started?

6 Answers  


What command will bring user back to their home directory in UNIX?

13 Answers   IBM, Wipro,


In UNIX, what is the command to kill a process?

10 Answers  


what is the function of grep command?

4 Answers  


How do I use nslookup?

0 Answers  


Categories