📄 deep-1
字号:
#!/bin/sh# This is a bit of a torture test for mkdir -p, too.# GNU rm performs *much* better on systems that have a d_type member# in the directory structure because then it does only one stat per# command line argument.# If this test takes too long on your system, blame the OS.if test "$VERBOSE" = yes; then set -x rm --versionfipwd=`pwd`t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$trap 'status=$?; cd $pwd; rm -rf $t0 && exit $status' 0trap '(exit $?); exit' 1 2 13 15umask 022fail=0k20=/k/k/k/k/k/k/k/k/k/k/k/k/k/k/k/k/k/k/k/kk200=$k20$k20$k20$k20$k20$k20$k20$k20$k20$k20# Be careful not to exceed max file name length (usu 512?).# Doing so wouldn't affect GNU mkdir or GNU rm, but any tool that# operates on the full pathname (like `test') would choke.k_deep=$k200$k200# Create a directory in $tmp with lots of `k' components.deep=$tmp$k_deepecho "creating a hierarchy 400 deep in $tmp..." |tr -d '\012'mkdir -p $deep || fail=1echo done# Make sure the deep dir was created.test -d $deep || fail=1echo "deleting $tmp..." |tr -d '\012'rm -r $tmp || fail=1echo done# Make sure all of $tmp was deleted.test -d $tmp && fail=1(exit $fail); exit
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -