8

When I run

mkdir ~/.ipython/extensions/

I get

mkdir: cannot create directory ‘/home/droudy/.ipython/extensions/’: File exists

However when I navigate to /home/droudy, there is no .ipython folder or anything resembling that

muru
  • 197,895
  • 55
  • 485
  • 740
Mike. E
  • 91

1 Answers1

15

By default, file management tools, such as ls, dir, or even the graphical file manager, don't show hidden files or directories (those where the name begins with a dot, e.g. .ipython). This is why mkdir is telling you that it already exists, even though you cannot see it by using ls or the file manager.

To see hidden files, you can use ls -a (From the ls manpage : "-a, --all do not ignore entries starting with ."), or, in the graphical file manager (nautilus), press Ctrl + H to show hidden files and directories.

Jonas Czech
  • 4,017