?? fileinfo1
字號:
function finfo{ if [ ! -e "$1" ]; then echo "file $1 does not exist." exit 1 fi if [ -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." fi if [ -O "$1" ]; then echo 'you own the file.' else echo 'you do not own the file.' fi if [ -r "$1" ]; then echo 'you have read permission on the file.' fi if [ -w "$1" ]; then echo 'you have write permission on the file.' fi if [ -x "$1" -a ! -d "$1" ]; then echo 'you have execute permission on the file.' fi}for filename in "$@" ; do finfo "$filename" echodone
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -