2. Filesystem Management#
This chapter moves from basic terminal use into deliberate filesystem work: path navigation, file operations, links, hidden configuration files, and project organization.
Paths: Use absolute and relative locations to move through the directory tree.
File operations: Create, copy, move, rename, remove, and inspect files carefully.
Links: Use hard links and symbolic links to represent relationships between files.
Dotfiles: Recognize hidden configuration files that shape shell behavior.
Project structure: Organize folders so scripts, data, documentation, and outputs stay findable.
Chapter Video
How to Navigate the Terminal with Bash (6:07) by Microsoft Developer
Hosted on YouTube; property of its original creator, embedded here for educational reference only.
Learning Objectives
By the end of this chapter, you will be able to:
Resolve absolute and relative paths in a supplied directory tree.
Create, move, copy, rename, and remove files safely.
Explain file types, attributes, hard links, and symbolic links.
Inspect hidden files as data and edit an independent configuration copy.
Organize a working tree and find files within an explicit search root.
Chapter Flow
Glossary
# |
Term |
Explanation |
|---|---|---|
1 |
Absolute path |
A path that starts at the root directory and names a location completely. |
2 |
Relative path |
A path interpreted from the current working directory. |
3 |
Working directory |
The directory a shell uses as the starting point for relative paths. |
4 |
Directory tree |
The hierarchical structure of directories and files below the root. |
5 |
Glob pattern |
A filename pattern, such as |
6 |
Wildcard |
A pattern character such as |
7 |
Recursive operation |
An operation that descends into subdirectories and applies to their contents. |
8 |
File type |
The category of filesystem object, such as regular file, directory, or link. |
9 |
File attribute |
Metadata about a file, such as permissions, owner, size, or timestamp. |
10 |
Hard link |
A directory entry that points to the same inode as another filename. |
11 |
Symbolic link |
A special file that stores a path to another file or directory. |
12 |
Hidden file |
A Unix-style file whose name begins with a dot. |
13 |
Dotfile |
A hidden configuration file, commonly stored in a user’s home directory. |
14 |
|
A Bash startup file commonly used for interactive shell configuration. |
15 |
Independent copy |
A separate file whose ordinary content edits do not change its source. |
16 |
Project root |
The top-level folder that contains a project’s files and subfolders. |
17 |
Filesystem organization |
The practice of arranging files and directories for clarity and maintenance. |