Adding and deleting users in Linux In Hindi

Linux mein users ko add aur delete karne ke liye aapko useradd aur userdel commands ka istemal karna hota hai.

Adding and deleting users in Linux In Hindi

Yahan main aapko is prakriya ko step-by-step samjhaunga:

1. Naye User Ko Add Karna:

  1. Naye User Ko Banaye:
    • useradd command se naye user ko create karen. Yadi aap “john” naam ke naye user ko banana chahte hain, to yeh command istemal karen:
      sudo useradd john
  2. User Ka Password Set Karein:
    • Naye user ke liye password set karen. Iske liye passwd command ka istemal karen:
      sudo passwd john
    • Aapko password enter karne ke liye kaha jayega. Password dalein aur confirm karein.

2. User Ko Delete Karna:

  1. User Ko Hataye:
    • userdel command se existing user ko delete karen. Yadi aap “john” user ko hatana chahte hain, to yeh command istemal karen:
      sudo userdel john
  2. User Ke Home Directory Ko Bhi Delete Karein:
    • User ke home directory aur uske files ko bhi hatane ke liye -r option ka istemal karen:
      sudo userdel -r john

Is tarah se aap Linux mein naye users ko create kar sakte hain aur unhe delete bhi kar sakte hain. Users ke saath unke associated files aur directories ko hatane se pahle dhyan se soch kar karen, kyun ki ye data permanent taur par delete ho jata hai.

Leave a Comment