Path tokens
/root of the tree.here,..up one~home,cd -previous directory
Study guide · Flashcards & memory notes
40 recall cards for the facts everyday Linux work depends on: paths, pipes, permission math, sudo versus su, package managers, systemd, and disk checks. Study one card at a time or browse every answer below.
How to use these cards: Say the answer out loud before you flip the card, and mark it honestly. Revisit the cards you missed tomorrow rather than rereading them right away. Progress is kept only while this page is open. For the full explanations behind each card, see the core notes.
Choose a deck, flip each card, and mark what you already know.
You marked every card in this deck as known. Shuffle and run through it again, or choose another deck.
Select a question to reveal its answer.
Where you are, how PATH works, and which directory a token means.
pwd. ls lists files, and cd changes directory.
Memory note: Print Working Directory.
The current user's home directory, such as /home/ada.
Memory note: Root's home is /root, not under /home.
. is the current directory. .. is the parent of the current directory.
A colon-separated list of directories the shell searches for commands.
Memory note: Check it with echo $PATH.
The current directory is usually not on PATH, so the shell will not find a local script by name alone.
man ls
It changes to the current user's home directory.
It returns to the previous working directory.
System configuration files, such as passwd, fstab, hosts, and service settings.
which prints the first executable on PATH. type also reports whether the name is a builtin, alias, or function.
Copy, search, page through logs, and connect commands.
-r (recursive). Without it, cp refuses to copy a directory.
mv moves or renames a path. cp copies and leaves the original in place.
It inverts the match and prints lines that do not contain the pattern.
> writes standard output to a file and replaces the file if it exists. >> appends.
It sends the standard output of the left command to the standard input of the right command.
Memory note: A pipe does not change the original file unless a later command writes back to it.
less. cat prints the whole file; head and tail show only the ends.
It walks /var and lists files whose names match *.log. Quote the pattern so the shell does not expand it first.
ln creates a hard link. ln -s creates a symbolic link that points at another path.
tar -czf archive.tar.gz dir/
Memory note: Extract with tar -xzf archive.tar.gz.
It follows a file and prints new lines as they are written, which is useful for live logs.
Mode bits, privilege, account files, and signals.
Read = 4, write = 2, execute = 1. Add them for owner, group, and others.
chmod. In 755:
Memory note: This wording matches the CompTIA A+ Linux permission card so the two topics stay consistent.
644 (rw-r--r--).
sudo runs a single command with root privileges, using your own password and the permissions in the sudoers file. su switches to another user account, root by default, and requires that account's password.
/etc/shadow. Only root can read it.
/etc/passwd. It is world-readable and does not store password hashes.
It sets the owner to ada and the group to staff. You usually need sudo.
kill sends SIGTERM (15) and asks the process to exit. kill -9 sends SIGKILL, which cannot be caught. Try SIGTERM first.
top. ps aux is a one-time snapshot.
You can enter the directory with cd and traverse it. Without execute, you cannot use that path even if you can read the listing.
Install software, start services, test the network, and find space problems.
apt update refreshes the package index. apt upgrade installs newer versions of packages already on the system.
dnf. Debian and Ubuntu use apt.
It configures the service to start automatically at boot. start runs it now; enable is about the next boot.
journalctl -u name
ip replaces ifconfig. ss replaces netstat. ifconfig and netstat are Extra legacy tools.
df -h shows free space per mounted file system. du -sh shows the disk usage of one path.
Only when the file system is unmounted, or from rescue media. Running fsck on a mounted file system can cause damage.
It lists file systems that should be mounted at boot.
Listening TCP and UDP sockets and the processes that own them.
The program is not installed, or its directory is not on PATH. It is not the same as permission denied.
Groupings and patterns that make the most-used facts easier to recall.
/ root of the tree. here, .. up one~ home, cd - previous directoryRead = 4, Write = 2, Execute = 1. Add them for owner, group, and others.
755: rwx r-x r-x (typical for programs and directories)644: rw- r-- r-- (typical for regular files)700: rwx --- --- (private to the owner)sudo = one command, your password, sudoers. su = switch user, their password. Prefer sudo on desktops where the root password is not set.
passwd accounts · shadow hasheshosts local names · resolv.conf DNSfstab mounts at boot> replace · >> append · 2> errors| to another command · && only if successcommand not found → PATH or missing package. Permission denied → mode or owner. No space left → df -h and df -i.
Test what you have learned with a timed practice exam.
Scope, domains, command map, file-system layout, and a study plan for everyday Linux CLI.
Technical reference notes for the shell, files, permissions, packages, services, and networking.
40 recall cards in four decks, plus memory notes for commands and paths.
200 original questions with custom exams, explanations, and a score report by domain.
Useful companions while you study.
Generate strong random passwords with custom length, characters, symbols, and security options.
Encode text and files to Base64 or decode Base64 data with UTF-8 support.
Convert structured data between JSON and YAML with formatting and validation.
Compare two text blocks and highlight added, removed, and changed content.
NodnWebTools provides general informational, educational, and convenience resources. Calculations, conversions, estimates, and learning materials may contain errors or become outdated. Financial, tax, medical, legal, and travel information is not professional advice. Verify important results and current requirements with qualified professionals or authoritative sources. Protect sensitive files and personal information, review each tool’s privacy limitations, and use only content you are authorized to process. You are responsible for how you use and share results. Study resources are independent and do not guarantee exam success or imply certification-provider endorsement. Linux is a registered trademark of Linus Torvalds. NodnWebTools is not affiliated with, endorsed by, or sponsored by Linus Torvalds or the Linux Foundation.