Paths and navigation
Absolute paths begin from / while relative paths begin from your current directory location.
Solaris · Files and Directories
Solaris · Lesson 6
Solaris filesystem structure and navigation. Permissions, ownership and ACL concepts. Copy, move and delete operations. Important system directories explained.
Almost everything in Solaris is represented as a file or directory. Understanding filesystem navigation and file operations is essential for every administrator.
In this lesson you will learn how to navigate directories, create files, organize project structures, copy data and safely remove files using standard Solaris commands.
These commands are heavily used while managing logs, configuration files, scripts, backups and application data.
Absolute paths begin from / while relative paths begin from your current directory location.
Directories organize files and applications into structured locations inside the filesystem.
Files may contain logs, scripts, binaries, configuration data or application information.
Commands like rm and rmdir are powerful administrative tools and should be used carefully.
The following examples demonstrate realistic Solaris filesystem administration workflows. Practice each command inside your lab VM.
Use pwd to print the current directory and ls to view files and folders.
Absolute paths begin from / while relative paths begin from the current directory.
mkdir creates directories while touch creates empty files or updates timestamps.
mkfile is commonly used for testing storage, creating swap files or simulating application data.
mkfile allocates real disk space immediately, so large files can consume storage quickly.
cp copies files and directories while mv moves or renames them.
rmdir removes directories only if they are completely empty.
Use rm for files, rm -r for directory trees and always verify paths carefully.
find helps administrators quickly locate files and directories inside large filesystems.
Files beginning with a dot (.) are hidden by default in Unix-like systems.
solaris-lab with subdirectories configs, logs andscripts.touch andmkfile.find and display hidden files using ls -a.rm, rm -rand rmdir while carefully verifying paths.In upcoming lessons, these filesystem skills will be used while managing configuration files, user home directories and Solaris services.