Skip to content

Instantly share code, notes, and snippets.

@muslemomar
Last active September 13, 2022 15:19
Show Gist options
  • Save muslemomar/50bd68bc533260aa97cc13ac2dbd00ce to your computer and use it in GitHub Desktop.
Save muslemomar/50bd68bc533260aa97cc13ac2dbd00ce to your computer and use it in GitHub Desktop.
Bicycle World
Welcome to Bicycle World, the premier text-based bicycle shop! This shop is only accessible to programmers like you, who are familiar with the command line.
In this project, I used the commands I learned to navigate and edit the filesystem.
The filesystem is shown below. Main directory is BicycleWorld.
BicycleWorld
|—— brands.txt
|—— freight/
| |—— messenger/
| |—— porteur/
|—— mountain/
| |—— downhill/
| | |—— heavyweight/
| | |—— lightweight/
| |—— hardtail/
|—— racing/
|—— road/
|—— track/
Tasks accomplished
1.Printed the working directory.
2.Listed the files and directories in the working directory.
3.Changed directories to the freight/ directory.
4.Listed the files and directories in the working directory.
5.Changed directories to the porteur/ directory.
6.Changed directories up two levels to the BicycleWorld/ directory.
Listed the files and directories in the BicycleWorld/ directory.
7.Changed directories to the mountain/downhill/ directory.
8.Made a file called dirt.txt.
9.Made a file called mud.txt.
10.Listed the files and directories in the downhill/ directory.
11.In the downhill/ directory, made a directory called safety/.
12.Changed directories to the BicycleWorld/ directory.
13.Listed the contents of the BicycleWorld/ directory.
14.In BicycleWorld/, made a directory called bmx/.
15.Without changing directories from BicycleWorld/, made a file in the bmx/ directory called tricks.txt.
16.Listed all files and directories in the current directory.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment