← DirectoryChallenge.com

Tech · Facts & stats

Directory 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.

Play today's round

The basics

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 /.

In Unix-like file paths, which character separates directory names?

Answer/ (forward slash)

Unix-like paths look like /home/user/notes, with forward slashes between directory names.

Going deeper

In a file path, what does '..' refer to?

AnswerThe parent directory

'..' means one level up, so 'cd ..' moves to the directory that contains the current one.

What does the Unix command 'pwd' stand for?

AnswerPrint working directory

pwd prints the full path of the directory you are working in.

Which Unix command creates a new directory?

Answermkdir

mkdir means 'make directory'; touch creates an empty file instead.

Expert level

On Unix-like systems, what usually happens to a file or directory whose name begins with a dot?

AnswerIt is hidden from default listings

Names starting with a dot, like .config, are hidden from plain ls and shown with ls -a.

What does the Unix command 'rmdir' do by default?

AnswerRemoves an empty directory

rmdir refuses to delete a directory that still contains files; removing contents needs a different command.

Know these cold?Today's round is five questions like these, 20 seconds each. Your streak and level follow you to every arena.Play today's round