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

📄 no-rights

📁 Linux下文件工具。
💻
字号:
#!/bin/sh# Make sure touch can update the times on a file that is neither# readable nor writable.if test "$VERBOSE" = yes; then  set -x  touch --versionfiDEFAULT_SLEEP_SECONDS=2SLEEP_SECONDS=${SLEEP_SECONDS=$DEFAULT_SLEEP_SECONDS}t1=no-rw1t2=no-rw2rm -rf $t1 $t2: > $t1# Make sure $t2 is two seconds newer than $t1.echo sleeping for $SLEEP_SECONDS seconds...sleep $SLEEP_SECONDS: > $t2fail=0set x `ls -t $t1 $t2`test "$*" = "x $t2 $t1" || fail=1chmod 0 $t1touch -d tomorrow -c $t1 || fail=1set x `ls -t $t1 $t2`test "$*" = "x $t1 $t2" || fail=1# Also test the combination of --no-create and -a.touch -a --no-create $t1 || fail=1rm -f $t1 $t2exit $fail

⌨️ 快捷键说明

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