Objective. Students will navigate the Linux directory hierarchy and create, copy, move, rename, and delete files and directories using at least ten core commands with correct syntax and no data-loss errors.
This lesson, its worked examples and its practice questions has not yet been verified by an industry-certified professional or by a certification or approval body. It is a study draft and may contain errors. Do not use it as instructions for work on a job site or on live equipment. Always follow your instructor, your supervising professional, and current official references and regulations.
VoTechWorks program approval and accreditation are still in progress. Credentials are issued only by the certifying bodies named in each program, after their own exams.
Data center servers almost never have a graphical desktop. You manage them through a text-based interface called the command-line interface (CLI). Speed, precision, and the ability to automate tasks through scripts make the CLI the standard tool for data center technicians. CompTIA A+ Core 2 and CompTIA Server+ both test Linux command knowledge, and the CNet CDCTP program expects you to work confidently in a Linux terminal from day one.
Linux organizes all files in a single tree that starts at the root directory, written as `/`. Every drive, partition, and network share is attached (mounted) somewhere inside that tree. The Filesystem Hierarchy Standard (FHS) defines where specific types of files live:
| Directory | Purpose |
|-----------|--------|
| `/bin` | Essential user command binaries (ls, cp, mv) |
| `/etc` | System-wide configuration files |
| `/home` | Personal directories for regular users |
| `/var` | Variable data: logs, mail, print spools |
| `/tmp` | Temporary files; often cleared on reboot |
| `/proc` | Virtual filesystem exposing kernel and process info |
| `/usr` | Secondary hierarchy: programs, libraries, documentation |
Knowing FHS lets you find log files quickly (`/var/log`), locate configuration files (`/etc`), and avoid touching directories that the OS relies on.
Shows your current location in the filesystem tree. Always run `pwd` first when you open a new terminal session to confirm where you are.
`ls -l` gives a long listing with permissions, owner, size, and modification date. `ls -la` also shows hidden files (names beginning with `.`).
Move through the tree: `cd /var/log` goes to an absolute path; `cd ..` moves up one level; `cd ~` returns to your home directory.
`mkdir reports` creates a subdirectory in the current location. `mkdir -p archive/2024/q1` creates nested directories in one step.
`touch server_health.log` creates an empty file if it does not exist, or updates its timestamp if it does.
`cp file.txt backup/file.txt` copies a file. Use `cp -r sourcedir/ destdir/` to copy a directory and all its contents recursively.
`mv oldname.log newname.log` renames a file in place. `mv file.log /var/log/app/` moves it to another directory. There is no undo for `mv` at the CLI, so verify the destination before pressing Enter.
`rm file.log` deletes a file permanently. `rm -r directoryname/` removes a directory and all its contents. `rm -rf /` or any accidental recursive delete on a production path can destroy a live system — always double-check your path. Never run `rm -rf` as root unless you are absolutely certain of the target.
`find /var/log -name "*.log" -mtime -7` finds all `.log` files in `/var/log` modified in the last seven days. `find` is essential for locating misplaced files during troubleshooting.
`tree /etc` prints a visual hierarchy. If `tree` is not installed, `tree` can be added with the system package manager. Use it to quickly understand an unfamiliar directory layout.
An absolute path starts from root: `/home/student/logs/app.log`. A relative path starts from your current directory: `logs/app.log` (if you are already in `/home/student`). Mixing these up is the most common source of copy or move errors.
A professional technician records every command and its output. In this course you will use a lab log notebook for that purpose. Good documentation supports troubleshooting, compliance audits, and knowledge transfer to teammates — all expectations in a production data center.
Answer each question, then check it. Nothing is recorded; this is your own practice.
A free tech program — complimentary, as our commitment to get America working. Help us build VoTechWorks. Tell us what works, what doesn’t, and what you want to learn.