Mkdir can create directories and assign them permissions at the same time, using the -m or -mode option. mkdir Set Directory Permissions (-m mode) The syntax for brace expansion of either a sequence specification or a comma separated list of items inside curly braces Īs you can see, there’s quite a bit of variation, and using mkdir with brace expansion might save you some time in some scenarios. If the directory already exists, it returns an error: mkdir mydir_1īasically, brace expansion allows you to generate multiple command-line arguments, from a simple argument that you’d write with the appropriate syntax for brace expansion. Mkdir creates the directory if the directory does not already exist. Mkdir can create multiple directories from a single command, and it will create the directories in the order which the directory names are provided: mkdir mydir_1 mydir_2 mydir_3 Mkdir Command Syntax mkdir Ī basic example of creating a folder, without any options, with mkdir is: mkdir mydir
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |