linux: /user Directory
Linux: /user Directory:
The correct directory name is /usr, not /user.
The /usr directory in Linux typically contains user-related files and programs. It is a large directory and has many subdirectories and files. Here are some of the most important subdirectories in the /usr directory:
- /usr/bin: This directory contains binary executable files that are commonly used by users and system administrators. Many of these programs are essential for the system to function properly.
- /usr/sbin: This directory contains system administrator binaries that are used for system maintenance and configuration tasks. These programs are generally not used by regular users.
- /usr/lib: This directory contains libraries that are required by programs in /usr/bin and /usr/sbin directories.
- /usr/local: This directory contains programs and data that are not included in the Linux distribution's official package management system. Users can install their own software in this directory without interfering with the system's core components.
- /usr/share: This directory contains shared data that is used by various programs installed on the system, such as documentation, icons, and fonts.
- /usr/include: This directory contains header files that are used by C and C++ programs during compilation.
- /usr/games: This directory contains small games that can be run on the system.
- /usr/src: This directory contains source code for various software packages that have been installed on the system. It is typically used by developers who want to build and modify software.
यह लिनक्स फ़ाइल सिस्टम का डायरेक्टरी /usr होता है। इसमें अनुप्रयोगों, लाइब्रेरीज़, सिस्टम डेटा, दस्तावेज़ और अन्य उपयोगी सामग्री होती है। यहाँ नीचे कुछ उपयोगी उप-डायरेक्टरियाँ दी गई हैं:
- /usr/bin: इस डायरेक्टरी में सारे साधारण उपयोग के लिए बाइनरी फ़ाइलें होती हैं। जो सामान्य उपयोग के लिए होती हैं।
- /usr/local: इस डायरेक्टरी में स्थानीय अनुप्रयोगों, लाइब्रेरीज़ और सामग्री होती हैं।
- /usr/share: इस डायरेक्टरी में साझा सामग्री, जैसे कि आइकन, फ़ॉन्ट और दस्तावेज़ होती हैं।
- /usr/include: इस डायरेक्टरी में C/C++ स्रोत फ़ाइलों का नाम होता है, जो विभिन्न लाइब्रेरीज़ के लिए होते हैं।
- /usr/lib: इस डायरेक्टरी में सिस्टम लाइब्रेरीज़ होती हैं, जो अनुप्रयोगों और सिस्टम के लिए आवश्यक होती हैं।
- /usr/sbin: इस डायरेक्टरी में सिस्टम एडमिनिस्ट्रेशन उपयोग के लिए बाइनरी फ़ाइलें होती हैं।
- /usr/src: इस डायरेक्टरी मेने, यह उपयोगकर्ताओं के लिए कंपाइल और इंस्टॉल करने के लिए कर्णल स्रोत फ़ाइलों को संग्रहीत करती है।
- /usr/bin डायरेक्टरी में फ़ाइल बनाएँ:
यहाँ एक उदाहरण दिया गया है कि कैसे आप /usr डायरेक्टरी में फ़ाइलें बना सकते हैं:
bashsudo touch /usr/bin/myfile
- /usr/local डायरेक्टरी में नया डायरेक्टरी बनाएँ:
bashsudo mkdir /usr/local/myfolder
- /usr/include डायरेक्टरी में फ़ाइल बनाएँ:
bashsudo touch /usr/include/myheader.h
- /usr/lib डायरेक्टरी में नई लाइब्रेरी बनाएँ:
bashsudo gcc -shared -o /usr/lib/libmylibrary.so /usr/local/myfolder/myfile.c
- /usr/sbin डायरेक्टरी में फ़ाइल बनाएँ:
bashsudo touch /usr/sbin/myscript.sh
इस तरह से, /usr डायरेक्टरी में आप अपनी जगह पर फ़ाइलें बना सकते हैं और अनुप्रयोगों और सिस्टम के लिए उपयोगी सामग्री रख सकते हैं।
Comments
Post a Comment