link Linux Commands

What is Linux link Command?

Explanation

link COMMAND:

link command is used to create a link to a file. It is also called as hard link. Inode will be same for source and destination.

SYNTAX :


link existingfilename newfilename (or) link source destination

OPTIONS:


--help Print help message and exit
--version Print version and exit

EXAMPLE:


  1. link test.php test1.php

    Create a link to 'test1.php' file. Here inode for 'test.php' and 'test1.php' will be same.

Ask Questions

Ask Question