What Is the Command Line?
Set Up a Place to Practice Safely
The command names and the path spelling do not transfer, and that is the one thing the next chapter has to handle for you.
The lessons follow your computer
Where a command differs between systems, the next chapter highlights the version that matches your computer: PowerShell on Windows, and a
Your highlighted commands will use PowerShell, the Windows route taught in this course.
Your highlighted commands will use the Unix-style syntax shared by the Bash and zsh examples in this course.
Your highlighted commands will use the Bash route taught in this course.
You may still compare the other branches. The spelling changes; the operation and the evidence you check do not.
Two people follow the same lesson, one on Windows and one on a Mac, and their commands do not look alike. What is actually different?
Two places to practice
The next chapter puts a /workspace. That is where the graded exercises happen, and nothing there can hurt files on your own computer. The hosted Windows route runs real PowerShell over the hosted /workspace tree; PowerShell on your own Windows machine uses ordinary Windows paths instead.
Prepare a disposable location on your own computer
A few steps ask you to work on your own machine rather than in the browser. Use the computer-fundamentals-practice directory you made in the previous chapter. If it is gone, rebuild it with your file manager:
computer-fundamentals-practice/
├── README.txt
├── archive/
├── data/
└── notes/
Open README.txt and check it says Practice workspace. That one line is how you tell this directory apart from an empty one with the same name somewhere else.
Do not practice in a drive root, a filesystem root, a system directory, a code repository, or anywhere holding work you care about. Do not use administrator or sudo access for any of it. If this is a managed computer and you cannot create the directory, use somewhere your administrator has approved.
Preview, verify, recover
Every exercise in the next chapter follows the same five steps:
Orient. Confirm the working directory before acting.
Preview. List the target and read the command before it changes anything.
Change one thing. Inside the disposable directory.
Verify. List or read the result immediately.
Recover. If it went wrong, stop and use the lesson’s recovery route or rebuild the tree.
Safety in this course comes from working on disposable files with a known starting shape. The lesson that introduces removal will give that operation its own boundaries before you use it.
You copied a command from a forum. It contains an option you do not recognize and appears to remove files. What is the safest next action?
You have a harmless place to work and a routine that governs every change you are about to make. Next, open a terminal and ask it one question that changes nothing.