Linux command
link 命令
文件
Copy it and replace filenames, paths, or keywords as needed.
命令示例
Create hard link
link [target] [linkname]
Link file to directory
link [file.txt] [dir/file.txt]
说明
link creates a hard link between files. Unlike ln, it only creates hard links and takes exactly two arguments. The tool creates an additional directory entry pointing to the same inode. Both names reference the same file data.
FAQ
What is the link command used for?
link creates a hard link between files. Unlike ln, it only creates hard links and takes exactly two arguments. The tool creates an additional directory entry pointing to the same inode. Both names reference the same file data.
How do I run a basic link example?
Run `link [target] [linkname]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more link examples?
This page includes 2 examples for link, plus related commands for nearby Linux tasks.