Creating a Directory in Linux

Tutorials Shared by the Internet Community

Advertisements


Synopsis

The mkdir (make directory) command is used to create directories.

Statistics

  • Total Hits - 16757

  • Total Votes - 108 votes

  • Vote Up - 48 votes

  • Vote Down - 60 votes

  • Domain - raj-tipstricks.blogspot.com

  • Category - Linux/Databases

  • Submitted By - bholu

  • Submitted on - 2009-07-16 23:19:58

Description

The mkdir (make directory) command is used to create directories.

Example
[ Steve@localhost Steve ] $ mkdir prog-files
[ Steve@localhost Steve ] $ -

The sub-directory, prog-files, is created under the current directory. However, the new directory does not become the current directory. Complete path names can be specified with mkdir.

Example

[ Steve@localhost Steve ] $ mkdir /tmp/prog-files
[ Steve@localhost Steve ] $ _

In the above example, the directory, prog-files, is created under the /tmp directory. ...


Site  |   Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements