Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Creating a directory or folder in linux

You create folders using the mkdir command:



$ mkdir fruits



You can create multiple folders with one command:



$ mkdir dogs cars


You can also create multiple nested folders by adding the -p option:



$ mkdir -p fruits/apples


Options in UNIX commands commonly take this form. You add them right
after the command name, and they change how the command behaves. You
can often combine multiple options, too.
You can find which options a command supports by typing man <commandname>.
Try now with 'man mkdir' for example



$ man mkdir



(press the 'q' key to esc the 'man page').
Man pages are the amazing built-in help for UNIX.
Source by linuxize.com #
 
PREVIOUS NEXT
Tagged: #Creating #directory #folder #linux
ADD COMMENT
Topic
Name
3+6 =