-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathterminal-history-for-this-assignment.txt
230 lines (225 loc) · 11.1 KB
/
terminal-history-for-this-assignment.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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
Last login: Mon Apr 11 13:13:26 on ttys000
➜ ~ git:(master) ✗ git remote add origin [email protected]:danedexF5/TIY-Terminal-Velocity.git
fatal: remote origin already exists.
➜ ~ git:(master) ✗ cd
➜ ~ git:(master) ✗ cd Projects
➜ Projects git:(master) ✗ git clone [email protected]:danedexF5/TIY-Terminal-Velocity.git
Cloning into 'TIY-Terminal-Velocity'...
warning: You appear to have cloned an empty repository.
Checking connectivity... done.
➜ Projects git:(master) ✗ ls
TIY-Terminal-Velocity cloneExample2 gitTests
➜ Projects git:(master) ✗ ls > list-projects-directory.txt
➜ Projects git:(master) ✗ ls
TIY-Terminal-Velocity gitTests
cloneExample2 list-projects-directory.txt
➜ Projects git:(master) ✗ mv list-projects-directory.txt TIY-Terminal-Velocity
➜ Projects git:(master) ✗ ls
TIY-Terminal-Velocity cloneExample2 gitTests
➜ Projects git:(master) ✗ cd TIY-Terminal-Velocity
➜ TIY-Terminal-Velocity git:(master) ✗ ls
list-projects-directory.txt
➜ TIY-Terminal-Velocity git:(master) ✗ ls -al
total 8
drwxr-xr-x 4 danedexheimer staff 136 Apr 11 13:25 .
drwxr-xr-x 5 danedexheimer staff 170 Apr 11 13:25 ..
drwxr-xr-x 10 danedexheimer staff 340 Apr 11 13:26 .git
-rw-r--r-- 1 danedexheimer staff 73 Apr 11 13:22 list-projects-directory.txt
➜ TIY-Terminal-Velocity git:(master) ✗ nano TIY-Terminal-Velocity
➜ TIY-Terminal-Velocity git:(master) ✗ nano
➜ TIY-Terminal-Velocity git:(master) ✗ cd > workingDIrectory.txt
➜ ~ git:(master) ✗ cd
➜ ~ git:(master) ✗ cd ..
➜ /Users cd
➜ ~ git:(master) ✗ cd TIY-Terminal-Velocity
cd: no such file or directory: TIY-Terminal-Velocity
➜ ~ git:(master) ✗ cd Projects
➜ Projects git:(master) ✗ ls
TIY-Terminal-Velocity cloneExample2 gitTests
➜ Projects git:(master) ✗ cd TIY-Terminal-Velocity
➜ TIY-Terminal-Velocity git:(master) ✗ mv cd workingDirectory.txt
mv: cd: No such file or directory
➜ TIY-Terminal-Velocity git:(master) ✗ touch workingDirectory.txt
➜ TIY-Terminal-Velocity git:(master) ✗ cd > workingDirectory.txt
➜ ~ git:(master) ✗ pwd > workingDirectory.txt
➜ ~ git:(master) ✗ cd Projects
➜ Projects git:(master) ✗ cd TIY-Terminal-Velocity
➜ TIY-Terminal-Velocity git:(master) ✗ pwd > workingDirectory.txt
➜ TIY-Terminal-Velocity git:(master) ✗ ls
joke.txt workingDIrectory.txt
list-projects-directory.txt
➜ TIY-Terminal-Velocity git:(master) ✗ sudo nano /private/etc/hosts
Password:
Sorry, try again.
Password:
➜ TIY-Terminal-Velocity git:(master) ✗ cp sudo nano /private/etc/hosts
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file target_file
cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file ... target_directory
➜ TIY-Terminal-Velocity git:(master) ✗
➜ TIY-Terminal-Velocity git:(master) ✗ cp sudo nano /private/etc/hosts
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file target_file
cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file ... target_directory
➜ TIY-Terminal-Velocity git:(master) ✗
➜ TIY-Terminal-Velocity git:(master) ✗ cp /private/etc/hosts TIY-Terminal-Velocity
➜ TIY-Terminal-Velocity git:(master) ✗ ls
TIY-Terminal-Velocity list-projects-directory.txt
joke.txt workingDIrectory.txt
➜ TIY-Terminal-Velocity git:(master) ✗ ls -al
total 32
drwxr-xr-x 7 danedexheimer staff 238 Apr 11 14:05 .
drwxr-xr-x 5 danedexheimer staff 170 Apr 11 13:25 ..
drwxr-xr-x 10 danedexheimer staff 340 Apr 11 14:05 .git
-rw-r--r-- 1 danedexheimer staff 214 Apr 11 14:05 TIY-Terminal-Velocity
-rw-r--r-- 1 danedexheimer staff 95 Apr 11 13:31 joke.txt
-rw-r--r-- 1 danedexheimer staff 73 Apr 11 13:22 list-projects-directory.txt
-rw-r--r-- 1 danedexheimer staff 52 Apr 11 13:49 workingDIrectory.txt
➜ TIY-Terminal-Velocity git:(master) ✗ cd TIY-Terminal-Velocity
cd: not a directory: TIY-Terminal-Velocity
➜ TIY-Terminal-Velocity git:(master) ✗ cd ..
➜ Projects git:(master) ✗ ls
TIY-Terminal-Velocity cloneExample2 gitTests
➜ Projects git:(master) ✗ cp /private/etc/hosts TIY-Terminal-Velocity
➜ Projects git:(master) ✗ ls
TIY-Terminal-Velocity cloneExample2 gitTests
➜ Projects git:(master) ✗ cp /private/etc/hosts
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file target_file
cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file ... target_directory
➜ Projects git:(master) ✗ cp /private/etc/hosts TIY-Terminal-Velocity/hosts
➜ Projects git:(master) ✗ ls
TIY-Terminal-Velocity cloneExample2 gitTests
➜ Projects git:(master) ✗ cd TIY-Terminal-Velocity
➜ TIY-Terminal-Velocity git:(master) ✗ ls
TIY-Terminal-Velocity list-projects-directory.txt
hosts workingDIrectory.txt
joke.txt
➜ TIY-Terminal-Velocity git:(master) ✗ man date
➜ TIY-Terminal-Velocity git:(master) ✗ date -j -f "%a %b %d %T %Z %Y" "`date`" "+%s" date.txt
1460399339
➜ TIY-Terminal-Velocity git:(master) ✗ ls
TIY-Terminal-Velocity list-projects-directory.txt
hosts workingDIrectory.txt
joke.txt
➜ TIY-Terminal-Velocity git:(master) ✗ list-projects-directory.txt joke.txt workingDIrectory.txt date.txt > list of txt files.txt
zsh: command not found: list-projects-directory.txt
➜ TIY-Terminal-Velocity git:(master) ✗ .txt > list of txt files.txt
zsh: command not found: .txt
➜ TIY-Terminal-Velocity git:(master) ✗ joke.txt > list of txt files.txt
zsh: command not found: joke.txt
➜ TIY-Terminal-Velocity git:(master) ✗ ls > contents.txt
➜ TIY-Terminal-Velocity git:(master) ✗ ls
TIY-Terminal-Velocity list
contents.txt list-projects-directory.txt
hosts workingDIrectory.txt
joke.txt
➜ TIY-Terminal-Velocity git:(master) ✗ TIY-Terminal-Velocity.txt > list of txt files.txt
zsh: command not found: TIY-Terminal-Velocity.txt
➜ TIY-Terminal-Velocity git:(master) ✗ ls txt
ls: txt: No such file or directory
➜ TIY-Terminal-Velocity git:(master) ✗ ls
TIY-Terminal-Velocity list
contents.txt list-projects-directory.txt
hosts workingDIrectory.txt
joke.txt
➜ TIY-Terminal-Velocity git:(master) ✗ cp *.txt list of txt files.txt
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file target_file
cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file ... target_directory
➜ TIY-Terminal-Velocity git:(master) ✗ touch where-is-my-java.txt
➜ TIY-Terminal-Velocity git:(master) ✗ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
➜ TIY-Terminal-Velocity git:(master) ✗ $JAVA
➜ TIY-Terminal-Velocity git:(master) ✗ $PATH JAVA
zsh: no such file or directory: /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
➜ TIY-Terminal-Velocity git:(master) ✗ PATH JAVA
zsh: command not found: PATH
➜ TIY-Terminal-Velocity git:(master) ✗ which JAVA
/usr/bin/JAVA
➜ TIY-Terminal-Velocity git:(master) ✗ cp /usr/bin/JAVA where-is-my-java.txt
➜ TIY-Terminal-Velocity git:(master) ✗ which JAVAC
/usr/bin/JAVAC
➜ TIY-Terminal-Velocity git:(master) ✗ cp /usr/bin/JAVAC where-is-my-java.txt
➜ TIY-Terminal-Velocity git:(master) ✗ git add where-is-my-java.txt
➜ TIY-Terminal-Velocity git:(master) ✗ git commit -m "where-is-my-java.txt"
[master (root-commit) b35cc0e] where-is-my-java.txt
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 where-is-my-java.txt
➜ TIY-Terminal-Velocity git:(master) ✗ git add list of text files.txt
fatal: pathspec 'of' did not match any files
➜ TIY-Terminal-Velocity git:(master) ✗ git add list of txt files.txt
fatal: pathspec 'of' did not match any files
➜ TIY-Terminal-Velocity git:(master) ✗ git add list of txt files.txt
fatal: pathspec 'of' did not match any files
➜ TIY-Terminal-Velocity git:(master) ✗ git add list\ of\ txt\ files.txt
fatal: pathspec 'list of txt files.txt' did not match any files
➜ TIY-Terminal-Velocity git:(master) ✗ ls *.txt "list of text files.txt"
ls: list of text files.txt: No such file or directory
contents.txt where-is-my-java.txt
joke.txt workingDIrectory.txt
list-projects-directory.txt
➜ TIY-Terminal-Velocity git:(master) ✗ ls *.txt > "list of text files.txt"
➜ TIY-Terminal-Velocity git:(master) ✗ ls
TIY-Terminal-Velocity list of text files.txt
contents.txt list-projects-directory.txt
hosts where-is-my-java.txt
joke.txt workingDIrectory.txt
list
➜ TIY-Terminal-Velocity git:(master) ✗ git add "list of text files.txt
dquote> "
fatal: pathspec 'list of text files.txt
' did not match any files
➜ TIY-Terminal-Velocity git:(master) ✗ git add "list of text files.txt"
➜ TIY-Terminal-Velocity git:(master) ✗ git commit -m "list of text files.txt"
[master cf01131] list of text files.txt
1 file changed, 5 insertions(+)
create mode 100644 list of text files.txt
➜ TIY-Terminal-Velocity git:(master) ✗ git status
On branch master
Your branch is based on 'origin/master', but the upstream is gone.
(use "git branch --unset-upstream" to fixup)
Untracked files:
(use "git add <file>..." to include in what will be committed)
TIY-Terminal-Velocity
contents.txt
hosts
joke.txt
list
list-projects-directory.txt
workingDIrectory.txt
nothing added to commit but untracked files present (use "git add" to track)
➜ TIY-Terminal-Velocity git:(master) ✗ git add "contents.txt"
➜ TIY-Terminal-Velocity git:(master) ✗ git add "joke.txt"
➜ TIY-Terminal-Velocity git:(master) ✗ git add "list-projects-directory.txt"
➜ TIY-Terminal-Velocity git:(master) ✗ git add "workingDIrectory.txt"
➜ TIY-Terminal-Velocity git:(master) ✗ git commit -m "contents.txt"
[master 22a2d29] contents.txt
4 files changed, 15 insertions(+)
create mode 100644 contents.txt
create mode 100644 joke.txt
create mode 100644 list-projects-directory.txt
create mode 100644 workingDIrectory.txt
➜ TIY-Terminal-Velocity git:(master) ✗ git status
On branch master
Your branch is based on 'origin/master', but the upstream is gone.
(use "git branch --unset-upstream" to fixup)
Untracked files:
(use "git add <file>..." to include in what will be committed)
TIY-Terminal-Velocity
hosts
list
nothing added to commit but untracked files present (use "git add" to track)
➜ TIY-Terminal-Velocity git:(master) ✗ git add "TIY-Terminal-Velocity"
➜ TIY-Terminal-Velocity git:(master) ✗ git add "hosts"
➜ TIY-Terminal-Velocity git:(master) ✗ git add "list"
➜ TIY-Terminal-Velocity git:(master) ✗ git commit m- "TIY-Terminal-Velocity"
error: pathspec 'm-' did not match any file(s) known to git.
➜ TIY-Terminal-Velocity git:(master) ✗ git commit -m "TIY-Terminal-Velocity"
[master 7c76103] TIY-Terminal-Velocity
3 files changed, 18 insertions(+)
create mode 100644 TIY-Terminal-Velocity
create mode 100644 hosts
create mode 100644 list
➜ TIY-Terminal-Velocity git:(master) git status
On branch master
Your branch is based on 'origin/master', but the upstream is gone.
(use "git branch --unset-upstream" to fixup)
nothing to commit, working directory clean
➜ TIY-Terminal-Velocity git:(master)