Welcome -
Guest!
Login
/
Register Now
|
Search:
Home
Articles
Forum
Interview FAQ
Activities
News
Videos
Poll
Links
People
Groups
Unix / Linux / Ubuntu Articles
Submit Article
Home
»
Articles
»
Unix / Linux / Ubuntu
»
Commands
RSS Feeds
Create a directory - mkdir
Posted By:
Logan Bouchard
Category:
Unix / Linux / Ubuntu
Views:
3726
This article explains about mkdir command with an example in unix.
mkdir command is used to create a directory in unix.
Syntax of mkdir Command
mkdir dirName
Example of mkdir Command
mkdir myFolder
mkdir /Users/xinuosx/Desktop/myFolder
Share:
Previous Post:
Removing files and directories - rm
Next Post:
Remove a directory - rmdir
Didn't find what you were looking for? Find more on
Create a directory - mkdir
Or get
search suggestion and latest updates
.
Logan Bouchard
author of Create a directory - mkdir is from Montreal,
Canada
.
View All Articles
Related Articles and Code:
Program to display bill receipt based on customer information and create telephone directory
Script to make File and Directory Management Operations menu based : Display Current directory, List Directory, Make Directory, Change Directory etc
How to create a directory and remove a directory?
Shell script that prints names of all sub-directories present in the current directory
Shell script to check whether inputted directory is in current directory or not
Shell script that prints names of all sub-directories present in the current directory
Program to create user defined fork function and create 2 child process, print their process ids
Shell script to check dir directory if it exists then change the path, if not then create dir with that name and also check for file name not exists
Is it possible to create and remover more than one directory together?
Write a shell script that takes a file names as a argument and deletes this file from every directory above the present working directory.
Unix Commands and description of ls,logout,mkdir,rmdir,rm,cd,man,talk,write,pico,pine,more,sz,rz,telnel,ftp,archie,irc,lynx,gopher,tin,trn,passwd etc
Perform directory operations like display current , list, Make, Change directory and file operations like Copy, Rename, Delete, Edit based on menu
Listing file and directories command - ls
Show current directory - pwd
Changing current directory - cd
Removing files and directories - rm
Remove a directory - rmdir
Copy file and directory subtrees - cp
Move or Rename file and directories - mv
Shell script to perform operations like display, list, make directory and copy, rename, delete, edit file
Other Interesting Articles in Unix / Linux / Ubuntu:
Write a script to enhance the calander to accept any month as mm or mmm or only year as yyyy or both month and year
System activity reporter - sar
Write a shell program to count the characters, count the lines and the words in a particular file
Write a shell program to display the alternate digits in a given 7 digit number starting from the first digit
Input mode command in unix
How would u display the hidden files?
Write a shell script to reverse a number supplied by a user.
Write a shell script that accepts a string from the terminal and echo suitable message if it doesn’t have at least ten characters
Display your current working directory
Write a shell script to display the digits which are in odd position in a given 5 digit number
Shell script for following conditions. Take two files as input and run spell command on it, Collect a list of potential spelling errors, modify file
Sort Numeric file
Write a script to find the value of one number raised to the power of another
Write a script to count and report the number of entries in each subdirectory mentioned in the path, which is supplied as a command-line argument
Write s shell script, which will receive any number of filenames as arguments. The shell script should check whether every argument is a file or a dir
Concatenate, copy, print files - cat
Moving the text in unix
Move or Rename file and directories - mv
How would we see content of the file?
Write a shell script that takes a file names as a argument and deletes this file from every directory above the present working directory.
Please enter your Comment
Comment should be atleast 30 Characters.
Please put code inside [Code] your code [/Code].
Please login to post comment
No Comment Found, Be the First to post comment!
Unix / Linux / Ubuntu
View All
Advance
Basics
Commands
Homework Help
Interview FAQ
Terms and Terminology
Assembly Language
Artificial Intelligence
C Programming
C++ Programming
Visual C++
OOAD
Cobol
Java
SQL Server
Asp.net MVC
Rest and WCF Services
Entity Framework
Knockout.Js
Networking
OOPs Concept
HTML
Dos
SQL
System Analysis & Design
Gadgets
Internet
CSS
Javascript
.Net Framework
Asp.net
C#
VB.Net
Python
Perl
Oracle
Software Engineering
RDBMS Terms
AJAX Framework
Design Pattern
UML
WPF
WCF
SEO
PowerShell
Visual Studio
WWF
BizTalk Server
Azure
General
Testing
Online Certifications
PHP
My SQL
LinQ
Project Management
Silverlight
XML
MS Office
Windows OS
DHTML
Sharepoint