????ln ???????
????--backup[=CONTROL]
??????????????????????????????????????????????
????-b
???????? --backup ????????????????
????-d?? -F?? --directory
???????????????????????????????????????????п?????????????????????
????-f?? --force
?????????????????????????????????????
????-n?? --no-dereference
?????????????????????????????????????????????????????
????-i?? --interactive
?????????????????????????????????????????
????-s?? --symbolic
????????????????????????
????-S?? --suffix=SUFFIX
??????? SUFFIX ??????????????
????-v?? --verbose
??????????????????
????--help display this help and exit
??????????????
????--version
????????汾???
????ln ???
????a) ?????????
????ln testfile testfile-hard
????b) ????????????
????ln -s testfile testfile-sym
????c) ????????????????????????????????????????????
????ln -f testfile testfile-hard
????d) ???????????????????
????ln -bf testfile testfile-hard
????e) ???????????????????????? ".~[num]~" ??????
????ln -f --backup=numbered testfile testfile-hard
????f) ????????????????????????????????????? ".bak"
????ln -bf -S '.bak' testfile testfile-hard
????ln ?? -n ???
??????? man ln ????-n ?????????? "treat destination that is a symlink to a directory as if it were a normal file"????????
?????????? a??b ?????????????????? a ?????????? c??
????huey@huey-K42JE:~/huey/linux/cmdline$ mkdir a b
????huey@huey-K42JE:~/huey/linux/cmdline$ ln -s a c
??????????????????? c ?????? b ???????????????????
????huey@huey-K42JE:~/huey/linux/cmdline$ ln -sf b c
???????????????Ч??????????? c ???????????? a ???????? b ???????????????????£? -n ?????????? c ??????????????????????
????huey@huey-K42JE:~/huey/linux/cmdline$ ln -sfn b c