About 51 results
Open links in new tab
  1. linux - How to create a directory and give permission in single …

    Apr 26, 2011 · How to create a directory and give permission in single command in Linux? I have to create lots of folder with full permission 777. Commands mkdir path/foldername chmod 777 …

  2. linux - mkdir: cannot create directory ‘LINUX ... - Stack Overflow

    The fact that /home is an absolute, literal path that has no user-specific component provides a clue. While /home happens to be the parent directory of all user-specific home directories on Linux-based …

  3. linux - Unix - create path of folders and file - Stack Overflow

    Feb 26, 2012 · If it's essential that the creation of the file and its directory be atomic, you would have to write a file system that offers this operation. It's not possible with the standard Linux file systems.

  4. One command to create a directory and file inside it linux command

    Aug 1, 2013 · Suppose my current directory is A. I want to create a directory B and a file "myfile.txt" inside B. How to do that in one command from Terminal? Edit: Directory can be nested multiple …

  5. linux - How to have the cp command create any necessary folders for ...

    For those looking to automate, the cp --parents and rarchive answers may likely be better. This is because the mkdir -p part of this answer takes just a directory, requiring you to script an extra step to …

  6. linux - Is there a way to make mv create the directory to be moved to ...

    Make the directory with mkdir -p including a temporary directory that is shares the destination file name, then remove that file name directory with a simple rmdir, then move your file to its new destination.

  7. How to create a link to a directory on linux - Stack Overflow

    How to create a link to an existing file or directory using a GNU Linux shell command?

  8. linux - Creating a new directory in C - Stack Overflow

    May 20, 2014 · To create a new directory in C, you can use the mkdir function defined in <sys/stat.h>. This function requires two arguments: the path of the new directory and the permissions for it.

  9. How do I create a copy of a directory in Unix/Linux?

    I want to recursively create a copy of a directory and all its contents (e.g. files and subdirectories).

  10. Not able to create a new folder in side etc in linux

    May 12, 2021 · I have been trying to create a folder in /etc in ubuntu 20.10 but it is showing mkdir: cannot create directory ‘wiki’: Permission denied the above error message ...