Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

create a directory

$ mkdir mydir

$ file mydir
mydir: directory

$ ls -l
drwxrwxr-x. 2 localuser localuser  6 Jun  9 14:47 mydir

$ cd mydir/

$ pwd
/home/localuser/mydir

$ ls -l
total 0
Comment

linux create directory

mkdir ./folderName
Comment

linux create directory

$sudo mkdir -m777 newFileName

777 is the permissions given to the file
For more info:( https://www.pluralsight.com/blog/it-ops/linux-file-permissions )
Comment

Create A Directory

mkdir newdirectory
Comment

To Create directory

C:>sqlplus / as sysdba
SQL*Plus: Release 11.2.0.3.0 Production on Wed Apr 3 15:07:01 2013
Copyright (c) 1982, 2011, Oracle.  All rights reserved.

Connected to:
Oracle Database 11g Release 11.2.0.3.0 - Production

SQL> create or replace directory MYCSV as 'e:mycsv';
Directory created.

SQL> grant read, write on directory MYCSV to scott;
Grant succeeded.
Comment

creating a directory

# Python program to explain os.mkdir() method 
  
# importing os module 
import os 
  
# Directory 
directory = "GeeksforGeeks"
  
# Parent Directory path 
parent_dir = "D:/Pycharm projects/"
  
# Path 
path = os.path.join(parent_dir, directory) 
  
# Create the directory 
# 'GeeksForGeeks' in 
# '/home / User / Documents' 
os.mkdir(path) 
print("Directory '% s' created" % directory) 
  
# Directory 
directory = "Geeks"
  
# Parent Directory path 
parent_dir = "D:/Pycharm projects"
  
# mode 
mode = 0o666
  
# Path 
path = os.path.join(parent_dir, directory) 
  
# Create the directory 
# 'GeeksForGeeks' in 
# '/home / User / Documents' 
# with mode 0o666 
os.mkdir(path, mode) 
print("Directory '% s' created" % directory)
Comment

creating a directories

# Python program to explain os.makedirs() method 
      
# importing os module 
import os 
      
# Leaf directory 
directory = "Nikhil"
      
# Parent Directories 
parent_dir = "D:/Pycharm projects/GeeksForGeeks/Authors"
      
# Path 
path = os.path.join(parent_dir, directory) 
      
# Create the directory 
# 'Nikhil' 
os.makedirs(path) 
print("Directory '% s' created" % directory) 
      
# Directory 'GeeksForGeeks' and 'Authors' will 
# be created too 
# if it does not exists 
      
      
      
# Leaf directory 
directory = "c"
      
# Parent Directories 
parent_dir = "D:/Pycharm projects/GeeksforGeeks/a/b"
      
# mode 
mode = 0o666
      
path = os.path.join(parent_dir, directory) 
      
# Create the directory 'c' 
      
os.makedirs(path, mode) 
print("Directory '% s' created" % directory) 
      
      
# 'GeeksForGeeks', 'a', and 'b' 
# will also be created if 
# it does not exists 
      
# If any of the intermediate level 
# directory is missing 
# os.makedirs() method will 
# create them 
      
# os.makedirs() method can be 
# used to create a directory tree
Comment

PREVIOUS NEXT
Code Example
Shell :: ffmpeg change audio codec from m4a to mp3 
Shell :: what is echo in a batch file 
Shell :: kubectl logs with grep 
Shell :: create a batch file from batch file 
Shell :: install nginx on ec2 
Shell :: install moment.js 
Shell :: install docker 
Shell :: append newline to file 
Shell :: expose deployment k8 
Shell :: install magento 2 docker 
Shell :: github start 
Shell :: install bottom navigation in native 
Shell :: folder open in command line 
Shell :: vim get color name at cursor 
Shell :: how to push your code to github 
Shell :: drupal update config install 
Shell :: how to create a text file list of the contents of a folder and subfolders 
Shell :: yum install redis cli 
Shell :: npm install different version 
Shell :: check intellij version 
Shell :: delete a word in Linux command line prompt 
Shell :: git not recognized 
Shell :: filter jq 
Shell :: cmd change start in 
Shell :: connect to wifi with wpa supplicant raspberry pi 
Shell :: play vlc as root kali 
Shell :: unable to open image permission denied 
Shell :: GPG error: https://packages.sury.org/php buster InRelease: 
Shell :: how to install lame linux 
Shell :: terminal list files extension in subfolders 
ADD CONTENT
Topic
Content
Source link
Name
5+4 =