How to create hardlinks and softlinks on files?
Answers were Sorted based on User's Feedback
Answer / vijayta
ln command is used to create links in Unix
For HardLinks:-
ln <source> <name oflink>
For SoftLink:-
ln -s <source> <linkname>
| Is This Answer Correct ? | 17 Yes | 1 No |
Answer / manish
softlink creates another inode in the filesystem but hard
link just increases the reference count of the existing
inode
| Is This Answer Correct ? | 10 Yes | 3 No |
Can a process kill itself in UNIX/or in its various versions?
What is awk used for?
why unix commands can be divided into internal and external commands?
1-how will you display a file whose name is starting with '- '? 2-how will you add a patten at end of every line in vi editor?
what is Online(STM) and offline diagnostics in HP-UX?
what is the command to get help on a UNIX terminal?
What is the pipe command?
When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system. How can i findthe right soluion??? My pgm: #include<stdlib.h> # include <stdio.h> int main() { int pid; pid=fork(); if(pid < 0) {exit(-1);} else if(pid==0) { printf("Child Process is Sleeping ..."); sleep(10); printf("Orphan Child's Parent ID : %u ",getppid()); } else { printf("Parent Process Completed ... %u ",getpid()); exit(0); } return 0; } Output:
Can you write a command to erase all files in the current directory including all its sub-directories?
What is the use of tee command?
What is the use of the tee command?
how many internal commands is there in UNIX?