shell [] 常用命令
2017-09-27 16:36
399 查看
转自 http://www.cnblogs.com/sunyubo/archive/2011/10/17/2282047.html
-a file exists. -b file exists and is a block special file. -c file exists and is a character special file. -d file exists and is a directory. -e file exists (just the same as -a). -f file exists and is a regular file. -g file exists and has its setgid(2) bit set. -G file exists and has the same group ID as this process. -k file exists and has its sticky bit set. -L file exists and is a symbolic link. -n string length is not zero. -o Named option is set on. -O file exists and is owned by the user ID of this process. -p file exists and is a first in, first out (FIFO) special file or named pipe. -r file exists and is readable by the current process. -s file exists and has a size greater than zero. -S file exists and is a socket. -t file descriptor number fildes is open and associated with a terminal device. -u file exists and has its setuid(2) bit set. -w file exists and is writable by the current process. -x file exists and is executable by the current process. -z string length is zero.
相关文章推荐
- shell脚本基础——常用的sed命令举例
- linux下常用的37条Shell命令
- Linux下最常用的Shell命令的介绍(图文)
- linux webshell下信息收集和一些提权常用的命令
- 常用shell命令
- Shell常用的文本处理命令总结
- Android系统开发常用shell命令汇总+vim中复制操作+adb logcat过滤
- 几个常用shell脚本命令
- shell命令的常用快捷键
- Shell 编程之常用的字符串提取命令
- android 常用adb 和 adb shell 命令
- shell常用基本命令之七 shift
- 常用分析日志shell命令
- 常用shell命令
- linux的shell常用命令续
- HBase总结(二十)HBase常用shell命令详细说明
- shell 常用命令行
- Ubuntu——常用shell命令
- shell脚本基础与常用命令
- 【Linux】【Shell】Linux常用命令