| Newsgroups |
gmane.editors.sed.user |
| Message-ID |
<[email protected]> |
* [email protected] [2016-01-19 00:37]:
> I have a question on how to find world writable files.
> is there something else I can add to make
> sure all the world writable files are found?
i like the really short notation of the zsh:
zsh> ls -l **/*(.W)
pattern description
** recurse into subdirectories
* all objects (use D for GLOB_DOTS)
. file
W world writable
see also: "man zsh" - "Glob Operators".
ps: sure - you can do this with "find" and other tools, too.
Sven
---------------------------------------------------------------------
Sven's Overview to zsh qualifiers / directories . plain files
* 0100 executable plain files @ symbolic links = sockets
r 0400 owner-readable files p named pipes (FIFOs)
w 0200 owner-writable files
x 0100 owner-executable files % device files (character or block special)
A 0040 group-reAdable files %b block special files
I 0020 group-wrItable files %c character special files
E 0010 group-exEcutable files
R 0004 world-Readable files s 04000 setuid files
W 0002 world-Writable files S 02000 setgid files
X 0001 world-Executable files t 01000 files with the sticky bit
---------------------------------------------------------------------
a few zsh aliases using globbing:
alias cdn='cd *(/om[1])'
alias dusck='du -sck *(.Lm+1) | sort -n'
alias lsd='ls -adCF *(/)'
alias lldn='ls -ld *(/om[1])'
alias lsf='ls --color -adCF *(.)'