How to Make or Create Symbolic Link in Unix or Linux Làm thế nào để Thực hiện hoặc Tạo Symbolic Liên kết trong UNIX hay Linux
Symbolic link (also known as symlink or soft link) is a special type of file that has reference that points to another file or directory, in the form of an absolute or relative path. Symbolic liên kết (còn gọi là symlink hoặc liên kết mềm) là một loại tập tin đặc biệt mà đã là điểm tham chiếu đến một tập tin hoặc thư mục, trong những hình thức của một thân nhân hoặc các đường dẫn tuyệt đối. Symbolic link can be used just like the target original file or folder, as it merely contains a text string that is interpreted and followed by the operating system to another file or directory. Symbolic liên kết có thể được sử dụng cũng như mục tiêu ban đầu tập tin hoặc thư mục, vì nó chỉ chứa một chuỗi văn bản đó là Interpreted và theo sau là hệ điều hành cho một tập tin hoặc thư mục.
Symbolic link is supported on most Unix-like (including Linux) operating systems, Windows Vista (see Symbolic liên kết được hỗ trợ trên hầu hết các kiểu Unix (bao gồm cả Linux) hệ điều hành, Windows Vista (xem Windows Vista symbolic link, hard link and junction point Windows Vista symbolic liên kết, liên kết cứng và đường giao nhau điểm ) and to some degree in Windows 2000 and Windows XP. ) Và một số mức độ trong Windows 2000 và Windows XP. Although symbolic link is pointing to a target, it operates independently of its target (deletion of symbolic link does not been affected), but allows program to behave as if operating directly on the target file. Mặc dù symbolic là liên kết trỏ đến một mục tiêu, hoạt động độc lập của nó, mục tiêu (symbolic xóa các liên kết không bị ảnh hưởng), nhưng cho phép các chương trình xử lý nếu như điều hành trực tiếp trên các mục tiêu tập tin.
So how to create or make a symbolic link? Vì vậy, làm thế nào để tạo ra hoặc thực hiện một symbolic liên kết? To create a symbolic, use the following command syntax: Để tạo một symbolic, hãy sử dụng cú pháp lệnh sau đây:
ln -s [target directory or file] [symlink shortcut]
For example, to link the /usr/local/lib/example directory to /example, use the following command: Ví dụ, để liên kết các thư mục / usr / local / lib / ví dụ vào thư mục / ví dụ, sử dụng lệnh sau đây:
ln -s /usr/local/lib/example /example
After creating the symbolic link above, /example will point to /usr/local/lib/example, and when user changes directory (CD) to /example, OS shell will automatically change it to /usr/local/lib/example directory. Sau khi tạo liên kết tượng trưng ở trên, ví dụ sẽ trỏ đến / usr / local / lib / ví dụ, và khi người dùng thay đổi thư mục (đĩa CD) vào / ví dụ, hệ điều hành trình bao sẽ tự động thay đổi nó vào / usr / local / lib / ví dụ thư mục.
IMPORTANT : The page is machine translated and provided "as is" without warranty. Lưu ý: Các trang web là máy tính dịch và cung cấp "như là" mà không có bảo hành. Machine translation may be difficult to understand. Máy dịch thuật có thể là khó hiểu. Please refer to Xin vui lòng tham khảo original English article Tiếng Anh bản gốc bài viết whenever possible. bất cứ khi nào có thể.
Related Articles Bài viết liên quan
- Change Group Ownership of Symbolic Links in Unix or Linux Thay đổi quyền sở hữu của Tập đoàn Symbolic Liên kết trong UNIX hay Linux
- Create Symbolic Links, Hard Links and Directory Junctions in Vista with MKLINK Tạo Symbolic Liên kết, liên kết cứng và Directory Junctions trong Vista với MKLINK
- Refresh Linux or Unix Path Environmental Variables with rehash Làm mới Linux hay UNIX Đường dẫn với các biến môi trường rehash
- How to Mount USB Disk Drive in UNIX or Linux Làm thế nào để lắp đĩa USB Drive trong UNIX hay Linux
- How to Calculate and Generate MD5 Hash Value in Linux and Unix with md5sum Làm thế nào để Tính toán và Tạo MD5 hash giá trị gia tăng trong Linux và Unix với md5sum
- How to Disable Linux and Unix Cron Jobs (Crontab) Email Sending Làm thế nào để Vô hiệu hoá Linux và Unix Cron Việc làm (Crontab) Gửi email
- How to Change or Spoof MAC Address in Windows XP, Vista, Server 2003/2008, Mac OS X, Unix and Linux Làm thế nào để thay đổi hoặc Spoof Địa chỉ MAC trong Windows XP, Vista, vụ 2003/2008, hệ điều hành Mac OS X, Unix và Linux
- Convert and Create Windows, Mac OS X, or Linux Icons with iConvert Chuyển đổi và Tạo Windows, Mac OS X, hoặc Linux với các biểu tượng iConvert
- Open, Extract and Convert DAA, ISO and BIN Files in Linux with Free PowerISO for Linux Đã giải quyết, Extract và Chuyển đổi daa, ISO và BIN tập tin trong Linux với PowerISO miễn phí cho Linux
- Find Files that are Modified Today (or Since Certain Time Ago) in Unix Tìm các tập tin được sửa đổi hôm nay (hoặc từ một số Thời gian Ago) trong UNIX









































