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 mtime in find command?

1 Answers  


How many bits use for MAC address?

7 Answers   Google,


what does the 'tee' command do?

4 Answers  


how to sort the content of the file based on numeric values

0 Answers   Epsilon,


what is the difference between npar and vpar in HP-UX?

1 Answers   CSC,






what is the cmd to display the last exit status in UNIX?

5 Answers   MEIT, Syntel,


By using which command we can find the CPU utilization time?

7 Answers   Amazon,


What is an Environment Variable?

4 Answers   CTS,


In Unix file permissions what does the second field denotes?

3 Answers  


How do you grep a case insensitive?

0 Answers  


What does this command do? Cat food 1 > kitty

0 Answers  


what are processor execution levels and priorities?

2 Answers   Infosys,


Categories