folder not shown when being created by command line

9,724

The graphical desktop view (I assume you mean nautilus, the file viewer) does not always refresh immediately. Press F5 to refresh manually.

You may also want to experiment with the fs.inotify.max_user_watches settings as explained in this question. The default is 8192, you can easily raise that to 1000000.

inotify is the mechanism that is triggered whenever something in the file system changes, as happens when you create a folder.

Share:
9,724

Related videos on Youtube

chariko
Author by

chariko

Updated on September 18, 2022

Comments

  • chariko
    chariko over 1 year

    I have an issue when I am creating a folder by command line. I create it by typing:

    mkdir TEST
    

    and it does not appear on the graphical desktop view. But if I type the command "ls" in the Terminal I can see it.

    Also if I create another folder from the graphical view it appears.

    And once the folder is created by command line if I try to create it again by graphical view it tells me that this folder already exists.

    Also typing CTR + H it does not appear.

    If I create the same folder in another location by command line as before, it appears so I do not know what's going on...

    Both locations have the same file permissions.

    Any clues? Thanks in advance

    • Jos
      Jos almost 8 years
      The graphical desktop view (I assume you mean nautilus, the file viewer) does not always refresh immediately. Press F5 to refresh manually. Does that make a difference?
    • chariko
      chariko almost 8 years
      After pushing F5 several times it finally appeared!!! Thanks a lot for your answer
    • Parto
      Parto almost 8 years
      @jos Kindly write that as an answer.
  • chariko
    chariko almost 8 years
    I created the folder in another hard disk having root privileges. Anyway after pressing F5 several times it appeared :)
  • Cory C
    Cory C almost 8 years
    Looks like you're sorted then :)
  • Zanna
    Zanna almost 8 years
    This was already explained by others