forked from mottaquikarim/PCNWLab-Command-Line
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpset1.js
More file actions
61 lines (48 loc) · 1.27 KB
/
Copy pathpset1.js
File metadata and controls
61 lines (48 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/******************
PROBLEM 1:
Follow the following steps ONLY using your command line:
1. Navigate to your Desktop directory.
cd Desktop
2. Create a directory called my_first_direc.
mkdir my_first_direc
3. Enter the my_first_direc directory.
cd my_first_direc
4. Create a file called first.js.
touch first.js
5. Create a folder called assignments.
mkdir assignments
6. Move first.js into assignments.
mv first.js assignments
7. Go into the assignments folder.
cd assignments
8. Delete first.js.
rm first.js
9. Go up to the my_first_direc directory.
cd ..
10. Delete the assignments folder.
rm -r assignments
11. Go up to the Desktop directory.
cd..
12. Delete the test folder.
rm -r my_first_direc
******************/
/******************
PROBLEM 2:
Follow the following steps ONLY using your command line:
1. Navigate to the inside of your Documents folder
cd Documents
3. Create a file called foo.js
touch foo.js
4. Open the file with a text editor, (Atom/VSCode)
code .
5. Add the following text to the file: console.log('hello')
//added console.log('hello')
6. Save and exit the file
//Command S
7. Open the file again with a text editor, (Atom/VSCode)
code .
8. Add the following in a new line: hellohellohello
//added hellohellohello
9. Exit without saving
//Exited
******************/