1.

Explain ways to create shortcuts in Linux.

Answer»

Links PRESENT in LINUX OS can be used to create shortcuts as given below: 

  • Hard Link: Hard links are mirror images of the originally linked files and are linked with an INODE number. A hard-linked file remains even after the original file is deleted. SINCE hard links point to inodes, they cannot be implemented on directories. Hard links are created by the following command:
$ ln  [original filename] [link name]
  • Soft Link: Generally, soft links (also referred to as Symbolic links) are linked to the file name and can reside on the same as well as different file systems. When a soft link is created or deleted, it does not affect the original file, but when the original file is deleted, the soft link stops working. Typically, soft links are aliases (ALTERNATIVE paths) for the original file. Soft links are created by the following command:
$ ln  -s [original filename] [link name]


Discussion

No Comment Found