What will be the result if we run the command #find /tmp -mtime -2 and #find /tmp -mtime +2?
Submitted by: Administratorfind /tmp -mtime n where n can be +ve or -ve
+n says, file modified in last n days
-n says, file modified more than n days ago
ex. if today is 5th of a month
file1 has mtime 3rd
file2 has mtime 2nd
then find . -mtime 2 will report file1
then find . -mtime -2 will report file2 only
Submitted by: Administrator
+n says, file modified in last n days
-n says, file modified more than n days ago
ex. if today is 5th of a month
file1 has mtime 3rd
file2 has mtime 2nd
then find . -mtime 2 will report file1
then find . -mtime -2 will report file2 only
Submitted by: Administrator
Read Online Unix General Job Interview Questions And Answers
Top Unix General Questions
☺ | What is the difference between NFS 3 and NFS 4? What are new features added in NFS4? |
☺ | Using Unix command how to display no of records in oracle? |
☺ | What is difference between SSH V1 and SSH V2? What are drawbacks of SSH V2? |
☺ | How to know the ip address of user system? |
☺ | How to list all the hidden files? |
Top OS Unix Categories
☺ | Unix IPC Interview Questions. |
☺ | Unix General Interview Questions. |
☺ | Unix System Calls Interview Questions. |
☺ | Unix Threads Interview Questions. |