التنقّل الأساسي: `cd` و`ls` و`pwd`
تعلّم التنقّل داخل نظام الملفات، وسرد محتويات الأدلة، وتحديد موقعك الحالي.
التنقّل الأساسي: `cd` و`ls` و`pwd` درس مجاني في Linux Command Line Mastery على CoddyKit. هذا هو الدرس 2 من أصل 4. يمكنك قراءة الدرس كاملاً أدناه مجاناً — ثم تمرن عليه مباشرة في المتصفح باستخدام محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7. هذا الدرس جزء من مسار التعلم في Linux Command Line Mastery، وتقدمك يتزامن عبر الويب وتطبيق CoddyKit. تتضمن دورة Linux Command Line Mastery 4 دروس في المجموع.
بعض أجزاء هذا الدرس لم تُترجم بعد وتظهر باللغة الإنجليزية.
Navigating Your Linux System
The Linux file system is a tree rooted at /. This lesson covers the commands to move around it and see what’s inside each directory.
Where Am I? The `pwd` Command
Lost your place? pwd (print working directory) shows the full path of where you are right now — your “you are here” sign.
See Your Current Path with `pwd`
Run pwd to see your current directory — likely something like /home/user.
pwdWhat's Here? The `ls` Command
ls (list) shows the files and folders in your current directory — or any directory you point it at.
Listing Directory Contents with `ls`
Let’s make a folder and a file, then run ls to watch them show up.
mkdir my_documents
touch notes.txt
lsMoving Around: The `cd` Command
cd (change directory) moves you around the file system. Give it an absolute path (from /) or a relative one (from where you are).
Changing with Absolute Paths
An absolute path starts at the root /, so it always points to the same place no matter where you currently are.
mkdir -p /tmp/my_project/src
cd /tmp/my_project/src
pwdChanging with Relative Paths
A relative path starts from your current spot — shorter and handy. Use . for here and .. for the parent directory.
mkdir -p project/images
cd project
pwd
cd images
pwd
cd ..
pwdUseful `ls` Options: `-l` and `-a`
Two essential ls flags: -l for a long listing (permissions, size, date) and -a to reveal hidden dotfiles.
touch .config_file
touch public_file
ls -a
ls -lTest Your Navigation Skills
Consider the following sequence of commands executed in a terminal:
mkdir my_app
cd my_app
mkdir assets
touch assets/image.png
cd ..
lsRecap: Navigate Like a Pro!
Navigation locked in! pwd shows where you are, ls lists contents, and cd moves you around with absolute or relative paths.
الأسئلة الشائعة
هل درس «التنقّل الأساسي: `cd` و`ls` و`pwd`» مجاني؟
نعم — نص درس «التنقّل الأساسي: `cd` و`ls` و`pwd`» كامل متاح مجاناً هنا على الويب. لتمرينه بشكل تفاعلي (محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7) وفتح باقي دورة Linux Command Line Mastery، انتقل إلى CoddyKit PRO. تتضمن دورة Linux Command Line Mastery 4 دروس في المجموع.
ماذا ستتعلم في «التنقّل الأساسي: `cd` و`ls` و`pwd`»؟
تعلّم التنقّل داخل نظام الملفات، وسرد محتويات الأدلة، وتحديد موقعك الحالي. تتمرن على Linux Command Line Mastery مع أكواد عملية تشغلها مباشرة في المتصفح، ومدرس ذكاء اصطناعي متاح 24/7 يجيب على أسئلتك أثناء عملك.
هل أحتاج إلى خبرة سابقة لأبدأ Linux Command Line Mastery؟
لا تُشترط خبرة سابقة. Linux Command Line Mastery على CoddyKit منظم للمبتدئين حتى المتقدمين، لذا يمكنك البدء من هنا أو من البداية والتقدم بسرعتك الخاصة. هذا هو الدرس 2 من أصل 4.
كم من الوقت يستغرق درس «التنقّل الأساسي: `cd` و`ls` و`pwd`»؟
معظم دروس CoddyKit تستغرق حوالي 5–10 دقائق. كل منها موجز وتفاعلي، لذا تحرز تقدماً مستمراً وتستأنف من حيث توقفت عبر الويب والتطبيق.
هل يمكنني كتابة وتشغيل أكواد في درس Linux Command Line Mastery هذا؟
نعم. كل درس في Linux Command Line Mastery يتضمن محرر أكواد مدمج، لذا تكتب وتشغل أكواداً حقيقية مباشرة في متصفحك وتحصل على تعليقات فورية من الذكاء الاصطناعي — بدون إعداد محلي.
جميع الدروس في هذه الدورة
- مقدمة إلى Linux Shell
- التنقّل الأساسي: `cd` و`ls` و`pwd`
- إدارة الملفات والأدلة: `mkdir` و`rm` و`cp` و`mv`
- الحصول على المساعدة: man و--help وtldr