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

📄 backup-1

📁 实战Linux编程的原代码,希望对学驱动的人能有所帮助
💻
字号:
#!/bin/sh# Try to create a symlink with backup where the destination file exists# and the backup file name is a hard link to the destination file.# Based on a problem report from Jamie Lokier.if test "$VERBOSE" = yes; then  set -x  ln --versionfitrap "rm -rf a b b~" 0 1 2 3 15framework_failure=0touch a b || framework_failure=1if test $framework_failure = 1; then  echo 'failure in testing framework'  exit 1filn b b~ || fail=1ln -f --b=simple a b || fail=1exit $fail

⌨️ 快捷键说明

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