It is relative to the root directory ( /). What is an absolute path? An absolute path is the full path to a file or directory. This command comes to your rescue when you get lost in the filesystem, and always prints out the absolute path. The pwd command prints the current/working directory, telling where you are currently located in the filesystem. This navigation command overview will help you to better understand how all of this works. I believe that the best way to understand any concept is by putting it into practice. The tilde ( ~) represents the home directory of the currently logged in user.(Every directory/file in the Linux filesystem is nested under the root / directory.) The forward slash ( /) represents the 'root' of the filesystem.) represents one level above the current directory. ) represents the current directory in the filesystem. ), forward slash ( /), and tilde ( ~), all have special functionality in the Linux filesystem: How well do you know Linux? Take a quiz and get a badgeīefore we get into commands, let’s talk about important special characters.Linux system administration skills assessment.
A guide to installing applications on Linux.Download RHEL 9 at no charge through the Red Hat Developer program.