Skip to content

Latest commit

 

History

History
42 lines (22 loc) · 1.44 KB

commandline.md

File metadata and controls

42 lines (22 loc) · 1.44 KB

<<< Previous | Next >>>

Command Line

In contrast to a GUI, or graphical user interface, the command line lets us tell our computer exactly what we want it to do using successive lines of text.

The commmand line is one of the primary ways of using Git on your computer. We're going to use this method practice what we learned yesterday, and help us grasp the concepts of Git (and feel like we have computational superpowers, making files appear out of thin air). To review...

Open your Terminal.

Mac: press the space bar and the command key at the same time and type in "terminal."

Windows: launch the command prompt from the run window.

Go to your Desktop.

cd [name of directory or folder] will let you navigate inside a directory of your choosing.

Type cd Desktop and hit enter.

Now, cd ~ lets you go back a directory.

Practice going back and forth between your Desktop and your home directory. Experiment! The more you type the more natural the command line will feel.

Got lost?

pwd or "print working directory" will tell you where you are if you get a little lost.

End on your Desktop.

Make a new folder on your Desktop.

mkdir makes a new directory.

Type mkdir GitPractice and hit enter.

Click around to go check out your desktop and see your new folder.


<<< Previous | Next >>>

Glossary ~ ~ ~ Helpful commands