BCA / B.Tech 20 min read

Commands of Linux in Hindi | लिनक्स के कमांड्स हिंदी में

Commands of Linux in Hindi | लिनक्स के कमांड्स हिंदी में :


लिनक्स (Linux) में विभिन्न कार्यों को करने के लिए सैकड़ों कमांड्स का उपयोग किया जाता है। कुछ सामान्य कमांड्स जो अक्सर उपयोग होते हैं, जैसे कि फाइलें बनाना, डिलीट करना, डायरेक्टरी (फ़ोल्डर) बनाना, और अन्य बुनियादी कार्य। यहां सभी प्रमुख कमांड्स को उनके उपयोग के साथ समझाया गया है।


Commands of Linux in Hindi | लिनक्स के कमांड्स हिंदी में

Directives and commands to create files in Hindi | डायरेक्टरी और फाइलें बनाने के कमांड्स

a. डायरेक्टरी (फ़ोल्डर) बनाना – mkdir

कमांड: mkdir <डायरेक्टरी का नाम>

उदाहरण: mkdir my_directory

यह कमांड "my_directory" नाम की एक नई डायरेक्टरी बनाएगा।

b. फाइलें बनाना – touch

कमांड: touch <फाइल का नाम>

उदाहरण: touch myfile.txt

यह कमांड एक नई खाली फाइल "myfile.txt" बनाएगा।

c. फाइल बनाना और उसमें टेक्स्ट जोड़ना – echo और >

कमांड: echo "<टेक्स्ट>" > <फाइल का नाम>

उदाहरण: echo "Hello, World!" > myfile.txt

यह कमांड "myfile.txt" फाइल में "Hello, World!" टेक्स्ट को जोड़ेगा।

Directives and commands to Delete files in Hindi |  डायरेक्टरी और फाइलें हटाने के कमांड्स

a. फाइल हटाना – rm

कमांड: rm <फाइल का नाम>

उदाहरण: rm myfile.txt

यह कमांड "myfile.txt" फाइल को डिलीट कर देगा।

b. डायरेक्टरी हटाना – rmdir (खाली डायरेक्टरी के लिए)

कमांड: rmdir <डायरेक्टरी का नाम>

उदाहरण: rmdir my_directory

यह कमांड "my_directory" नाम की खाली डायरेक्टरी को हटा देगा।

c. डायरेक्टरी और सभी सामग्री को हटाना – rm -r

कमांड: rm -r <डायरेक्टरी का नाम>

उदाहरण: rm -r my_directory

यह कमांड "my_directory" और उसकी सभी फाइलों और सब-डायरेक्टरीज को डिलीट कर देगा।

Commands for directory navigation in Hindi | डायरेक्टरी नेविगेशन के लिए कमांड्स

a. डायरेक्टरी बदलना – cd

कमांड: cd <डायरेक्टरी का पथ>

उदाहरण: cd my_directory

यह कमांड "my_directory" में नेविगेट करेगा।

b. वर्तमान डायरेक्टरी देखना – pwd

कमांड: pwd

उदाहरण: pwd

यह कमांड वर्तमान कार्यशील डायरेक्टरी का पथ (path) दिखाएगा।

c. एक स्तर ऊपर जाना – cd ..

कमांड: cd ..

यह कमांड आपको वर्तमान डायरेक्टरी से एक स्तर ऊपर ले जाएगा।

Commands to view file and directory information in Hindi |  फाइल और डायरेक्टरी जानकारी देखने के लिए कमांड्स

a. डायरेक्टरी सूची दिखाना – ls

कमांड: ls

उदाहरण: ls

यह कमांड वर्तमान डायरेक्टरी में मौजूद सभी फाइलों और फोल्डरों की सूची दिखाता है।

b. विस्तृत सूची दिखाना – ls -l

कमांड: ls -l

उदाहरण: ls -l

यह कमांड फाइलों और फोल्डरों की विस्तृत सूची दिखाता है, जिसमें उनके परमिशन, साइज, और निर्माण की तारीख शामिल होती है।

c. छिपी हुई फाइलें दिखाना – ls -a

कमांड: ls -a

उदाहरण: ls -a

यह कमांड छिपी हुई फाइलें भी दिखाता है, जिनके नाम "." से शुरू होते हैं।

Commands to copy and move files and directories in Hindi |  फाइल्स और डायरेक्टरी कॉपी और मूव करने के लिए कमांड्स

a. फाइल कॉपी करना – cp

कमांड: cp <स्रोत फाइल> <गंतव्य>

उदाहरण: cp myfile.txt /home/user/backup/

यह कमांड "myfile.txt" फाइल को "backup" डायरेक्टरी में कॉपी करेगा।

b. डायरेक्टरी कॉपी करना – cp -r

कमांड: cp -r <स्रोत डायरेक्टरी> <गंतव्य>

उदाहरण: cp -r my_directory /home/user/backup/

यह कमांड "my_directory" और उसकी सभी सामग्री को "backup" डायरेक्टरी में कॉपी करेगा।

c. फाइल या डायरेक्टरी मूव करना – mv

कमांड: mv <स्रोत> <गंतव्य>

उदाहरण: mv myfile.txt /home/user/backup/

यह कमांड "myfile.txt" को "backup" डायरेक्टरी में मूव करेगा।

d. नाम बदलना – mv

कमांड: mv <पुराना नाम> <नया नाम>

उदाहरण: mv oldfile.txt newfile.txt

यह कमांड "oldfile.txt" का नाम बदलकर "newfile.txt" कर देगा।

Commands for file and directory permissions in Hindi | फ़ाइल और डायरेक्टरी परमिशन के लिए कमांड्स

a. फाइलों और डायरेक्टरीज़ की परमिशन बदलना – chmod

कमांड: chmod <परमिशन> <फाइल या डायरेक्टरी>

उदाहरण: chmod 755 myfile.txt

यह कमांड "myfile.txt" की परमिशन को बदल देगा ताकि मालिक (Owner) को पढ़ने, लिखने और निष्पादित करने की परमिशन मिले, और अन्य यूज़र्स को केवल पढ़ने और निष्पादित करने की अनुमति हो।

b. फाइल के मालिक को बदलना – chown

कमांड: chown <मालिक का नाम> <फाइल या डायरेक्टरी>

उदाहरण: chown user myfile.txt

यह कमांड "myfile.txt" फाइल का मालिक बदलकर "user" कर देगा।

System information and process management commands in Hindi | सिस्टम जानकारी और प्रोसेस प्रबंधन कमांड्स

a. सिस्टम जानकारी देखना – uname

कमांड: uname -a

यह कमांड सिस्टम के बारे में सभी जानकारी प्रदर्शित करता है, जैसे कि कर्नल वर्ज़न, सिस्टम का नाम, और आर्किटेक्चर।

b. सिस्टम की मेमोरी जानकारी देखना – free

कमांड: free -h

यह कमांड सिस्टम में उपलब्ध और उपयोग की गई RAM की जानकारी देता है।

c. चल रहे प्रोसेस देखना – ps

कमांड: ps -aux

यह कमांड वर्तमान में चल रहे सभी प्रोसेस की सूची दिखाता है।

d. प्रोसेस बंद करना – kill

कमांड: kill

उदाहरण: kill 1234

यह कमांड PID (Process ID) 1234 वाले प्रोसेस को बंद कर देगा।

e. सिस्टम बंद करना – shutdown

कमांड: sudo shutdown now

यह कमांड तुरंत सिस्टम को बंद कर देगा।

Networking and Internet related commands in Hindi | नेटवर्किंग और इंटरनेट से संबंधित कमांड्स

a. IP एड्रेस देखना – ifconfig

कमांड: ifconfig

यह कमांड नेटवर्क इंटरफेस की जानकारी और IP एड्रेस दिखाता है।

b. होस्ट को पिंग करना – ping

कमांड: ping <होस्ट का नाम या IP>

उदाहरण: ping google.com

  • यह कमांड होस्ट को पिंग करता है और नेटवर्क कनेक्शन की स्थिति जांचता है।
  • ये कुछ प्रमुख लिनक्स कमांड्स हैं जो आपको फाइल और डायरेक्टरी प्रबंधन, सिस्टम जानकारी प्राप्त करने, और नेटवर्क कनेक्शन की जांच करने में मदद करेंगे।


Most Important Commands in Linux in Hindi | लिनक्स में सबसे महत्वपूर्ण कमांड हिंदी में :


Files & Navigation

  • Is:- directory listing (list all files/folders on current dir)
  • Is -1:- formatted listing
  • Is-la:- formatted listing including hidden files
  • cd dir:- change directory to dir (dir will be directory name)
  • cd..:- change to parent directory
  • cd../dir:- change to dir in parent directory
  • cd:- change to home directory
  • pwd:- show current directory
  • mkdir dir - create a directory dir
  • rm file: delete file
  • rm -f dir:- force remove file
  • rm -r dir:- delete directory dir
  • rm-rf dir:- remove directory dir
  • cp filel file2 :- copy fill to filo2
  • my filel file2 :- rename filel to file2
  • mv filel dir/file2:- move filel to dir as file2
  • touch file: creato or updato filo
  • cat file :- output contents of file
  • cat > file :- write standard input into file
  • cat >> file : append standard input into file
  • tail-f file :- output contents of file as it grows

Networking

  • ping host:- ping host
  • whois domain :- get whois for domain
  • dig domain :- get DNS for domain
  • dig-x host:- reserve lookup host
  • wget file:- download file
  • wget -c file: continue stopped download
  • wget-rurl:- recursively download files from url
  • curl url :- outputs the webpage from url
  • curl -o meh.html url:- writes the page to meh.html
  • ssh user@host:- connect to host as user
  • ssh -p port user@host:- connect using port
  • ssh-D user@hostr@host:- connect & use bind port

Processes

  • ps :- display currently active processes
  • ps aux:- detailed outputs
  • kill pid:- kill process with process id (pid)
  • killall proc :- kill all processes named proc

System Info

  • date :- show current date/time
  • uptime:- show uptime
  • whoami :- who you're logged in as
  • w:- display who is online
  • cat/proc/cpuinfo:- display cpu info
  • cat/proc/meminfo:- memory info
  • free:- show memory and swap usage
  • du:- show directory space usage
  • du-sh:- displays readable sizes in GB df:- show disk usago
  • uname -a: show karnel config

Archive & compress

  • tar cf file.tar files :- tar files into file tar
  • tar xf filo.tar: untar into current directory
  • tar tf file.tar:- show contents of archive

Options:-

  • c-create archive
  • t-table of contents
  • x - extract
  • z-use zip/gzip
  • f- specify filename
  • j- bzip2 compression
  • wask for comfirmation
  • k-do not overwrite
  • T-files from file
  • v-verbose

Permissions

  • chmod octal file - change permissions of file
  • 4-read (r) 2-write (w)
  • 1-execute (x)
  • order: owner/group/world
  • chmod 777:-rwx for everyone
  • chmod 755:-rw for owner, rx for group world

Other Commands

  • grep pattern files:- search in files for pattern grep -r pattern dir:- search for pattern recursively in dir
  • locate file :- find all instances of file
  • whereis app :- show possible locations of app
  • man command:- show manual page for command

In this Chapter

Commands of Linux in Hindi | लिनक्स के कमांड्स हिंदी में
Distributed System in Hindi
Real Time System in Hindi
System Calls in Hindi
System Program in Hindi
Structure of Operating System in Hindi
Layers Design of Structure in Hindi
Unix in Hindi
Virtual Machine in Hindi
Kernel-Based Operating System in Hindi
Process Concept in Hindi
Interacting Processes in Hindi
Threads in Hindi
Fundamental of Schedulling in Hindi
Scheduling Criteria in Hindi
Long Medium Short Term Scheduling in Hindi
Scheduling Algorithms in Hindi
Structure of Concurrent System in Hindi
Critical Region in Hindi
Critical Section in Hindi
Inter process Communication in Hindi
Monitor in Hindi
Semaphores in Hindi
Semaphores Implementation & Uses in Hindi
Logical and Physical Address in Hindi
Swapping in Hindi
Contiguous Allocation in Hindi
Segmentation in Hindi
Paging in Hindi
Paging with Segmentation in Hindi
kernel Memory Allocation in Hindi
Page Replacement Algorithms in Hindi
Virtual Memory in Hindi
Virtual Memory with demand Paging in Hindi
Deadlock & Characterization in Hindi
Methods for Handling Deadlocks in Hindi
Deadlock Thrashing in Hindi
Allocation of Frames in Hindi
Virtual Memory using Segmentation in Hindi
Interprocess Communication protocol in Hindi
Network Operating System in Hindi
Design Issues in Distributed File System in Hindi
Network Structure in Hindi
Structure Distributed System in Hindi
File System and Coordination in Hindi
Linux in Hindi
Programmer Interface & File manipulation in Hindi
Process control in Linux in Hindi
Linux Kernel & Signals in Hindi
File System in Linux in Hindi
block & inodes in Hindi
System Editor in Hindi
Character Transliteration in Hindi
ED in Hindi
Vi Editor & There Commands in Hindi
Shell Script in Hindi
Looping & Decision Making in Hindi
Variables & File name Expansion in Hindi
Array in Hindi OS
Sub Program in Hindi
C interface with Linux in Hindi
Simpel Shell Programs in Hindi
BCA Part-1 | Operating Systems | Semester-I | MDSU Exam Paper 2023 (Held in 2024)
What is Operating System (OS) in Hindi
Operating System (OS) All Important Questions and Answers in Hindi (MDSU)
BCA || Operating System 2025 Paper || MDSU Exam Paper
BCA | OS(Operating System) 2023 Paper | MDSU Exam Paper
Type of Operating System in Hindi
Goals of Operating System in Hindi
Operation of Operating system in Hindi
Resource Allocation & Functions in Hindi
class of Operating system in Hindi
Batch Processing in Hindi
Multi Processing in Hindi
Time Sharing in Hindi