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>























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