Create the initial state of the dir command.