b5media.com

Advertise with us

Enjoying this blog? Check out the rest of the Technology Channel Subscribe to this Feed

New Linux User

GEEKY FUN: Advanced MKDIR Functions

by Jon on April 18th, 2006

The mkdir command is one of the staples of file management on any GNU/Linux system. As it (kinda) sounds, mkdir makes directories. A typical command that I use is:

mkdir somedir

Some things that I didn’t know about mkdir is that you can assign permissions at creation time and you can create a tree of subdirectories right off the bat.

Using mkdir 444 somedir will create a directory named somedir in the root directory and make it read only.

Using mkdir -p somedir/subdir1/subdir2/subdir3 will create a tree structure like:

somedir
|->subdir1
 |->subdir2
  |->subdir3

Who knew?

POSTED IN: Geeky Fun

0 opinions for GEEKY FUN: Advanced MKDIR Functions

  • No one has left a comment yet. You know what this means, right? You could be first!

Have an opinion? Leave a comment:




Check Spelling
Activate Spell Check while Typing