🚂 RailGuruji
Operating systemsऑपरेटिंग सिस्टम6 / 6

Unix tools and user managementयूनिक्स उपकरण और उपयोगकर्ता प्रबंधन

Updated अद्यतन 07 Oct 2026
1
THE FLAVOURS OF UNIXयूनिक्स के रूप
Unix comes in several flavours, each from a different vendor or line.
  • AIX from IBM; HP-UX from Hewlett-Packard; SOLARIS from Sun
  • The two family lines are SYSTEM V from AT&T and BSD from Berkeley
  • LINUX is a freely distributed Unix-like system; Red Hat, Ubuntu and SUSE are distributions
They share the same ideas: a kernel, a shell, and everything treated as a file. So you can carry the same commands from one flavour to another.
यूनिक्स कई रूपों में आता है, हर रूप अलग विक्रेता या शाखा से।
  • आईबीएम का एआईएक्स; ह्यूलेट-पैकार्ड का एचपी-यूएक्स; सन का सोलारिस
  • दो पारिवारिक शाखाएँ हैं: एटी एंड टी का सिस्टम V और बर्कले का बीएसडी
  • लिनक्स मुक्त रूप से वितरित यूनिक्स जैसी प्रणाली है; रेड हैट, उबुंटू और सूसे इसके वितरण हैं
इन सबके विचार समान हैं: एक कर्नेल, एक शेल, और हर चीज को फाइल मानना। अर्थात् आप वही कमांड एक रूप से दूसरे में ले जा सकते हैं।
2
THE VI EDITORvi एडिटर
vi works in MODES, and you switch between them.
  • COMMAND MODE is where vi starts. Esc always returns you there
  • i inserts before the cursor, a appends after it, and o opens a new line below
  • x deletes a character; dd deletes a line; yy copies a line; p pastes it
  • /word searches forward for word
  • :w saves, :q quits, :wq saves and quits, and :q! quits without saving
So you press Esc, then type :wq to save and leave.
vi मोड में काम करता है, और आप उनके बीच बदलते हैं।
  • कमांड मोड वह है जहाँ vi शुरू होता है। Esc आपको सदा वहीं लौटाता है
  • i कर्सर से पहले डालता है, a उसके बाद जोड़ता है, और o नीचे नई पंक्ति खोलता है
  • x एक अक्षर हटाता है; dd एक पंक्ति हटाता है; yy एक पंक्ति कॉपी करता है; p उसे चिपकाता है
  • /word आगे की ओर word खोजता है
  • :w सहेजता है, :q बाहर निकलता है, :wq सहेजकर निकलता है, और :q! बिना सहेजे निकलता है
अर्थात् आप Esc दबाते हैं, फिर सहेजकर निकलने के लिए :wq टाइप करते हैं।
3
SHELL PROGRAMMINGशेल प्रोग्रामिंग
The SHELL reads your commands and runs them. A SHELL SCRIPT is a file of commands run together.
  • The shells are sh, the Bourne shell; csh, the C shell; ksh, the Korn shell; and bash
  • The first line, #!/bin/sh, names the shell; chmod +x makes the script executable
  • $1 and $2 are the arguments, $# is their count, and $? is the last exit status
  • if ... then ... fi tests a condition; for ... do ... done loops; case ... esac chooses
  • A pipe, |, sends one command's output into the next command
So a script is commands in a file, and a pipe chains commands together.
शेल आपकी कमांड पढ़कर चलाता है। शेल स्क्रिप्ट कमांडों की फाइल है जो एक साथ चलती हैं।
  • शेल हैं: sh, अर्थात् बॉर्न शेल; csh, अर्थात् सी शेल; ksh, अर्थात् कॉर्न शेल; और bash
  • पहली पंक्ति #!/bin/sh शेल का नाम बताती है; chmod +x स्क्रिप्ट को चलाने योग्य बनाता है
  • $1 और $2 तर्क हैं, $# उनकी संख्या है, और $? अंतिम निकास स्थिति है
  • if ... then ... fi शर्त जाँचता है; for ... do ... done लूप चलाता है; case ... esac चुनता है
  • पाइप, |, एक कमांड का आउटपुट अगली कमांड में भेजता है
अर्थात् स्क्रिप्ट फाइल में रखी कमांडें हैं, और पाइप कमांडों को जोड़ता है।
4
GREP AND AWKgrep और awk
  • GREP prints the lines of a file that match a pattern
  • grep -i ignores case; -v prints the lines that do NOT match; -c counts them; -n numbers them
  • AWK processes text field by field, as PATTERN { ACTION } pairs
  • In awk, $1 is the first field and $0 the whole line; NR is the record number, and NF the field count
  • awk -F sets the field separator: awk -F: '{print $1}' /etc/passwd lists user names
AWK is named after its authors, Aho, Weinberger and Kernighan. So you find lines with grep, and you pick out fields with awk.
  • grep फाइल की वे पंक्तियाँ छापता है जो किसी पैटर्न से मेल खाती हैं
  • grep -i अक्षरों का छोटा-बड़ा होना अनदेखा करता है; -v मेल न खाने वाली पंक्तियाँ छापता है; -c उन्हें गिनता है; -n उन्हें क्रमांक देता है
  • awk पाठ को फील्ड-दर-फील्ड, पैटर्न { एक्शन } जोड़ों के रूप में संसाधित करता है
  • awk में $1 पहला फील्ड है और $0 पूरी पंक्ति; NR अभिलेख संख्या है, और NF फील्डों की गिनती
  • awk -F फील्ड विभाजक तय करता है: awk -F: '{print $1}' /etc/passwd उपयोगकर्ता नाम सूचीबद्ध करता है
awk का नाम इसके लेखकों, अहो, वाइनबर्गर और कर्निघन, पर है। अर्थात् पंक्तियाँ आप grep से खोजते हैं, और फील्ड awk से निकालते हैं।
5
USER MANAGEMENT AND SECURITY IN UNIXयूनिक्स में उपयोगकर्ता प्रबंधन और सुरक्षा
  • useradd creates a user, usermod changes one, userdel removes one; passwd sets the password
  • /etc/passwd lists the accounts; /etc/shadow holds the encrypted passwords; /etc/group lists the groups
  • ROOT is the superuser, who may do anything; su switches to another user
  • Permissions are READ 4, WRITE 2 and EXECUTE 1, for the owner, the group and others
  • chmod 755 gives the owner rwx, and the group and others r-x
You add the numbers: 4 + 2 + 1 = 7, and 4 + 1 = 5. So 7 means rwx, and 5 means r-x.
  • useradd उपयोगकर्ता बनाता है, usermod बदलता है, userdel हटाता है; passwd पासवर्ड तय करता है
  • /etc/passwd खाते सूचीबद्ध करता है; /etc/shadow एन्क्रिप्टेड पासवर्ड रखता है; /etc/group समूह सूचीबद्ध करता है
  • रूट सुपरयूजर है, जो कुछ भी कर सकता है; su दूसरे उपयोगकर्ता पर जाता है
  • अनुमतियाँ हैं: रीड 4, राइट 2 और एक्जीक्यूट 1, स्वामी, समूह और अन्य के लिए
  • chmod 755 स्वामी को rwx, और समूह तथा अन्य को r-x देता है
आप संख्याएँ जोड़ते हैं: 4 + 2 + 1 = 7, और 4 + 1 = 5। अर्थात् 7 का अर्थ rwx है, और 5 का अर्थ r-x।
6
USER MANAGEMENT IN WINDOWSविंडोज में उपयोगकर्ता प्रबंधन
  • A LOCAL account lives on one computer; a DOMAIN account lives in Active Directory and works across the network
  • Windows creates the ADMINISTRATOR and GUEST accounts at installation
  • You give rights to GROUPS, such as Administrators and Users, and place users in them
  • Local users are managed in Computer Management; domain users in Active Directory Users and Computers
  • NET USER lists and manages accounts from the command prompt
So a domain account gives you the single logon of Active Directory.
  • लोकल खाता एक कंप्यूटर पर रहता है; डोमेन खाता एक्टिव डायरेक्टरी में रहता है और पूरे नेटवर्क पर चलता है
  • विंडोज स्थापना के समय एडमिनिस्ट्रेटर और गेस्ट खाते बनाता है
  • आप अधिकार समूहों, जैसे एडमिनिस्ट्रेटर्स और यूजर्स, को देते हैं और उपयोगकर्ताओं को उनमें रखते हैं
  • लोकल उपयोगकर्ता कंप्यूटर मैनेजमेंट में संभाले जाते हैं; डोमेन उपयोगकर्ता एक्टिव डायरेक्टरी यूजर्स एंड कंप्यूटर्स में
  • net user कमांड प्रॉम्प्ट से खाते सूचीबद्ध और प्रबंधित करता है
अर्थात् डोमेन खाता आपको एक्टिव डायरेक्टरी का एक ही लॉगऑन देता है।
Report an error on this pageइस पेज में गलती बताएँ
Read it — now test yourself. पढ़ लिया — अब खुद को परखें। Take the free Mock CBTफ्री Mock CBT दें