I know that ls -o will show the chflag but how do I search through my
files
to see which are immutable or append only?
Also is there an easy command to search for device files?
Scott
Also is there an easy command to search for device files?
Scott
Seems like 'find' should do this, but I can't find how. But then,Quote:>I know that ls -o will show the chflag but how do I search through my
>files
>to see which are immutable or append only?
You can search for special files with find and -typeQuote:>Also is there an easy command to search for device files?
-type t
True if the file is of the specified type. Possible file
types are as follows:
b block special
c character special
d directory
f regular file
l symbolic link
p FIFO
s socket
Ah! I found the 4.0 man pages on the FreeBSD.org site. You can
search on flags using the -flags option to find. These should do:
find / -flags schg -print
find / -flags -schg -print
If I read the man page correctly, the first will find files which
have schg as their only flag, which the second will find files
which include schg amoung their flags.
--
|Drew Lawson | Mrs. Tweedy! |
|http://www.furrfu.com | |
find(1), option "-type"Quote:> Also is there an easy command to search for device files?
--
> > I know that ls -o will show the chflag but how do I search through my
> > files to see which are immutable or append only?
> find(1), option "-flags"
> > Also is there an easy command to search for device files?
> find(1), option "-type"
> --
Scott
1. don't allow utime()/utimes() on immutable/append-only files
2. fake error mesg when mounting NFS ??? (and more)
3. how to find *all* files immutable
4. Sol 2.5.1 format (low-level)
5. Making file permissions immutable on ext2?
6. QuickCam VC
7. How to make a file immutable in Solaris?
9. mtime changeable on immutable files (a bug, isn't it?)
10. Immutable files and Solaris
11. HELP! Immutable files of gargantuan size!
12. PATCH: 1.3.57 msdos attrib=SYSTEM files, MUTABLE not IMMUTABLE.
13. immutable files and other new features of 2.7?