GEEKY FUN: Advanced MKDIR Functions
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?
Related Stories
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: