📜  符号链接的目标 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:20.288000             🧑  作者: Mango

代码示例1
# Create a symbolic link to a file or directory:
ln -s /path/to/file_or_directory path/to/symlink
# Overwrite an existing symbolic link to point to a different file:
ln -sf /path/to/new_file path/to/symlink
# Get the target of symbolic libnk
readlink -f path/to/symlink
# ls -l path/to/symlink