This should probably be encapsulated in a method setCurrentDirectory() (you set the cwd and update the display above in the constructor, so both places should just call setCurrentDirectory()).

This method could be called cdCommand() to be consistent with catCommand() (and listDirectory() could be lsCommand() below).