About 2,510,000 results
Open links in new tab
  1. directory - What are ./ and ../ directories? - Unix & Linux Stack Exchange

    Every directory on a Unix system (and probably every other system too) contains at least two directory entries. These are . (current directory) and .. (parent directory). In the case of the root directory, …

  2. What is the difference between a directory and a folder?

    Jul 16, 2021 · Check "The folder metaphor" section at Wikipedia. It states: There is a difference between a directory, which is a file system concept, and the graphical user interface metaphor that is used to …

  3. windows - What are "." and ".." in a directory? - Super User

    Based on the question: How to make using command prompt less painful, what are the . and .. entries in the most voted answer? I see it when I do a dir command but it isn't visible to the user in th...

  4. How do I remove a directory and all its contents?

    Sep 25, 2025 · In bash all I know is that rmdir directoryname will remove the directory but only if it's empty. Is there a way to force remove subdirectories?

  5. How do I check if a directory exists in Python? - Stack Overflow

    A word of warning - the highest rated answer might be susceptible to race conditions. You might want to perform os.stat instead, to see if the directory both exists and is a directory at the same moment.

  6. I cannot add the parent directory to *safe.directory* in Git

    Apr 13, 2022 · │ │ ├─ anthony/ In this case, the user tommy owns his own directory under /home, but (for some reason) rents out space to other users, in this case mary and anthony. If mary, by mistake, …

  7. How to remove all the files in a directory? - Unix & Linux Stack Exchange

    I am trying to remove all files and subdirectories in a directory. I used rm -r to remove all files, but I want to remove all files and subdirectories, excluding the top directory itself. For exam...

  8. How do I get the total size of everything in a directory in one line ...

    Oct 29, 2015 · Thanks! Remarks: On macOS 11 Big Sur the option needed for du is -d (as in "depth"). du -d 0 only gives you the size of your current directory (".") without listing the directories in it. du -d 1 …

  9. How to go to the previous working directory in terminal?

    In terminal, how can I define a key to go to the previous directory which I was in when changing directory with the cd command? For example, I'm in /opt/soft/bin and I cd into /etc/squid3 and I want to get …

  10. Download using wget to a different directory than current directory

    The directory prefix is the directory where all other files and subdirectories will be saved to, i.e. the top of the retrieval tree. The default is ‘.’ (the current directory).