-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCommandHistory.txt
275 lines (275 loc) · 7.4 KB
/
CommandHistory.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
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
1 whoami
2 dscl . read /Groups/admin
3 sudo dscl . read /Groups/admin
4 dscl . read /Groups/admin
5 dscl . read /Users/rzm102
6 id 20
7 apropos group id
8 groups 20
9 man groups
10 groups 20
11 apropos group id
12 dscl . read /Groups/20
13 getgid 20
14 man -K group id
15 man -K group
16 man -K group
17 man -k group
18 groups
19 man groups
20 man id
21 whoami
22 echp $PATH
23 echo $PATH
24 PlistBuddy
25 PlistBuddy
26 listBuddy
27 PlistBuddy
28 whoami
29 https://docs.google.com/spreadsheet/viewform?usp=drive_web&formkey=dE9ib2lSSjlwaWVOLXpBYUExbkNSaFE6MA#gid=0
30 echo 'system version' | /Applications/Utilities/QnA.app/Contents/Resources/QnA
31 exit
32 echo "
33 "
34 su rzm102
35 sudo -s
36 whoami
37 cat /dev/console
38 ls /dev/console
39 ls -l /dev/console
40 ksh
41 csh
42 sh
43 exit
44 export No_value=10
45 echo $No_value
46 exit
47 echo $OSVersion
48 exit
49 ps
50 /Users/presenter/Desktop/ShellScriptingPSUMAC2014/inventory.command ; exit;
51 ps
52 ps axxx
53 ps axx
54 ps axx | grep Keynote
55 ps axx | grep Keynote| grep -v grep
56 ps axx | grep Keynote| grep -v grep
57 ps axx | grep Keynote| grep -v grep|awk '{pront $1}'
58 ps axx | grep Keynote| grep -v grep|awk '{print $1}'
59 ps axx | grep Keynote| grep -v grep|awk '{print $1}'; open /Applications/Keynote.app/
60 set the big brown fox
61 echo $2
62 echo $*
63 echo $0
64 echo $1
65 echo $2 $3
66 cat Arguments.sh
67 vi Arguments.sh
68 ls
69 ./Arguments.sh zed1 zed2
70 ls
71 vi Arguments.sh
72 ./Arguments.sh zed3 zed4
73 ls
74 vi Arguments.sh
75 ./Arguments.sh zed6 zed7
76 ls
77 ls -l
78 vi Arguments.sh
79 ./Arguments.sh zed8 zed9
80 ls
81 sw_vers
82 man sw_vers
83 sw_vers -productVersion
84 sw_vers -productVersion | awk -F. '{print $2}'
85 if [[ 9 >= 9 ]]; then
86 num=0
87 while [[ $num -lt 5 ]]; do echo $num; ((num++); ((num++))
88 while [[ $num -lt 5 ]]; do echo
89 while [[ $num -lt 5 ]]; do echo $num; ((num++)); done
90 while true; do ls -l /dev/console; sleep 5; done
91 while read PathName; do file $PathName; echo ""; sleep 2; done < /etc/paths
92 ./appCheck.sh Keynote.app
93 ./appCheck.sh Safari.app
94 cat appCheck.sh
95 system_profiler SPApplicationsDataType
96 vi appCheck.sh
97 ./appCheck.sh Safari.app
98 vi appCheck.sh
99 open -e appCheck.sh
100 vi appCheck.sh
101 open -e appCheck.sh
102 vi appCheck.sh
103 ./appCheck.sh Safari.app
104 vi appCheck.sh
105 ./appCheck.sh Safari.app
106 dseditgroup -o checkmember -m presenter admin
107 dseditgroup -o checkmember -m presenter admin
108 dseditgroup -o checkmember -m presenter admin
109 echo $?
110 adminme=$(dseditgroup -o checkmember -m presenter admin)
111 echo $adminm
112 echo $adminme
113 man id
114 id
115 dseditgroup -o checkmember -m presenter admin
116 dseditgroup -o checkmember -m admin admin
117 echo $?
118 dseditgroup -o checkmember -m presenter terminal
119 echo $?
120 dseditgroup -o checkmember -m guest admin
121 echo $?
122 man dseditgroup
123 networksetup -getinfo Ethernet
124 networksetup -getinfo Wi-Fi
125 ./inventory.sh
126 ./inventory.sh
127 time ls
128 man pusjd
129 man pushd
130 help pushd
131 help popd
132 dirs
133 help pushd
134 clear
135 man man
136 man man
137 man diskutil
138 man diskutil
139 man diskutil
140 man man
141 cd ;ls
142 cd /Library/;ls
143 cd /tmp ; ls
144 cd /tmp ; ls
145 man mv
146 man rm
147 man rm
148 cd ~
149 clear
150 ls /Volumes/
151 ls -l /Volumes/
152 clear
153 man scp
154 ls -li /bin/bash
155 ls -li /bin/sh
156 man locate
157 man find
158 open ~/Desktop/
159 ls
160 cd Desktop/
161 ls
162 cd Shell
163 cd ShellScriptingPSUMAC2014/
164 ls
165 ls [a-z]*
166 ls [a-Z]*
167 ls [a-z]*
168 ls [A-Z]*
169 ls [A-Z]* | grep Zed
170 echo '
171 hello
172 goodbye
173 later
174 '
175 echo "
176 THis is a new line"
177 echo $No_value
178 echo $No_value
179 echo ${No_value:?"no values here"}
180 whoami
181 sudo -s
182 sh
183 ksh
184 zsh
185 clear
186 bash ls
187 echo $No_value
188 echo $No_value
189 bash
190 echo $No_value
191 man export
192 help export
193 clear
194 vi inventory.sh
195 echo $OSVersion
196 ./inventory.sh
197 echo $OSVersion
198 vi inventory.sh
199 ./inventory.sh
200 echo $OSVersion
201 echo $OSVersion
202 OSVersion="10.0"
203 bash
204 env
205 OSVersion="10.0"
206 vi inventory.sh
207 OSVersion="10.0"
208 echo $OSVersion
209 ./inventory.sh
210 echo $OSVersion
211 networksetup -listallhardwareports
212 HARDWARE=$(networksetup -listallhardwareports)
213 echo $HARDWARE
214 networksetup -listallhardwareports
215 HARDWARE=$(networksetup -listallhardwareports)
216 echo $HARDWARE
217 man echo
218 ls
219 vi MyVariables
220 cat MyVariables
221 vi inventory.sh
222 vi inventory.sh
223 cat MyVariables
224 source MyVariables
225 echo $OSVersions
226 echo $OSVersion
227 OSVersion
228 OSVersion=0
229 echo $OSVersion
230 source MyVariables
231 echo $OSVersion
232 ls
233 ls -G
234 HARDWARE=$(networksetup -listallhardwareports)
235 echo $HARDWARE
236 echo "$HARDWARE"
237 pmset -g
238 pmset -g| grep ^\ Sleep
239 pmset -g| grep ^\ sleep
240 pmset -g| grep ^\ disk*
241 pmset -g| grep ^\ dis*
242 pmset -g| grep ^\ disks\
243 pmset -g| grep ^\ disk*
244 clear
245 system_profiler SPHardwareDataType
246 system_profiler SPHardwareDataType |grep Model
247 system_profiler SPHardwareDataType |grep Model\ Iden*
248 system_profiler SPHardwareDataType |grep Model\ Iden| awk
249 system_profiler SPHardwareDataType |grep Model\ Ide
250 system_profiler SPHardwareDataType |grep Model\ Ide| awk -F: '{print $2}'
251 system_profiler SPHardwareDataType |grep Model\ Ide| awk -F: '{print $2}'\
252 system_profiler SPHardwareDataType |grep Model\ Ide| awk -F: '{print $2}'
253 system_profiler SPHardwareDataType |grep Model\ Ide| awk -F': ' '{print $2}'
254 ls /Volumes/
255 man bless
256 system_profiler -help
257 system_profiler -listdatatypes
258 system_profiler SPSerialATADataType
259 system_profiler SPSerialATADataType| rep -i mount
260 system_profiler SPSerialATADataType| grep -i mount
261 system_profiler SPSerialATADataType| grep -i Vol*
262 networksetup -listallhardwareports
263 networksetup -listallhardwareports | grep -A1 Wi-Fi
264 networksetup -listallhardwareports | grep -A1 Wi-Fi| tail -1
265 networksetup -listallhardwareports | grep -A1 Wi-Fi| tail -1| awk '{print $2}'
266 ActiveNetwork=$(networksetup -listallhardwareports | grep -A1 Wi-Fi| tail -1| awk '{print $2}')
267 echo $ActiveNetowkr
268 echo $ActiveNetwork
269 cp Desktop/Archive.zip /Users/rzm102/Desktop/
270 sudo cp Desktop/Archive.zip /Users/rzm102/Desktop/
271 ls
272 chmod 777 /Users/rzm102/Desktop/Archive.zip
273 sudo chmod 777 /Users/rzm102/Desktop/Archive.zip
274 history
275 history >> ~/Desktop/history.txt