How to use find command to do ...?

Posted on 2000-01-21
Medium Priority
Last Modified: 2010-04-21
Hi, how can I use find command to
1) find out all directory has give write permission to world?
2)find out all files has give write permission to world?
3)find out files that has been modified after a date?

Question by:xz02
1 Comment

Accepted Solution

RobWMartin earned 400 total points
ID: 2376015
Assuming you want all of those criteria applied to each file/directory:

find /path -daystart -perm +002 -mtime -1

substitute for the specific path of interest; also the -1 means files modified since yesterday; you could say -2 for those modified since day before yesterday; in general, selects files modified since n days ago, not inclusive.

If you want to separate the criteria:

1) find /path -type d -perm +002
2) find /path -type f -perm +002
3) find /path -daystart -mtime -1

respective to your list.


Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

607 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question