Saving files & quitting vi in Linux in Hindi

Vi (Vim) text editor mein files ko save karna aur Vim ko quit karna kaafi important operations hain. Niche diye gaye steps aapko batayenge kaise aap files ko save kar sakte hain aur Vim ko quit kar sakte hain:

Saving files & quitting vi in Linux in Hindi

Saving Files in Vim in Linux in Hindi:

  1. Vim mein text edit karne ke baad, aapko text ko save karna hoga. Yeh kaise karein, niche diye gaye steps follow karke: a. Normal mode mein jaane ke liye, Esc key press karein (agar aap Insert mode mein hain to). b. : key press karein, jisse aap command mode mein chale jayenge. c. w (write) command ko type karein aur Enter key press karein. Example: :w d. Agar aap specific file name ke sath save karna chahte hain, to :w filename type karein, jahan filename aapke file ka naam hai. Example: :w myfile.txt Aapka file ab save ho gaya hai.

Quitting Vim in Linux in Hindi:

  1. Vim ko quit karne ke liye, aapko Vim ke command mode mein jana hoga.
  2. : key press karein, jisse aap command mode mein chale jayenge.
  3. q (quit) command ko type karein aur Enter key press karein. Example: :q
  • Agar aapne kisi file mein changes kiye hain aur unhe save nahi kiya hai, to Vim aapko warning dega. Aap :q! type karke changes ignore karke Vim ko quit kar sakte hain.
  1. Vim ko save karke quit karna chahte hain, to aap :wq command ka istemal kar sakte hain. Example: :wq

Ab aapne Vim mein file ko save kiya aur Vim ko quit kiya. Vim ka istemal text editing aur programming mein kiye jane wale tasks ke liye hota hai, aur yeh commands aapke Vim experience ko improve karenge.

Leave a Comment