Complete the code to create a hard link named 'linkfile' to 'originalfile'.
ln [1] originalfile linkfileTo create a hard link, you use ln without any options. The -s option is for symbolic links.
Complete the code to create a symbolic link named 'symblink' to 'targetfile'.
ln [1] targetfile symblinkThe -s option tells ln to create a symbolic (soft) link.
Fix the error in the command to create a symbolic link named 'link' to 'file.txt'.
ln [1] file.txt linkThe correct option for symbolic links is -s. Using -h is invalid.
Fill both blanks to create a symbolic link named 'link' pointing to 'file.txt' and force overwrite if 'link' exists.
ln [1] [2] file.txt link
Use -s for symbolic link and -f to force overwrite existing links.
Fill all three blanks to create a hard link named 'hardlink' to 'data.txt' and then list the links with inode numbers.
ln [1] data.txt hardlink && ls -i [2] [3]
Hard links are created without options (empty string). Then ls -i lists inode numbers of both files to verify they share the same inode.