Linux Fundamentals & the Command Line
Know your environment. Prove your commands.
Linux is everywhere—from application servers and network appliances to cloud workloads. Learn how to navigate, inspect and reason about a Linux system before changing it. Then put those skills to work in an interactive Northstar terminal.
Start reading Phase 01 right here. Each following phase has its own written lesson and interactive investigation—no second introduction or separate start page.
Know your environment. Prove your commands.
Least privilege starts at the file level.
When a service fails, read before restarting.
Prove the path and the mount.
Make the change. Verify the service.
Progress is optional and stays in this browser. You can open any phase at any time.
Our starting point is an analyst with a normal user account on a fictional Northstar application server. There is an application warning in the logs. You'll learn the essential commands, read the evidence, save your observations and stop short of an unauthorized system change.
Linux technically refers to the kernel—the part of the operating system that coordinates hardware, processes, memory and filesystems. A distribution, such as Ubuntu Server, Debian or Rocky Linux, assembles the kernel with utilities, a package manager, services and defaults. Different distributions may manage software and security policy differently, but many command-line tools are shared.
Schedules processes, manages memory and provides interfaces to devices and filesystems.
Packages, updates, default configurations and utilities determine the administrative environment.
Bash is common, but not universal. Shell syntax such as pipes and redirection connects tools.
A terminal application displays the shell's input and output; it is not the operating system itself.
When someone says, “The Linux server is down,” identify what actually failed. An SSH login issue, a failed systemd service, an unreachable application and a full filesystem may present similarly to users but demand different evidence.
You should practice the commands in a real Linux environment from the beginning. Our simulator gives immediate, repeatable training feedback, but it cannot reproduce a full kernel, package manager or actual access controls. Choose one of these practical approaches.
Open an elevated PowerShell window on a supported Windows version, then run the Microsoft-provided installation command. Restart if prompted, launch Ubuntu, and create your Linux user.
wsl --installpwdls -lawhoamiInstall a supported Ubuntu Server or other Linux distribution in a VM. Practice with a non-root user, take a VM snapshot before major experiments, and keep the VM on a controlled network.
pwdls /etcman lsVM snapshots are a rollback convenience, not a substitute for tested backups.
Ubuntu Server documentation ↗Try each example once in the JoeLearns simulator, then repeat it in your Linux system using paths that actually exist there. Northstar-specific directories are fictional; never assume /etc/northstar is present in your installation. Some changes to real machines can be destructive, so use a dedicated training VM and avoid privileged commands until you understand them.
/.Linux filesystems are organized beneath one directory tree. A path beginning with / is absolute, independent of where you're currently working. A path without that leading slash is relative to the current directory. The symbol ~ normally expands to the current user's home directory in common shells such as Bash.
/The top of the filesystem tree. It is not the root user's home.
/homePersonal files for ordinary local accounts, such as /home/analyst.
/etcService and system configuration; generally do not modify without understanding its owner and impact.
/var/logVariable data used to troubleshoot service failures; access may require permissions.
/srvData served by some system services, when a distribution or administrator uses this layout.
/usrShared programs, libraries and related files; /bin may resolve into /usr/bin on modern distributions.
/tmpShort-lived scratch space; retention and cleanup policies vary.
/procA virtual view of process and kernel state, not normal files on disk.
Not every distribution has precisely the same arrangement, and several top-level names may be symbolic links. Treat directory names as useful conventions rather than permission to edit everything beneath them. In particular, /root is the administrative account's home directory; / is the filesystem root.
Text-based logs are among the first resources a Linux administrator checks. Start with safe inspection: cat for short files, head or tail for a bounded view, grep to isolate matching lines, and wc -l to count lines.
cat /etc/hostnamePrint the contents of a small file. Use head or tail for large logs.
grep -n ERROR /var/log/northstar/app.logFind matching log lines and display line numbers.
grep ERROR /var/log/northstar/app.log | wc -lSend matching lines to a line counter. Pipes connect standard output to standard input.
grep ERROR /var/log/northstar/app.log > ~/workspace/findings.txtWrite evidence into a file you own. The single > replaces existing contents.
A pipe (|) connects one command's standard output to another command's standard input. For example, grep ERROR app.log | wc -l counts matching lines rather than showing them. The single > redirects output to a file and overwrites it; >> appends to an existing file. Commands can also write errors to a separate stream, standard error, which is not automatically included in every pipe.
“Two permission-denied errors were logged while opening a certificate file” is a useful observation. “The file permissions are definitely wrong, so run chmod 777” is an unsupported conclusion and a hazardous recommendation. Preserve output first; gather ownership, mode and service-account evidence before proposing any correction.
Common utilities include mkdir (create a directory), touch (create or update a file timestamp), cp (copy), mv (move or rename), and rm (remove). Those commands can alter important data in a real Linux environment. Work in a private training folder rather than experimenting in /etc, /srv or production logs.
mkdir ~/workspace/demoCreate a folder in your own workspace.
touch ~/workspace/demo/notes.txtCreate an empty note. A real touch also updates timestamps for existing files.
echo "initial finding" > ~/workspace/demo/notes.txtWrite a note; a single > replaces its contents.
cat ~/workspace/demo/notes.txtRead back what was written before continuing.
In the workbench below, file-changing commands are intentionally restricted to ~/workspace. It cannot modify the system configuration or the real computer you're using. In a real shell, permission bits and identity determine access, and unapproved use of sudo can create significant risk.
Administrators commonly connect over SSH to inspect Linux servers remotely. The real command ssh analyst@server.example attempts an encrypted session, but it is not inherently read-only. Confirm the hostname, environment and account before running commands. Prefer a standard account with approved least-privilege elevation for administrative changes.
Use man COMMAND or COMMAND --help in a real shell to review syntax and potentially destructive flags.
Confirm user, host, environment, current directory and expected state before editing files or restarting services.
Keep observations separate from fixes; use approved change procedures, backups and rollback plans where needed.
Linux is case-sensitive: App.log and app.log can refer to different files. Spaces and characters such as *, > and | may have special meaning to the shell; quote paths and patterns appropriately. Phase 02 will dive into accounts, modes, ownership, sudo and secure remote access.
The intranet service reported repeated start-up errors. You have an unprivileged analyst shell and a known service log path. Your assignment is to navigate, inspect its configuration, filter and count the errors, and save evidence into your own workspace. You are not authorized to change service configuration or file permissions.
Explore a realistic virtual filesystem, inspect an application log, and write an evidence note. The responses change based on the commands you enter.
Northstar Linux training shell · user: analyst · host: northstar-linux-01 This is a safe, browser-only simulation. No real device, file system or network is accessed. Type help to see available commands, or start with pwd.
Selecting a suggestion fills the command line. Press Run to execute it in the simulated filesystem.
pwd · ls · ls -la · cd · find
cat · head · tail · grep · wc · | · < none
echo · > · >> · mkdir · touch · cp · mv · rm
whoami · id · hostname · uname · man · help · clear
Commands are implemented only for this exercise. Quoting, paths, one pipe and output redirection have limited support; this is not a complete shell. Changes are restricted to your ~/workspace and disappear when the page resets. Do not paste secrets.
This exercise is about working accurately with Linux commands. You are not expected to repair an application or change system security in Phase 01.
A responsible first investigation ends with an evidence-backed summary and a clear next action. You should be able to reproduce the command sequence in your own Linux environment with real file paths, and explain why a successful command is not automatically proof that the original application problem is resolved.
Check your user and working directory, then identify absolute paths to relevant evidence.
Read configuration and logs without changing the system; identify commands that isolate the needed facts.
Save relevant output in a writable location and keep reported errors separate from hypotheses.
State the failing operation and the next checks; do not make an unapproved security change.
The certificate-read error is a natural next investigation. In Phase 02 we'll examine file mode bits, ownership, service identities, sudo, access control and SSH keys before deciding what permission change—if any—is justified.
Continue to Phase 02 — Users, Permissions & Security →Read the lesson before starting the Northstar terminal. Then reinforce the commands in your own Linux installation. These exercises are designed to work together.