Users and sudo · المستخدمون وسودو
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version. · تحتاج هذه الصفحة إلى متصفح حديث (يدعم SharedArrayBuffer). يرجى تحديث Chrome أو Edge أو Firefox أو Safari إلى أحدث إصدار.
English
Many users, one computer
- Linux was built for many people to share one machine safely.
- Each person has a user account.
whoamitells you who you currently are:
- Your files are yours; other users cannot read or change them unless you allow it.
العربية
مستخدمون كثيرون، حاسوب واحد
- تم بناء لينكس لـ العديد من الأشخاص لمشاركة جهاز واحد بأمان.
- لكل شخص حساب مستخدم.
whoamiيخبرك بمن أنت حالياً:
whoami
- ملفاتك ملك لك؛ لا يمكن للمستخدمين الآخرين قراءتها أو تعديلها إلا إذا سمحت لذلك.
English
The superuser: root
- One special user, root, can do anything — change any file, install software, manage other users.
- With great power comes great danger: a wrong command as root can break the whole system.
- So you normally work as an ordinary user, and only become root when you must.
العربية
مستخدم النظام: root
- مستخدم واحد خاص، root، يمكنه فعل أي شيء — تغيير أي ملف، تثبيت برامج، إدارة المستخدمين الآخرين.
- مع السلطة الكبيرة تأتي مخاطر كبيرة: أمر خاطئ بصلاحيات root قد يعطل النظام بأكمله.
- لذا تعمل عادة كمستخدم عادي، وتصبح root فقط عندما يكون ذلك ضرورياً.
English
sudo — borrow root for one command
sudoruns a single command as root (it asks for your password first):
- Think of it as "do this super-user do". Use it only when a task truly needs admin rights — and read the command twice before you press Enter.
العربية
sudo — استعارة صلاحيات الجذر لأمر واحد
sudoيشغل أمرًا واحدًا بصلاحيات root (ويطلب كلمة المرور الخاصة بك أولاً):
sudo apt install git
- اعتبرها "افعل هذا super-user do". استخدمها فقط عندما تتطلب المهمة حقamsitration حقيقية — واقرأ الأمر مرتين قبل الضغط على Enter.
English
Common mistakes
sudoruns one command as the administrator — use it carefully.- Do not put
sudoin front of everything.
العربية
أخطاء شائعة
sudoيشغل أمراً واحداً بصلاحيات المسؤول — استخدمه بحذر.- لا تضع
sudoأمام كل شيء.
Print the name of the user you are logged in as, with whoami. · اطبع اسم المستخدم الذي سجلت الدخول به باستخدام whoami.
Every machine has a name too. Print the name of the computer you are on with hostname. · كل جهاز له اسم أيضاً. اطبع اسم الحاسوب الذي تتواجد عليه باستخدام hostname.