How do I create a symbolic link?

A symbolic link is a pointer to another file or directory. It can be used just like the original file or directory. A symbolic link appears in a long listing (ls -l) with a reference to the original file/directory. A symbolic link, as opposed to a hard link, is required when linking from one filesystem to another and can be used within a filesystem as well.

To create a symbolic link, the syntax of the command is similar to a copy or move command: existing file first, destination file second. For example, to link the directory /home/username/public_html/matt/private/forum to /phpbb for easy access, use: 

ln -s /home/username/public_html/matt/private/forum /phpbb
  • 0 משתמשים שמצאו מאמר זה מועיל
?האם התשובה שקיבלתם הייתה מועילה

מאמרים קשורים

How do I launch SSH or Shell Access tools?

Overview SSH (Secure Shell) is a program to log into another computer/server over a network...

What are some commonly used UNIX shell commands?

Creating a Directory   You can create a directory by using the mkdir command. For example, to...

How do I find information on other UNIX commands?

The UNIX command line interface is wonderful. With that power comes complexity if only in the...

How do I create a tar archive of a directory?

A common task in UNIX operating systems is creating an archive of many files or directories in a...

How do I find files and directories?

To search the current directory and all subdirectories for a folder or file, use the following...