forked from entertainmenttechnology/lab_01_commandline_01
/
lab-entering-commands.txt
179 lines (115 loc) · 2.59 KB
/
lab-entering-commands.txt
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
Lab - Entering Commands
==========
Follow the instructions line-by-line.
* Type in the commands as is, but ignore the beginning prompt.
* Enter, tab, up and down are represented by <ENTER><TAB>,<UP> and <DOWN>.
* "No output" or "nothing happens" are valid answers to any of the questions.
==========
==========
1. Open Terminal. Type:
$ ls<ENTER>
Copy and paste the output of ls below.
----------
Adlm MPLABXProjects Things
Adobe Movies ipe.properties
Applications Music isus
Desktop New Unity Project pymel.log
Documents Pictures xgen
Downloads Public
Library QLData
ent-v314-004:~ student$
==========
2a. Type:
$ ls D<TAB>
What happens? Describe it below.
----------
nothing
==========
2b. Press <TAB> one more time. Copy and paste the output below.
----------
Desktop/ Documents/ Downloads/
==========
2c. Now press <ENTER>. Copy and paste the output below.
----------
ls: D: No such file or directory
==========
3. Type:
$ ls -l Documents<ENTER>
Copy and paste the first *two lines* of output below.
----------
total 8
drwxr-xr-x 8 student staff 272 Jan 17 14:34 Ableton
drwxrwxrwx 14 student staff 476 Jan 17 14:07 Adobe
==========
4. Type:
$ ls -a Documents
Copy and paste the first *two lines* of output below.
----------
. Avid Projects Processing
.. Fritzing REAPER Media
==========
5. Type:
<UP><ENTER>
What command was repeated?
----------
ls -a Documents
==========
6. Type:
<UP><UP><UP><DOWN><ENTER>
What command was repeated?
----------
ls -a Documents
==========
7. Type:
$ ls /Vol<TAB><ENTER>
What is the result of pressing tab?
----------
completed /Vol to /Volumes
==========
8. Type:
$ ls doesnotexist
Copy and paste the output below.
----------
ls: doesnotexist: No such file or directory
==========
9. What key do I press to go to the previous command?
----------
<UP>
==========
10. Name two flags that we used in this exercise.
----------
-a
-l
==========
11. What key do I use to attempt to autocomplete a command or a file name?
----------
<TAB>
==========
12. What was the main command that we used throughout this exercise?
----------
ls
==========
13. Name one argument that we passed to the command.
----------
Documents
==========
14. Type:
$ foo<ENTER>
Copy and paste the output below.
----------
-bash: foo: command not found
==========
15. Type:
<UP><ENTER>
Copy and paste the output below.
----------
-bash: foo: command not found
==========
16. In the following line....
$ ls -a Desktop
What is the command, flag, argument, and prompt?
----------
command: ls
flag: -a
argument: Desktop
prompt: $