我有几个无法处理的文件(例如head filename
给我head: filename: Permission denied
)。
xattr
这些文件不显示/不执行任何操作。
以下是一个示例会话:
vlad@MacBook-03:~/html$ ls *.html | wc -l
979
vlad@MacBook-03:~/html$ head -1 *.html > /dev/null
head: 6a69505d39eed3aca809c75519e59c53.html: Permission denied
head: adc6fa4dae0ec2902775fe51806e51aa.html: Permission denied
head: c9f71486e1f27551d99940b460b699f4.html: Permission denied
vlad@MacBook-03:~/html$ echo "As you see, only 3 out of 979 files are 'strange'"
As you see, only 3 out of 979 files are 'strange'
# Strange access attributes:
vlad@MacBook-03:~/html$ ll | cut -f1 -d" "| sort | uniq -c | sort -n
1 drwxr-xr-x
1 drwxrwxrwx
1 total
3 -rw-r--r--
979 -rw-rw-rw-
vlad@MacBook-03:~/html$ ll 6a69505d39eed3aca809c75519e59c53.html
-rw-rw-rw- 1 vlad staff 42316 Jul 20 03:17:45 2010 6a69505d39eed3aca809c75519e59c53.html
vlad@MacBook-03:~/html$ sudo head 6a69505d39eed3aca809c75519e59c53.html
Password:
head: 6a69505d39eed3aca809c75519e59c53.html: Permission denied
请帮忙。MacOS 10.15.7。谢谢!