📄 hard-link-1
字号:
#!/bin/sh# move a directory containing hard-linked files and# make sure the links are preservedif test "$VERBOSE" = yes; then set -x mv --versionfi. $srcdir/setupif test -z "$other_partition_tmpdir"; then exit 77fidir=hlinkframework_failure=0mkdir $dir || framework_failure=1> $dir/a || framework_failure=1ln $dir/a $dir/b || framework_failure=1if test $framework_failure = 1; then echo 'failure in testing framework' exit 1fi# Make sure we get English translations.. $srcdir/../lang-defaultmv $dir $other_partition_tmpdir || fail=1# Display inode numbers, one per line.ls -1i $other_partition_tmpdir/$dir > out || fail=1# Make sure the inode numbers are the same.a=`sed -n 's/ a$//p' out`b=`sed -n 's/ b$//p' out`test "$a" = "$b" || fail=1rm -fr out $dir $other_partition_tmpdirexit $fail
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -