WDI Fundamentals Unit 2
Part 1:
-
Open up your terminal application.
-
Navigate into your
Downloads
directory. -
Move the
World
directory you downloaded in the previous exercise fromDownloads
to your home directory. -
Check to see if you've successfully moved the
World
directory by listing the contents of your home directory.
Part 2:
You may have noticed that we neglected to include Antarctica in the World
directory. Go ahead and correct this mistake straight from the command line:
-
Make sure you're in the
World
directory within your home directory. -
Make a new directory titled
Antarctica
inside theWorld
directory. -
To be sure you created the directory in the right place, list the contents of the
World
directory. -
If you haven't already, navigate back into the
World
directory. -
List the contents of
South_America
. There should be three country directories: Argentina, Brazil, and Chile. -
Move the contents of
South_America
into theNorth_America
folder. -
Delete the now empty
South_America
directory. -
Change the name of the
North_America
folder toAmericas
.
Part 3: Close and restart your terminal application.
-
In your command line, navigate to your home directory.
-
Print your working directory to confirm your location.
-
List the contents of the
Americas
folder without changing your working directory (HINT: Use an absolute path). -
In your home directory, create a new folder called "wdi-fundamentals."
-
Change the name of the
wdi-fundamentals
folder to "fundamentals." Do not change its location. -
We'll be using this folder to house your Fundamentals project, so keep it clean and don't delete it!
Stuck? Check out the solutions to see what you can do.
Think you've got it? Test yourself!