what are soft links and hard links, and differentiate them.

Answers were Sorted based on User's Feedback



what are soft links and hard links, and differentiate them...

Answer / rahmad

soft link :
we can create soft link by using #ln -s command
we can create soft link,if the source file doesnt exist.
If the source file delete,we cannot access the content.But
the link exist.we can create a link file which is belong to
another file system,another directory.
Soft link doesnt share the inode number.if u issue ls -l
command l in the first column display the file is a soft
link.
Hard link:
#ln <source file> <link>
we cannot link the file,if the file doesnt exist.
we can link the file with in a directory.
if the source file delete,we can view the content of the
link file..
Hd share the inode number.

Is This Answer Correct ?    9 Yes 0 No

what are soft links and hard links, and differentiate them...

Answer / venus

hard link will be created within the file system and both
have same inode, it is created by using ln command
syntax (ln source destination)
softlink is created across the file system have different
inodes created across the file system,created using
ln -s source destination
if source file is deleted destination will not be executed
detination contains only source path,source and destination
size may be differ from each other

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More Solaris AllOther Interview Questions

what are the questions that will be asked for a 3yrs experienced candidate in solaris system admin. how to face first hr round if one puts fake experience of 2or 3 yrs in solaris system admin. please respond with an opt answer. thank you in advance...

2 Answers   HCL, Wipro,


What is the use of Flar command in solaris

1 Answers  


How will u give a write permission to user inthe group when all other users in that group have only read permission.?

1 Answers  


what is zone configuration file?

2 Answers   IBM,


What is a layered volume? how to create it using vxmake?

1 Answers  






how u will recover the disk group

2 Answers   IBM,


how to kill the process

6 Answers   Lehman Brothers,


how can u create aggregate

1 Answers   IBM,


how can u crete snapshot

1 Answers   HCL,


which is the fast SPARC or Intel ? and why?

3 Answers   IBM,


How to grow a volume?

1 Answers  


how to check packets transmission statistcs b/w servers..?

3 Answers  


Categories
  • Solaris Commands Interview Questions Solaris Commands (360)
  • Solaris Threads Interview Questions Solaris Threads (9)
  • Solaris IPC Interview Questions Solaris IPC (30)
  • Solaris Socket Programming Interview Questions Solaris Socket Programming (3)
  • Solaris System Calls Interview Questions Solaris System Calls (25)
  • Solaris General Interview Questions Solaris General (170)
  • Solaris AllOther Interview Questions Solaris AllOther (297)