Revisiting my fundamentals... Creating a new directory in cmd

I was setting up my workspace today and noticed that my wrist was hurting.

Sometimes, we just so forget to get back to our fundamentals and leaves us stressed. We don't always realize that they could make our job easier.

 

So I was creating the directory of the following structure

/dir1/some_other_dir/one_more_level_deep/put_here

I don't know if I was the only one guilty of this... What I did was right click several times and create a new folder for each of the directory listed above. I was about to do it again until I remembered... Wtf?I studied computer 4 years in College and I'm doing this? So I fired up my command prompt did

c:\ mkdir c:/dir1/some_other_dir/one_more_level_deep/put_here  <---paste

Only took a few steps. Whew!

Weird post? Not unless you've been doing the same! Lolz!

Published 01-09-2009 3:59 AM by lamia

Comments

Friday, January 09, 2009 1:12 PM by marl

# re: Revisiting my fundamentals... Creating a new directory in cmd

Since you already started this, you should create a series about this! Hell, yeah, we should go back to basics! Command line shell basics, anyone?

Friday, January 09, 2009 7:34 PM by modchip

# re: Revisiting my fundamentals... Creating a new directory in cmd

Iba ba yung command na "md dirname"?

Saturday, January 10, 2009 5:06 AM by lamia

# re: Revisiting my fundamentals... Creating a new directory in cmd

@marl - If I could think of some more. :)

@modchip - Surprisingly, it's the same!

C:\>md /?

Creates a directory.

MKDIR [drive:]path

MD [drive:]path

If Command Extensions are enabled MKDIR changes as follows:

MKDIR creates any intermediate directories in the path, if needed.

For example, assume \a does not exist then:

   mkdir \a\b\c\d

is the same as:

   mkdir \a

   chdir \a

   mkdir b

   chdir b

   mkdir c

   chdir c

   mkdir d

which is what you would have to type if extensions were disabled.

Sunday, January 11, 2009 6:21 PM by modchip

# re: Revisiting my fundamentals... Creating a new directory in cmd

Oh, thanks!

Wednesday, January 14, 2009 10:37 AM by jokiz

# re: Revisiting my fundamentals... Creating a new directory in cmd

then try "md prn"

Sunday, April 12, 2009 7:20 PM by pikapika2501

# re: Revisiting my fundamentals... Creating a new directory in cmd

cd - change directory

md - make directory

cd.. - changes your current destination folder lower (decrement)...

cd\ - goes to your root folder

cd nameOfDirectory - enters a directory or a folder

c: - goes to drive c. can simply change the c to d or even e to z. to change current directory....

dir - like the ls command for unix/linux console that list the current folders and files within the current directory.

/? - just add this in any command and you'll see every options and parameters you'd like to add to a certain command (ex. dir /? or even cd /?)

cls - clears the screen.

rd - removes the directory [the folder must be empty] (ex. rd EmptyDirectory]

attrib filename.txt +h +s - sets the current file as a system file and as a hidden file.

- you can also try -h or -s to set the filename.txt to restore or to unhide and set is to a non-system file...

ren filename.txt namefile.bak - renames the filename.txt to namefile.back

type filename.txt - shows the content of filename.txt

copy filename.txt c:\temp\ - copies the filename.txt to a path c:\temp\

(i dunno if this helps. hope it does hehehe).