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

Where LOG fiels resides in AIX and pls tel me how to remove the log file

6 Answers   Vestas,


Explain iostat, vmstat and netstat.

3 Answers   CTS, Wipro,


distinguish between physical addresses and logical address?

3 Answers   Infosys,


What command is used to switching between users in unix?

0 Answers  


How to set sticky bit, or it have any seperate directory to create sticky bit in sunfir servers. Please help me , i don't no the exact answer?

4 Answers   HCL, Wipro,






How do I find previous commands in unix?

0 Answers  


How do I run a bash script?

0 Answers  


Which command is used to find whether the system is 32 bit or 64 bit?

0 Answers  


what these two commands prints "echo test","cat test"?

6 Answers   TCS, Wipro,


What is the basic difference between unix and windows operating systems?

43 Answers   Bopro, College School Exams Tests, CTS, IBM, IT-Kids, Priyadarshini, Sybian Technologies, Tolani Maritime,


how will you convert a general file to a hidden file?

4 Answers  


What is the use of pipes?

4 Answers  


Categories