Skip to content

Instantly share code, notes, and snippets.

@RaynZayd
Last active October 22, 2020 09:26
Show Gist options
  • Save RaynZayd/2baa211b8b07f0aca2778dcfcda749a3 to your computer and use it in GitHub Desktop.
Save RaynZayd/2baa211b8b07f0aca2778dcfcda749a3 to your computer and use it in GitHub Desktop.
BWelcome to Bicycle World Bash Project, 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 a filesystem. The filesystem is shown below. Main directory is bicycle-world-ii.
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 bicycle-world-ii.
bicycle-world-ii
|—— 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 bicycle-world-ii/ directory.
Listed the files and directories in the bicycle-world-ii/ 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 bicycle-world-ii/ directory.
13.Listed the contents of the bicycle-world-ii/ directory.
14.In bicycle-world-ii/, made a directory called bmx/.
15.Without changing directories from bicycle-world-ii/, made a file in the bmx/ directory called tricks.txt.
16.Listed all files and directories in the current directory.
$ pwd
/home/ccuser/workspace/bicycle-world-ii
$ ls
brands.txt freight mountain racing
$ cd freight
$ ls
messenger porteur
$ cd porteur
$ cd ../..
$ ls
brands.txt freight mountain racing
$ cd moutain/downhill
bash: cd: moutain/downhill: No such file or directory
$ cd mountain/downhill
$ touch dirt.txt
$ touch mud.txt
$ ls
dirt.txt heavyweight lightweight mud.txt
$ mkdir safety
$ cd ../..
$ ls
brands.txt freight mountain racing
$ mkdir bmx
$ touch tricks.txt
$ ls
bmx brands.txt freight mountain racing tricks.txt
$ rm tricks.txt
$ ls
bmx brands.txt freight mountain racing
$ touch bmx tricks.txt
$ ls
bmx brands.txt freight mountain racing tricks.txt
$ rm tricks.txt
$ ls
bmx brands.txt freight mountain racing
$ cd bmx
$ ls
$ touch tricks.txt
$ ls
tricks.txt
$ ^C
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment