What does the `.` and `..` mean, and what is an absolute vs relative path?
BeginnerConceptFilesystem Hierarchy, Inodes & Links
Answer
. is the current directory and .. the parent; both are real hard links in every directory. An absolute path starts at / (/etc/nginx/nginx.conf); a relative path is resolved from the current working directory (../logs/app.log). In scripts and cron jobs always use absolute paths, because the working directory is not what you expect.
More on Filesystem Hierarchy, Inodes & Links
Explain the purpose of the main top-level directories in the FHS.BeginnerWhat is the "/usr merge"?IntermediateWhat are /proc and /sys?BeginnerWhat is an inode? What does it store and what does it NOT store?BeginnerA disk shows free space but you get "No space left on device". Why?IntermediateWhat is a hard link?Beginner