How can you create a symbolic link to a file or directory?



How can you create a symbolic link to a file or directory?..

Answer / hr@tgksolutions.com

Symbolic links (often called symlinks or soft links) can be crafted using the ln command with the -s option. The general form is ln -s target source_link. This creates a symbolic link named source_link that points to the target. Unlike hard links, symbolic links can reference directories or files across different file systems. They are especially useful for creating shortcuts or ensuring multiple paths to a single resource.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Unix Commands Interview Questions

Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?

1 Answers  


Write a command to find all of the files which have been accessed within the last 30 days.

5 Answers   Google, IBM, Satyam,


Explain how to use grep command to list find the records of a file containing 10 different strings?

1 Answers  


What are awk commands?

1 Answers  


Give the command to display space usage on the UNIX file system.

16 Answers  


What is difference between grep and find command in unix?

1 Answers  


The command grep first second third /usr/you/myfile a) prints lines containing the words first, second or third from the file /usr/you/myfile b) searches for lines containing the pattern first in the files second, third, and /usr/you/myfile and prints them c) searches the files /usr/you/myfiel and third for lines containing the words first or second and prints them d) replaces the word first with the word second in the files third and /usr/you/myfile e) None of the above

4 Answers   IBM,


What command a user use to view a long text file one page at a time in UNIX?

8 Answers   IBM,


distinguish between paging and swapping?

1 Answers   Infosys,


How do you know about running processes of a particular user?

11 Answers  


what is the use of nice command?

4 Answers  


hw will u use awk in replacing cahrs and files

1 Answers  


Categories