Forrest logo
tool overview
On this page you find all important commands for the CLI tool ln. If the command you are looking for is missing please ask our AI.

ln

The ln command is a standard Unix command utility used to create a hard link or a symbolic link (symlink) to an existing file or directory. The use of a hard link allows multiple filenames to be associated with the same file since a hard link points to the inode of a given file, the data of which is stored on disk. On the other hand, symbolic links are special files that refer to other files by name.

List of commands for ln:

  • linux:files:symlink:create Create a symlink.
    $ ln -s ${filename} ${link}
    try on your machine
  • ln:tldr:11b77 ln: Create a hard link to a file.
    $ ln ${-filename} ${path-to-hardlink}
    try on your machine
    explain this command
  • ln:tldr:1d911 ln: Overwrite an existing symbolic link to point to a different file.
    $ ln -sf ${-path-to-new_file} ${path-to-symlink}
    try on your machine
    explain this command
tool overview