-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_history
696 lines (696 loc) · 15.2 KB
/
.bash_history
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
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
ls -tlr
yum install git
git status
git init
git status
mkdir 1
mkdir 2
mkdir 3
mkdir 4
cd 1
ls -ltr
vim tst.sh
ls -tlr
chmod 777 tst.sh
ls -tlr
git status
git branch -a
ls -tlr
pwd
git add tst.sh
git commit -m "add tst.sh" tst.sh
git status
git push origin master
git pull origin master
git pull origin "https://github.com/rajindergandhi/testgit.git"
git branch -a
git push origin master
git push
git
git status
git log
git push tst.sh
remote add
git remote add
git remote add -m
git remote add -origin https://github.com/rajindergandhi/testgit.git
git remote add -origin "https://github.com/rajindergandhi/testgit.git"
git
git remote add origin https://github.com/rajindergandhi/testgit.git
git push origin master
git fetch https://github.com/rajindergandhi/testgit.git
git log
git remote add origin https://github.com/rajindergandhi/testgit.git
git push origin master
git pull origin
git pull origin master
git pull origin https://github.com/rajindergandhi/testgit.git
git push origin master
git push --help
git push origin HEAD
git push
git push origin master
git pull
git pull https://github.com/rajindergandhi/testgit.git
git log
git commit -m "add tst.sh"
git push origin master
git remote -v
git push https://github.com/rajindergandhi/testgit.git
git pull origin
git branch -a
git pull origin master
git pull origin master --allow-unrelated-histories
git pull origin master
git branch -a
git push origin master
ls -tlr
cd ..
ls -tlr
git add 2
git status
git log
git commit -mv "add 2"
git commit -m "add 2"
git status
git push origin master
ls -tlr
cd 1
cd ..
cd 2
ls
ls -tlr
vim test.sh
git add test.sh
git status
git commit -m "add test.sh"
git push origin master
git log
cd ..
cd 3
ls
vim rahul.txt
git add rahul.txt
git commit -m "add rahul file"
git push origin master
cd ..
cd 4
ls
vim manish.txt
git add manish.txt
git push origin master
git commit -m "add manish.txt"
git push origin master
ls -tlr
cd ..
git status
git branch -a
git branch SDN
git branch Auth
git branch -a
git log
alias graph="git log --all --decorate --online --graph"
graph
alias graph="git log --all --decorate --oneline --graph"
graph
git checkout SDN
graph
vim test.sh
ls
cd 2
ls -tlr
vim test.sh
git add test.sh
git status
git commit -m "SDN file change"
git staus
git status
git log
git graph
graph
cat test.sh
git checkout Auth
graph
vim test.sh
git staus
git status
git commit -m "add auth"
graph
git checkout master
graph
git checkout Auth
graph
git checkout master
graph
git diff master ..SDN
git diff master ..Auth
git checkout Auth
git status
more test.sh
wq1wq!
clear
ls
ls -tlr
pwd
cd 1
ls -tlr
cd ..
git staus
git status
git checkout master
git diff master..Auth
git diff master ..Auth
git diff master ..SDN
git status
graph
git merge SDN
ls -tlr
cd 1
ls
cd ..
cd 2
ls -tlr
vimt es
cat test.sh
cd ..
git checkout master
ls -tlr
git status
pwd
cd 2
ls
cat test.sh
cd ..
ls -tlr
graph
cat test.sh
cd 2
ls
cat test.sh
cd ..
cd 1
ls
ls -tlr
more tst.sh
cd ..
cd 2
ls -tlr
graph
git merge SDN
git checkout Auth
git status
git commit -m "add auth syntax"
git status
git checkout SDN
git checkout master
ls -tlr
cat test.sh
vim test.sh
graph
git checkout master
git status
graph
git checkout SDN
ls -tlr
git status
git branch -a
git checkout Auth
ls -tlr
cd 2
ls -tlr
more test.sh
ls -tlr
cd ..
ls -tlr
cd 2
ls -tlr
cd 1
ls -tlr
rm -f 1
git checkout branch SDN
git checkout SDN
git commit -m "update Auth file"
graph
history
alias graph="git log --all --decorate --oneline --graph"
graph
git checkout SND
git checkout SDN
git merger master
git merge master
graph
git checkout SDN
git stash --help
git stash list
git status
git stash show
git checkout master
git merge
git status
git checkout test.sh
git status
git branch -a
git stash pop
git stash save test2.sh
ls
git stash save test.sh
git commit -m "test"
git status
git checkout SDN
git status
git stash
git stash show
git stash pop
git merge SDN
git merge Auth
ls -tlr
git checkout branch
git status
git checkout branch -a
git checkout SDN
ls -tlr
cd ..
ls -tlr
hostnals -tlr
ls -tlr
pwd
cd /tmp
ks 0tkr
ls -tlr
vim test.sh
chmod 777 test.sh
pwd
cd /home/ec2-user/
ls -tlr
pwd
ls -tlr
cp -pr /tmp/test.sh /home/ec2-user/
ls -tlr
rm -f *
cd /tmp
ls -ltrl
cp -p /tmp/test.sh /home/ec2-user/.
ls -tlr
cd /home/ec2-user/
ls -tlr
rm -f *
cd /var/lib/jenkins/workspace/pipeline
ls -ltr /var/lib/jenkins/workspace/pipeline
ls -tlr
cd
vim /etc/sudoers
sudo su - jenkins
useradd jenkins
sudo su - jenkins
git status
git checkout master
ls -tlr
cd 4
ls -tlr
more manish.txt
git status
ls -tlr
git branch -a
git SDN
ls -tlr
cd 2
ls -tlr
more test.sh
git show
git branch -a
git checkout Auth
git status
git show
ls -tlr
cd ..
cd 4
ls
ls -tlr
more manish.txt manish.txt
clear
ls tlr
ls -tlr
git checkout manish.txt
git branch -a
vim Auth
vim manish.txt
git status
git branch -a
git commit -m "modified file"
git chekcout Auth
git checkout Auth
git status
git add manish.txt
git status
git commit -m "update manish.txt"
git push origin master
ls
more manish.txt
git status
ls -tlr
git checkout master
ls -tlr
more manish.txt
git status
git branch 0a
git branch -a
git checkout Auth
ls -tlr
more manish.txt manish.txt
ls -tlr
more manish.txt
git branch -a
more manish.txt
git checkout master
git merge Auth
ls -tlr
more manish.txt
git log
ls -tlr
git push -u origin master
ls -tlr
vim test.sh
ksh -x test.sh
sh -x test.sh
yum
yum install ansible
ansible
yum install an
yum update
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install ansible
ansible
ip addr
ipaddr
pwd
hostname
exit
ls
cd .ssh/
ls
ls -tlr
vim authorized_keys
exit
cd /etc/ssh/
vim sshd_config
exit
cd /etc/ssh/
ls -tlr
vim sshd_config
systemctl restart sshd
pwd
Last login: Mon Jun 17 18:03:56 on ttys000
Paruls-MacBook-Pro:Downloads sanvi$ ip-172-31-25-160.us-west-2.compute.internal
-bash: ip-172-31-25-160.us-west-2.compute.internal: command not found
Paruls-MacBook-Pro:Downloads sanvi$ telne
-bash: telne: command not found
Paruls-MacBook-Pro:Downloads sanvi$ telnet ip-172-31-25-160.us-west-2.compute.internal
Trying 218.93.250.18...
telnet: connect to address 218.93.250.18: Connection refused
telnet: Unable to connect to remote host
Paruls-MacBook-Pro:Downloads sanvi$ telnet ip-172-31-25-160.us-west-2.compute.internal:80
Trying 218.93.250.18...
telnet: connect to address 218.93.250.18: Connection refused
telnet: Unable to connect to remote host
Paruls-MacBook-Pro:Downloads sanvi$ telnet ip-172-31-25-160.us-west-2.compute.internal:20
Trying 218.93.250.18...
telnet: connect to address 218.93.250.18: Connection refused
telnet: Unable to connect to remote host
Paruls-MacBook-Pro:Downloads sanvi$ telnet ip-172-31-25-160.us-west-2.compute.internal:20
Trying 218.93.250.18...
telnet: connect to address 218.93.250.18: Connection refused
telnet: Unable to connect to remote host
Paruls-MacBook-Pro:Downloads sanvi$ http://git.io/iEPt8g
-bash: http://git.io/iEPt8g: No such file or directory
Paruls-MacBook-Pro:Downloads sanvi$ gi
-bash: gi: command not found
Paruls-MacBook-Pro:Downloads sanvi$
Paruls-MacBook-Pro:Downloads sanvi$ date +%I:%M%p
09:50AM
Paruls-MacBook-Pro:Downloads sanvi$ date +%I:%M
09:50
Paruls-MacBook-Pro:Downloads sanvi$ date +%I:%M%p
09:50AM
Paruls-MacBook-Pro:Downloads sanvi$ date +%A
Wednesday
Paruls-MacBook-Pro:Downloads sanvi$ date +%Y
2019
Paruls-MacBook-Pro:Downloads sanvi$ date +%d
19
Paruls-MacBook-Pro:Downloads sanvi$ date +%b
Jun
Paruls-MacBook-Pro:Downloads sanvi$ /usr/local/bin/sid
-bash: /usr/local/bin/sid: No such file or directory
Paruls-MacBook-Pro:Downloads sanvi$ vim test.sh
Paruls-MacBook-Pro:Downloads sanvi$ ksh -x test.
+ test.
ksh: test.: not found
Paruls-MacBook-Pro:Downloads sanvi$ ksh -x test.sh
+ . /Users/sanvi/scriptvar
test.sh[2]: .: /Users/sanvi/scriptvar: cannot open [No such file or directory]
Paruls-MacBook-Pro:Downloads sanvi$ vim test
Paruls-MacBook-Pro:Downloads sanvi$ pwd
/Users/sanvi/Downloads
Paruls-MacBook-Pro:Downloads sanvi$ vim test.
test.py test.sh
Paruls-MacBook-Pro:Downloads sanvi$ vim test.
test.py test.sh
Paruls-MacBook-Pro:Downloads sanvi$ vim test.sh
Paruls-MacBook-Pro:Downloads sanvi$ mv test.sh dwh.sh
Paruls-MacBook-Pro:Downloads sanvi$ vim dwh.sh
Paruls-MacBook-Pro:Downloads sanvi$ ksh -x dwh.sh
+ /Users/sanvi '=' /Users/sanvi/Downloads
dwh.sh: line 2: /Users/sanvi: cannot execute [Is a directory]
+ . /Users/sanvi/scriptvar
dwh.sh[3]: .: /Users/sanvi/scriptvar: cannot open [No such file or directory]
Paruls-MacBook-Pro:Downloads sanvi$ vim test.py
Paruls-MacBook-Pro:Downloads sanvi$ vim dwh.sh
Paruls-MacBook-Pro:Downloads sanvi$ vim dwh_exp.sh
Paruls-MacBook-Pro:Downloads sanvi$ vim run_trg_job.sh
Paruls-MacBook-Pro:Downloads sanvi$ vim esp_est_comm_export.sh
Paruls-MacBook-Pro:Downloads sanvi$ vim run_trg_shell.sh
Paruls-MacBook-Pro:Downloads sanvi$ vim taccrev_dwh_exp.sh
Paruls-MacBook-Pro:Downloads sanvi$ ls -tlr
total 1159512
-rw-r--r--@ 1 sanvi staff 15080 Oct 2 2017 epel-release-latest-7.noarch.rpm
-rw-r--r--@ 1 sanvi staff 1173000 Mar 16 18:04 putty.exe
-rw-r--r--@ 1 sanvi staff 1692 Mar 30 17:58 samplekey.pem.txt
-rw-r--r--@ 1 sanvi staff 83214616 Apr 2 11:00 jre-8u211-macosx-x64.dmg
-rw-r--r--@ 1 sanvi staff 20246528 Apr 20 12:02 python-2.7.15.amd64.msi
-rw-r--r--@ 1 sanvi staff 26190920 Apr 20 12:02 python-3.7.3-amd64.exe
-rw-r--r--@ 1 sanvi staff 402779 Apr 30 21:01 30-04-19 Mr.gandhi.pdf
-rw-r--r--@ 1 sanvi staff 15896 Apr 30 21:01 ESTIMATE-Mrs Gandhi.pdf
-rw-r--r--@ 1 sanvi staff 209348 Apr 30 21:02 LAYOUT.pdf
-rw-r--r--@ 1 sanvi staff 43563 May 1 16:46 Resume.doc
-rw-r--r--@ 1 sanvi staff 224146 May 1 16:46 Screenshot_20190413-233509.jpg
-rw-r--r--@ 1 sanvi staff 166957 May 3 09:20 git.pdf
-rw-r--r--@ 1 sanvi staff 5650028 May 3 09:20 AWS Certified Solutions Architect Official Study.pdf
-r--------@ 1 sanvi staff 1696 May 8 09:37 jenkins.pem
-rw-r--r--@ 1 sanvi staff 408524800 May 8 17:20 jdk-8u211-linux-i586.tar
-rw-r--r--@ 1 sanvi staff 9136463 May 9 09:34 apache-maven-3.6.1-bin.tar.gz
-rw-r--r--@ 1 sanvi staff 10489217 May 9 15:01 11621.pdf
drwxr-xr-x 45 sanvi staff 1530 May 17 12:44 ansible
-rw-r--r--@ 1 sanvi staff 454678 May 21 10:37 Report-116197200256_Mrs.PARULGANDHI_15May2019_171054.pdf
-rw-r--r--@ 1 sanvi staff 12114587 May 21 21:35 wordpress-5.2.zip
-rw-r--r--@ 1 sanvi staff 186796 May 28 10:29 456490-ECard.pdf
-rw-r--r--@ 1 sanvi staff 488014 May 29 18:16 5_6226465473999929487.pdf
-rw-r--r--@ 1 sanvi staff 90 May 30 10:39 rootkey.csv
-rw-r--r-- 1 sanvi staff 79 May 31 09:46 test.py
-rw-r--r--@ 1 sanvi staff 139191 Jun 1 22:28 SLA115020058213.pdf
-rw-------@ 1 sanvi staff 131250 Jun 4 10:43 Goibibo.pdf
-rw-r--r--@ 1 sanvi staff 3454914 Jun 17 18:57 IMG_20190617_084947.jpg
-rw-r--r--@ 1 sanvi staff 3846738 Jun 17 18:57 IMG_20190617_084929.jpg
-rw-r--r--@ 1 sanvi staff 3593396 Jun 17 18:57 IMG_20190617_084932.jpg
-rw-r--r--@ 1 sanvi staff 3456242 Jun 17 18:57 IMG_20190617_084946.jpg
-rw-r--r-- 1 sanvi staff 7168 Jun 19 10:06 dwh.sh
-rw-r--r-- 1 sanvi staff 426 Jun 19 10:06 dwh_exp.sh
-rw-r--r-- 1 sanvi staff 1010 Jun 19 10:07 run_trg_job.sh
-rw-r--r-- 1 sanvi staff 5196 Jun 19 10:08 esp_est_comm_export.sh
-rw-r--r-- 1 sanvi staff 1105 Jun 19 10:08 run_trg_shell.sh
-rw-r--r-- 1 sanvi staff 4049 Jun 19 10:11 taccrev_dwh_exp.sh
Paruls-MacBook-Pro:Downloads sanvi$ vim dwh_exp.sh
#!/bin/ksh
. $HOME/scriptvar
ORAINST=$1
SCRIPTNAME=$2
start_tm=$3
end_tm=$4
pln_typ=$5
do_ftp=$6
SCRIPTSDIR=/home/espadmin/esp/scripts/export/dwh
cd $SCRIPTSDIR
. /usr/local/bin/sid $ORAINST
for tm in `./get_tm_prd_nr.sh $ORAINST $start_tm $end_tm`; do cx=`./get_cx.sh $ORAINST $tm`; ver=`./get_ver.sh $ORAINST $tm`; cx_mth=`./get_cx_mth.sh $ORAINST $cx`; ./$SCRIPTNAME $ORAINST $tm $cx $ver $cx_mth $pln_typ $do_ftp; done
~
"dwh_exp.sh" 26L, 426C
clear
vim dwh_exp.sh
ksh -x dwh_exp.sh
mv dwh_exp.sh dwh_exp.ksh
ksh -x dwh_exp.ksh
yum install ksh
ksh -x dwh_exp.ksh
vim test.sh
vlear
clear
vim dwh_exp.ksh
ksh -x dwh_exp.ksh
vim dwh_exp.ksh
ksh -x dwh_exp.ksh
ls -tlr
chmod 777 scriptvar/
rm -f scriptvar/
rm -rf scriptvar/
vim scriptvar
ksh -x dwh_exp.ksh
vim dwh.sh
ksh -x dwh
ksh -x dwh.sh
ksh -x dwh.sh D559 2013 F
ksh -x dwh.sh P559 2013 F
ksh -x dwh.sh P559 2013 T
. /root/scriptvar
ls -tlr
vim scriptvar
. /root/scriptvar
cd /root/esp/scripts/export/dwh/
ls -tlr
vim dwh_exports.maillist
clear
cd /root
ksh -x dwh.sh
ksh -x dwh.sh D559 2013 F
ksh -x dwh.sh D559 2013 "F"
clear
ksh -x dwh.sh D559 2013 True
ksh -x dwh.sh D559 2013 True Development
ksh -x dwh.sh "D559"wq! 2013 True Development
ksh -x dwh.sh "D559" 2013 True Development
ksh -x dwh.sh "D559" 2013 True production
clear
ksh -x dwh_exp.sh D559 TACCREV_dwh_exp.sh 01 12 "01" "True"
pwd
ls -tlr
ksh -x dwh_exp.sh D559 TACCREV_dwh_exp.sh 01 12 "01" "True"
sh -x dwh_exp.sh D559 TACCREV_dwh_exp.sh 01 12 "01" "True"
pwd
ksh -x dwh_exp.ksh D559 TACCREV_dwh_exp.sh 01 12 "01" "True"
vim /usr/local/bin/sid
more /usr/local/bin/sid
ksh -x dwh_exp.ksh D559 TACCREV_dwh_exp.sh 01 12 "01" "True"
ksh -x dwh_exp.sh D559 TACCREV_dwh_exp.sh 01 12 "01" "True"
20301
201301
date +%I:%M%p
date +%A
tm=`date +%I:%M%p`
dyl=`date +%A`
mt=`date +%b`
dy=`date +%d`
yr=`date +%Y`
tm
date +%d
date +%Y
date
ls -tlr
more taccrev_dwh_exp.sh
!
clear
vim run_trg_job.sh
mkdir /home/espadmin/esp/data/espload/stage_imp
mkdir -p /home/espadmin/esp/data/espload/stage_imp
ls -tlr
vim run_trg_job.sh
ksh -x run_trg_job.sh
touch /home/espadmin/esp/scripts/import/alert_on_exit.sh
mkdir -p /home/espadmin/esp/scripts/import/
touch /home/espadmin/esp/scripts/import/alert_on_exit.sh
chmod 777 /home/espadmin/esp/scripts/import/alert_on_exit.sh
ksh -x run_trg_job.sh
vim run_trg_job.sh
ksh -x run_trg_job.sh
vim run_trg_job.sh
mkdir -p ssh -i "jenkins.pem" [email protected]
ls -tlr
mkdir -p /home/espadmin/esp/scripts/export/dwh
ls -tlr
pwd
mkdir scriptvar
pwd
vim test.sh
vim dwh_exp.ksh
ls -tlr
vim dwh.sh
vim taccrev_dwh_exp.sh
ls -tlr
vim dwh.sh
ksh -x dwh.sh
vim dwh.sh
pwd
mkdir -p /root/esp/scripts/export/dwh/
ls -tlr
cd /root/esp/scripts/export/dwh/
ls -tlr
vim dwh_exports.maillist
cd /root/
ls -tlr
vim dwh.sh
ksh -x dwh.sh
ls -tlr
more dwh_exp.ksh
cd /home/espadmin/esp/scripts/export/dwh
touch get_tm_prd_nr.sh
cd -
ls -tlr
chmod 777 get_tm_prd_nr.sh
cd -
vim dwh_exp.ksh
cd -
touch get_cx.sh
touch get_cx_mth.sh
chmod 777 *
cd -
cd . /usr/local/bin/
ls
pwd
cd /usr/local/bin/
ls -tlr
cd sid
ls -tlr
touch 10
chmod 777 10
ls -tlr
cd -
ls -tlr
vim dwh_exp.ksh
vim dwh.sh
ksh -x dwh.sh A559 2013 T
ksh -x dwh.sh A559 2013 T production
vim dwh.sh
ksh -x dwh.sh A559 2013 T production
vim dwh.sh
ksh -x dwh.sh A559 2013 T production
vim dwh.sh
ls -tlr
vim dwh_exp.ksh
vim taccrev_dwh_exp.sh
ls -tlr
pwd
cd /home/espadmin/esp/data/espload/stage_imp
ls -tlr
touch raj.msg
touch manish.msg
chmod 777 *
ls -tlr
vim #!/bin/ksh
cd
vim runshell.sh
vim dwh_exp.ksh cd
cd
ls -tlr
more run_trg_job.sh