No account needed · Learn something today

Files and directories

Linux fundamentals · Free lesson 2 of 3 · Foundation level · Video 0:32 + practice

Your learning plan

Watch the narrated lesson or read the teaching notes, try the worked example, then answer three practice questions. Video: 0:32. Allow about 5–10 additional minutes for the sample activity and quiz, or longer when needed.

Watch · See · Practise

Watch this lesson’s visual explainer

32-second silent teaching clip with on-screen text and English captions. Tap Play; pause to read. Full teaching notes follow the visual guide.

Open this lesson video directly

See the steps: Files and directories

Create a practice directory with mkdir me-lab. Then: Change into it with cd me-lab and verify with pwd. Then: Create notes.txt using a text editor, copy it to notes-copy.txt and list both files.
Illustrated guided steps for this lesson. Read each step, predict the result, then try the written activity.
Read the video transcript

Understand the idea

Use pwd to locate yourself, ls to list files and cd to change directories. Understand a command before running it.

Worked example

A practice sequence is: mkdir study, cd study, then pwd and ls. The folder is created, entered, located and listed.

Try it yourself

In a disposable lab, create a folder named practice and confirm that you are inside it.

Open the illustrated guide

This visual recap supports the full lesson. It is not an instructor recording.

Understand the idea

Use pwd to locate yourself, ls to list files and cd to change directories. Understand a command before running it.

Worked example

A practice sequence is: mkdir study, cd study, then pwd and ls. The folder is created, entered, located and listed.

Now check what you learned: Answer three practice questions below. Choose an answer, then press Next Question. The last question shows your score.

Check your understanding

Sample lesson 2 of 3 · 3 practice questions

Pass each sample lesson’s quiz to build your practice progress.

Answer all 3 questions, then check your score below. This is a practice check, not the full course or an official certification exam.

Question 1 of 3: Which command searches text for matching lines?

Question 1 of 3

Optional video learning

Learn with video

Introduction to Linux · video course

Source: freeCodeCamp · Supplementary video

Watch for: Look for an example related to “Files and directories”. Pause and explain how it connects to this lesson.

For a long course, choose the relevant chapter; you do not need to watch the entire video before continuing. This is a supporting program video and may cover only selected topics; it is not a separate recording of every lesson. Videos are optional; use the written lesson and exercises too.

Watch on the source website ↗

If playback is unavailable, use the source link. Look for captions or a transcript on the provider’s page.

Optional extra practice · write your answer

Your turn

In a disposable lab, create a folder named practice and confirm that you are inside it.

Compare your answer

Run mkdir practice, then cd practice and pwd. If a command fails, read the message rather than using administrator privileges automatically.

More learning options and student rewards

Your sample answer is not submitted. Passed sample quizzes are remembered only in this browser when storage is available; this does not complete the full course or approve a reward.