過濾沒許可權檔案的find
阿新 • • 發佈:2018-11-15
123 find: '/noah/baidulinux/V2-0.0.10-opt/home/bae/nginx_ufc/uwsgi_temp': Permission denied
124 find: '/noah/baidulinux/V2-0.0.10-opt/home/bae/nginx_ufc/scgi_temp': Permission denied
125 find: '/noah/baidulinux/V2-0.0.10-opt/home/bae/nginx_ufc/client_body_temp': Permission denied
126 find: '/noah/baidulinux/V2-0.0.10-opt/home/bae/nginx_ufc/fastcgi_temp': Permission denied
127 find: '/noah/baidulinux/V2-0.0.10-opt/home/bae/.ssh': Permission denied
128 find: '/noah/baidulinux/V2-0.0.10-opt/home/bae/.jumbo/opt/glibc': Permission denied
129 find: File system loop detected; '/noah/baidulinux/V2-0.0.10-opt/noah' is part of the same file system loop as '/noah'.
130 find: '/noah/baidulinux/V2-0.0.10-opt/proc/tty/driver': Permission denied
131 find: '/noah/baidulinux/V2-0.0.10-opt/proc/1/task/1/fd': Permission denied
132 find: '/noah/baidulinux/V2-0.0.10-opt/proc/1/task/1/fdinfo': Permission denied
124 find: '/noah/baidulinux/V2-0.0.10-opt/home/bae/nginx_ufc/scgi_temp': Permission denied
125 find: '/noah/baidulinux/V2-0.0.10-opt/home/bae/nginx_ufc/client_body_temp': Permission denied
126 find: '/noah/baidulinux/V2-0.0.10-opt/home/bae/nginx_ufc/fastcgi_temp': Permission denied
127 find: '/noah/baidulinux/V2-0.0.10-opt/home/bae/.ssh': Permission denied
128 find: '/noah/baidulinux/V2-0.0.10-opt/home/bae/.jumbo/opt/glibc': Permission denied
129 find: File system loop detected; '/noah/baidulinux/V2-0.0.10-opt/noah' is part of the same file system loop as '/noah'.
130 find: '/noah/baidulinux/V2-0.0.10-opt/proc/tty/driver': Permission denied
131 find: '/noah/baidulinux/V2-0.0.10-opt/proc/1/task/1/fd': Permission denied
132 find: '/noah/baidulinux/V2-0.0.10-opt/proc/1/task/1/fdinfo': Permission denied
文字如上
命令
$ cat -n txt | gawk -F ':' '{if($3 != " Permission denied") {print $2}}'
File system loop detected; '/noah/baidulinux/V2-0.0.10-opt/noah' is part of the same file system loop as '/noah'.