⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fileinfo

📁 linux脚本编程的例子
💻
字号:
if [ ! -e "$1" ]; then    echo "file $1 does not exist."    exit 1fiif [ -d "$1" ]; then    echo -n "$1 is a directory that you may "    if [ ! -x "$1" ]; then        echo -n-n "not "    fi    echo "search."elif [ -f "$1" ]; then    echo "$1 is a regular file."else    echo "$1 is a special type of file."fiif [ -O "$1" ]; then    echo 'you own the file.'else    echo 'you do not own the file.'fiif [ -r "$1" ]; then    echo 'you have read permission on the file.'fiif [ -w "$1" ]; then    echo 'you have write permission on the file.'fiif [ -x "$1" -a ! -d "$1" ]; then    echo 'you have execute permission on the file.'fi

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -