linux测试文件是否存在命令集合
2016-05-29 22:07
429 查看
-b FILE FILE exists and is block special -c FILE FILE exists and is character special -d FILE FILE exists and is a directory -e FILE FILE exists -f FILE FILE exists and is a regular file -g FILE FILE exists and is set-group-ID -G FILE FILE exists and is owned by the effective group ID -h FILE FILE exists and is a symbolic link (same as -L) -k FILE FILE exists and has its sticky bit set -L FILE FILE exists and is a symbolic link (same as -h) -O FILE FILE exists and is owned by the effective user ID -p FILE FILE exists and is a named pipe -r FILE FILE exists and read permission is granted -s FILE FILE exists and has a size greater than zero -S FILE FILE exists and is a socket -t FD file descriptor FD is opened on a terminal -u FILE FILE exists and its set-user-ID bit is set -w FILE FILE exists and write permission is granted -x FILE FILE exists and execute (or search) permission is granted
相关文章推荐
- linux 进程管理
- Archlinux下virtualbox报错'/sbin/rcvboxdrv setup'
- KaLi Linux Rolling 2016 学习笔记
- VirtualBox 安装 Centos 7 笔记
- vim、g++、gdb及makefile的学习
- Linux centos通过安装lszrz用CRT实现与Windows互相传文件
- 线程-Pthread 笔记
- 守护进程-解析
- 标准I/O库 笔记
- Linux中文件的查找whereis、locate、find
- Linux下vim的配置
- 根文件系统制作
- 建立目标板Linux系统
- ARM Linux从Bootloader、kernel到filesystem启动流程
- Busybox ---------- init进程解析
- Linux lvm方式管理磁盘(将多块小盘组合成大盘)
- Liux入门:简单的程序编写(进度条)
- Linux驱动开发、22-USB子系统
- 【多线程编程】Linux下线程池C实现
- Linux Mint 17 fcitx输入法配置