What is the top-level directory of a hierarchical file system called?
AnswerThe root directory
The root directory contains every other directory; on Unix-like systems it is written as /.
Tech · Facts & stats
7 fact-checked facts about directories and file systems, each with the reason behind it. 5 more are in today's round and join this page after it closes.
AnswerThe root directory
The root directory contains every other directory; on Unix-like systems it is written as /.
Answer/ (forward slash)
Unix-like paths look like /home/user/notes, with forward slashes between directory names.
AnswerThe parent directory
'..' means one level up, so 'cd ..' moves to the directory that contains the current one.
AnswerPrint working directory
pwd prints the full path of the directory you are working in.
Answermkdir
mkdir means 'make directory'; touch creates an empty file instead.
AnswerIt is hidden from default listings
Names starting with a dot, like .config, are hidden from plain ls and shown with ls -a.
AnswerRemoves an empty directory
rmdir refuses to delete a directory that still contains files; removing contents needs a different command.