你要怎么显示?一般用ls即可列出文件列表:ls -l
1234567891011#!/usr/bin/bashfor file in `ls`do if [ -f $file ] then if [ ! -w $file ] then chmod +w $file fi fidone