Skip to content Skip सामग्री के लिए


How to create a symlink (shortcut) in Linux कैसे बनाने के एक लिनक्स में (शॉर्टकट) symlink को

लिनक्स

Symlinks or symbolic links are the Linux equivalent of shortcuts in Windows. Symlinks या प्रतीकात्मक लिंक विंडोज में शॉर्टकट के लिनक्स के बराबर हैं. Creating symlinks of files or folders can be quite useful in Linux, as you can shorten a path such as /var/www/html/application/configuration/images/config.php to something easier to remember and manage such as /var/www/html/image-config.php . फाइल या फ़ोल्डर के symlinks बनाना लिनक्स में काफी उपयोगी हो सकती है, जैसा कि आप ऐसे / var / www / html / आवेदन / विन्यास / images / याद रखना आसान कुछ config.php के रूप में एक छोटा रास्ता और प्रबंधित कर सकते हैं जैसे कि / var / www / html / छवि-config.php. Let's see how this can be done. चलो देखते हैं कि यह कैसे किया जा सकता है.

Use the following command to create such a symlink: निम्न ऐसे symlink बनाने के कमांड का प्रयोग करें:

# ln -s /var/www/html/application/configuration/images/config.php /var/www/html/image-config.php # LN-s var / www / html / अनुप्रयोग विन्यास / / images / config.php / var / www / html / छवि-config.php

What we have done here is that we have created a symbolic link, /var/www/html/image-config.php , to /var/www/html/application/configuration/images/config.php . क्या हम यहाँ किया है कि हम एक प्रतीकात्मक कड़ी बनाया है, / var / www / html / छवि-config.php, को / var / www / html / आवेदन / विन्यास / images / config.php. You can verify if the symlink was created correctly by running the following command: अगर आप को सत्यापित symlink सही ढंग से निम्न कमांड चलाने के द्वारा बनाई गई कर सकते हैं:

# ls -all /var/www/html/image-config.php रास # सभी var / www / html / छवि-config.php
lrwxrwxrwx 1 calvin calvin 37 Apr 29 16:41 image-config.php -> /var/www/html/application/configuration/images/config.php lrwxrwxrwx 1 केल्विन केल्विन 37 अप्रैल 29 16:41 छवि config.php -> / var / www / html / आवेदन / विन्यास / images / config.php

If you are administering a Linux server symlinks can make your life a lot easer and it is something you should definitely familiarize yourself with. यदि आप एक Linux सर्वर symlinks का प्रबंध कर रहे हैं तुम्हारे जीवन में बहुत easer कर सकते हैं और यह कुछ तुम निश्चित रूप से अपने आप से परिचित होना चाहिए है. The easy way to remember the symlink syntax is: आसान तरीका symlink वाक्यविन्यास याद है:

# ln -s <source> <destination link> # LN-<destination एस <source> link>

Posted in पोस्ट में Linux लिनक्स . .

Related Posts: संबंधित पोस्ट:

How to save the output of a Linux command to a file कैसे एक फ़ाइल में एक Linux कमान के उत्पादन को बचाने के लिए
How to encrypt your Linux backups कैसे अपने बैकअप लिनक्स एन्क्रिप्ट करने
How to block an IP address in IPTables in Linux कैसे iptables में लिनक्स में आईपी पता खंड के लिए
How to use your Nokia N95 as a wireless Webcam कैसे एक वायरलेस वेब कैमरा के रूप में अपने नोकिया N95 का उपयोग
How to prevent your SSH session from disconnecting in Linux कैसे Linux में रखती से अपने ssh सत्र को रोकने के लिए

0 Responses 0 प्रतिक्रियायें

Stay in touch with the conversation, subscribe to the बातचीत के साथ संपर्क में रहो, की सदस्यता लें RSS feed for comments on this post आरएसएस के इस पोस्ट पर टिप्पणियों के लिए फ़ीड . .



Some HTML is OK कुछ HTML है ठीक है

or, reply to this post via या, इस पोस्ट के माध्यम से जवाब trackback Trackback . .