Wednesday, April 12, 2023

Linux File System (लिनक्स फाइल सिस्टम) , Directory Structure (डायरेक्टरी स्ट्रक्चर ) , Standard Directories (स्टैंडर्ड डायरेक्टरीज) in hindi in english

 Linux File System (लिनक्स फाइल सिस्टम)-

Linux OS has a tree-type hierarchical file system. In which a forward slash (/) representing the root node. Here, a file is represented by an inode which is the combination of an id number and file data like Its size, location, creation date, modification date,owner name, other permissions etc. There are many types of file like regular files, directories, special files, links, sockets, named pipes and block devices etc. A disc partition contains the set of all file types and it is called container. The file system is used to handle two major operations i.e.. storing files and accessing of files efficiently.

लिनक्स ओएस में एक ट्री-टाइप हायरार्किकल फ़ाइल सिस्टम होता है। जिसमें एक फ़ॉरवर्ड स्लैश (/) रूट नोड का प्रतिनिधित्व करता है। यहां, एक फ़ाइल को एक आई नोड द्वारा दर्शाया जाता है जो एक आईडी नंबर और फ़ाइल डेटा का संयोजन होता है जैसे इसका आकार, स्थान, निर्माण तिथि, संशोधन तिथि, मालिक का नाम, अन्य अनुमतियां आदि। लिनक्स में कई प्रकार की फाइलें होती हैं जैसे नियमित फाइलें, डायरेक्टरीयां , विशेष फाइलें, लिंक, सॉकेट, नामित पाइप और ब्लॉक डिवाइस इत्यादि। एक डिस्क विभाजन में सभी फ़ाइल प्रकारों का सेट होता है और इसे कंटेनर कहा जाता है। फ़ाइल सिस्टम का उपयोग दो प्रमुख कार्यों को पूर्ण करने के लिए किया जाता है जो है फ़ाइलों को संग्रहीत करना और फ़ाइलों तक कुशलता से पहुँचना।

Types of file system( फाइल सिस्टम के प्रकार):- 

There are many types of Linux file systems i.e.. HPFS, FreeBSD, JFS, EXT2, EXT3,ReiserFS, EXT4, Fat32 and ExFAT etc. we can select one of them in our Linux computer as per our requirement.

लिनक्स फाइल सिस्टम कई प्रकार के होते हैं, जैसे HPFS, FreeBSD, JFS, EXT2, EXT3, ReiserFS, EXT4, Fat32 और ExFAT आदि। हम अपनी आवश्यकता के अनुसार अपने Linux कंप्यूटर में उनमें से एक का चयन कर सकते हैं।

Mounting and Unmounting The File System (फाइल सिस्टम को माउंटिंग और अनमाउंटिंग करना):-

Connecting the file system present on the device is called Mounting. We can use mount command to mounts a storage device or file system, making it accessible and attaching it to an existing directory structure. for example-

डिवाइस पर उपस्थित फाइल सिस्टम को कनेक्ट करना माउंटिंग कहलाता है। हम स्टोरेज डिवाइस या फाइल सिस्टम को माउंट करने के लिए mount कमांड का उपयोग कर सकते हैं एवं इसे एक्सेस करने योग्य बना सकते हैं और इसे तत्कालीन डायरेक्टरी स्ट्रक्चर से जोड़ सकते हैं। उदाहरण के लिए-

$mount /dev/sda3 /myfile

Disconnecting the file system present on the device is called Unmounting. We can use umount command to unmount a mounted file system.First of all, it informs the system to complete any pending read or write operations and then safely disconnecting it.

डिवाइस पर उपस्थित फाइल सिस्टम को डिस्कनेक्ट करना अनमाउंटिंग कहलाता है। माउंटेड फ़ाइल सिस्टम को अनमाउंट करने के लिए हम umount कमांड का उपयोग कर सकते हैं। सबसे पहले, यह सिस्टम को किसी भी लंबित पढ़ने या लिखने वाले ऑपरेशन को पूरा करने और फिर इसे सुरक्षित रूप से डिस्कनेक्ट करने के लिए सूचित करता है।

$umount

Directory Structure (डायरेक्टरी स्ट्रक्चर )-

Linux uses a hierarchical file system structure. It is a collection of files and directories that has the following properties −
लिनक्स एक हायरार्किकल फ़ाइल सिस्टम संरचना का उपयोग करता है यह फाइलों और डायरेक्टरीओं का एक संग्रह है जिसमें निम्नलिखित गुण होते हैं -

It has a root directory (/) that contains other files and directories.
इसकी एक रूट डायरेक्टरी (/) है जिसमें अन्य फाइलें और डायरेक्टरीयां हैं।

Each file or directory is uniquely identified by its name, the directory in which it resides, and a unique identifier, typically called an inode.
प्रत्येक फ़ाइल या डायरेक्टरी को विशिष्ट रूप से उसके नाम से पहचाना जाता है, वह डायरेक्टरी जिसमें वह रहता है, और एक विशिष्ट पहचानकर्ता, जिसे आईनोड कहा जाता है।

Generally, the root directory has an inode number of 2 and the lost+found directory has an inode number of 3. Inode numbers 0 and 1 are not used. File inode numbers can be seen by specifying the -i option to ls command.
सामान्यतः रूट डायरेक्टरी का आईनोड नंबर 2 होता है और लॉस्ट+फाउंड डायरेक्टरी का आईनोड नंबर 3 होता है। आईनोड नंबर 0 और 1 का उपयोग नहीं किया जाता है। फ़ाइल आईनोड संख्या को -i विकल्प को ls कमांड में निर्दिष्ट करके देखा जा सकता है।
It is self-contained. There are no dependencies between one file system and another.
यह स्वयं पूर्ण होता है। एक फाइल सिस्टम और दूसरे फाइल सिस्टम के बीच कोई निर्भरता नहीं है।

The directories have specific purposes and generally hold the same types of information for easily locating files. Following are the directories that exist on the major versions of Unix −
डायरेक्टरीओं के विशिष्ट उद्देश्य होते हैं और आम तौर पर फ़ाइलों को आसानी से ढूंढने के लिए समान प्रकार की जानकारी रखते हैं। निम्नलिखित निर्देशिकाएँ हैं जो यूनिक्स के प्रमुख संस्करणों पर मौजूद हैं -

Directory Name & It's Description (निर्देशिका का नाम और उसका विवरण) -

/ - This is the root directory which should contain only the directories needed at the top level of the file structure
यह मूल डायरेक्टरी है जिसमें केवल फ़ाइल संरचना के शीर्ष स्तर पर आवश्यक डायरेक्टरीयां  होनी चाहिए

/bin - This is where the executable files are located. These files are available to all users
यह वह जगह है जहाँ निष्पादन योग्य फ़ाइलें स्थित हैं। ये फ़ाइलें सभी उपयोगकर्ताओं के लिए उपलब्ध हैं
/dev - These are device drivers
ये डिवाइस ड्राइवर हैं

/etc - Supervisor directory commands, configuration files, disk configuration files, valid user lists, groups, Ethernet, hosts, where to send critical messages
पर्यवेक्षक डायरेक्टरी कमांड, कॉन्फ़िगरेशन फ़ाइलें, डिस्क कॉन्फ़िगरेशन फ़ाइलें, मान्य उपयोगकर्ता सूची, समूह, ईथरनेट, होस्ट, जहाँ महत्वपूर्ण संदेश भेजने हैं

/lib - Contains shared library files and sometimes other kernel-related files
साझा लाइब्रेरी फ़ाइलें और कभी-कभी अन्य कर्नेल-संबंधित फ़ाइलें शामिल होती हैं

/boot - Contains files for booting the system
सिस्टम को बूट करने के लिए फाइल रखता है
/home - Contains the home directory for users and other accounts
उपयोगकर्ताओं और अन्य खातों के लिए होम डायरेक्टरी शामिल है

/mnt - Used to mount other temporary file systems, such as cdrom and floppy for the CD-ROM drive and floppy diskette drive, respectively
अन्य अस्थायी फ़ाइल सिस्टम को आरोहित करने के लिए उपयोग किया जाता है, जैसे कि सीडी-रोम ड्राइव और फ्लॉपी डिस्केट ड्राइव के लिए क्रमशः सीडी-रोम  और फ्लॉपी

/proc - Contains all processes marked as a file by process number or other information that is dynamic to the system
प्रक्रिया संख्या या सिस्टम के लिए गतिशील अन्य जानकारी द्वारा फ़ाइल के रूप में चिह्नित सभी प्रक्रियाओं को समाहित करता है

/tmp - Holds temporary files used between system boots
सिस्टम बूट के बीच उपयोग की जाने वाली अस्थायी फ़ाइलों को रखता है
/usr - Used for miscellaneous purposes, and can be used by many users. Includes administrative commands, shared files, library files, and others
विविध उद्देश्यों के लिए उपयोग किया जाता है, और कई उपयोगकर्ताओं द्वारा उपयोग किया जा सकता है। व्यवस्थापकीय आदेश, साझा की गई फ़ाइलें, लाइब्रेरी फ़ाइलें और अन्य शामिल हैं

/var - Typically contains variable-length files such as log and print files and any other type of file that may contain a variable amount of data
आमतौर पर चर-लंबाई वाली फ़ाइलें जैसे लॉग और प्रिंट फ़ाइलें और किसी अन्य प्रकार की फ़ाइल जिसमें डेटा की एक चर राशि हो सकती है

/sbin - Contains binary (executable) files, usually for system administration. For example, fdisk and if config utilities
आमतौर पर सिस्टम प्रशासन के लिए बाइनरी (निष्पादन योग्य) फाइलें होती हैं। उदाहरण के लिए, fdisk और if config उपयोगिताएँ

/kernel - Contains kernel files
कर्नेल फ़ाइलें शामिल हैं



No comments:

Post a Comment