Skip to content

Instantly share code, notes, and snippets.

@RaynZayd
Last active October 22, 2020 09:25
Show Gist options
  • Save RaynZayd/1103a798d54089edb74f854d3dfc0812 to your computer and use it in GitHub Desktop.
Save RaynZayd/1103a798d54089edb74f854d3dfc0812 to your computer and use it in GitHub Desktop.
Daily Buzz In this project, I used the commands I learned to navigate through files and directories of Daily Buzz, a national newspaper.
SETDEV ENVIRONMENT
Daily Buzz
In this project, I used the commands I learned to navigate through files and directories of Daily Buzz, a national newspaper.
Tasks completed:
1.Printed the working directory.
2.Listed all files and directories in the current working directory
3.With one command, I changed directories to the national/politics/ directory.
4.Listed all files and directories in the working politics/ directory.
5.In the politics/ directory, created a directory called elections/.
6.Changed directories into the elections/ directory.
7.In the elections/ directory, made two files candidates.txt and issues.txt
8.Changed directories three levels up to the daily-buzz/ directory, and printed the working directory.
9.In the daily-buzz/ directory, made a directory called business/ and changed directories into the business/ directory.
10.Listed all files and directories in the business/ directory.
11.From the business/ directory, made a directory called startups/ and changed directories into the startups/ directory.
12.Changed directories one level up back to the business/ directory.
From the business/ directory, made a directory that is a child of startups/, called disruptors/.
13.From the business/ directory, made three files in the disruptors/ directory. The files made are tech.txt design.txt and education.txt.
14.Changed directories one level up to the daily-buzz/ directory and printed the working directory.
$ pwd
/home/ccuser/workspace/daily-buzz
$ ls
culture health national technology
$ cd national/politics
$ ls
policy
$ mkdir elections
$ cd elections
$ touch elections.txt issues.txt
$ cd ../../..
$ ls
culture health national technology
$ mkdir business
$ cd business
$ ls
$ mkdir startups
$ cd ../
$ ls
business culture health national technology
$ cd business
$ ls
startups
$ cd startups
$ mkdir disruptors
$ cd ../..
$ ls
business culture health national technology
$ cd business
$ ls
startups
$ cd startups
$ ls
disruptors
$ touch tech.txt design.txt education.txt
$ cd ../..
$ ls
business culture health national technology
$ pwd
/home/ccuser/workspace/daily-buzz
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment