Linux文件类型检测与权限管理脚本
#!/bin/bash
read -p "please enter file:" file
if [ -e /home/ubuntu/ch/${file} ]
thenecho 文件存在if [ -b /home/ubuntu/ch/${file} ]thenecho 块设备文件if [ -r /home/ubuntu/ch/${file} ]thenecho "r"fiif [ -w /home/ubuntu/ch/${file} ]thene…
2026/7/10 13:50:34