-
Notifications
You must be signed in to change notification settings - Fork 1
/
.bash_history
1000 lines (996 loc) · 14 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
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
./c
vim a
./s
ls
cd netProgram/
./s
ls
vim simple_server.c
make
vim simple_server.c
./simple_server
vim simple_server.c
make
./simple_server
vim simple_server
vim simple_server.c
vim common.h
cd netProgram/
ls
netstat -tunp
nc 127.0.0.1 80
nc 127.0.0.1 22
1
./s
vim s.c
tcpdump -i any tcp port 10000
sudo tcpdump -i any tcp port 10000
sudo tcpdump -i any -n tcp port 10000
sudo tcpdump -i any -nn tcp port 10000
./c
ls
cd net
cd netProgram/
ls
./c
nc 127.0.0.1 6666
./c
nc 127.0.0.1 8887
./c
nc 127.0.0.1 8887
nc 127.0.0.1 10000
nc 127.0.0.1 10000.
nc 127.0.0.1 10000
4
nc 127.0.0.1 10000
4
nc 127.0.0.1 10000
./simple_client
cd netProgram/
netstat -tunlp
netstat -tnp
netstat -tn;p
netstat -tnlp
netstat -tnp
netstat -tnlp
netstat -tnp
netstat -tnlp
netstat -tnp
netstat -t
netstat -t
netstat -tb
netstat -tn
cd netProgram/
;s
ls
vim simple_client.c
;s
ls
vim common.h
ls
make
./simple_server
vim simple_server.c
make
./simple_server
vim simple_server.c
vim simple_client.c
make
./simple_server
vim simple_server.c
make
./simple_server
vim simple_server.c
make
./simple_server
ls
vim simple_server.c
make
vim simple_server.c
make
./simple_server
vim simple_server.c
make
./simple_server
vim simple_server.c
make
./simple_server
vim simple_server.c
make
./simple_server
vim simple_server.c
./simple_server
make
./simple_
./simple_server
vim simple_server.c
sudo reboot
nc 127.0.0.1 10000
netstat -tnp
netstat -tn
cd netProgram/
ls
vim makefile
ls
cd simple_demo/
;s
ls
./client
vim client.c
make
ls
vim server.c
make
vim server.c
make
cd ..
ls
mv simple_demo/ simple_net_demo
ls
vim simple_net_demo
ls
cd simple_net_demo
ls
vim server.c
make
./server
vim server.c
make
ls
vim makefile
make clean
ls
make
ls
make clean
cd ..
ls
vim simple_select.c
vim simple_server.c
make
vim simple_server
vim simple_server.c
make
gcc simple_server.c
vim simple_server.c
nc 127.0.0.1 10000
cd netProgram/
./simple_client
vim simple_client
mv simple_client_bak
cp simple_client simple_client_bak
vim simple_client
rm simple_client_bak
cp simple_client.c simple_client_bak
ls
vim simple_client.c
ls
vim simple_client.c
vim simple_server.c
ls
vim common.c
ls
vim common.c
ls
vim common.c
mkdir simple_demo
mv common.* simple_demo/
ls
cp simple_client.c simple_server.c simple_demo/
cd simple_demo/
ls
mv simple_client.c client.c
mv simple_server.c server.c
ls
vim client.c
vim makefile
make
vim common.c
vim client.c
vim server.c
make
ls
./server
ls
vim server.c
./simple_server
cd netProgram/
./simple_server
vim simple_server.c
make
./simple_server
vim simple_server
vim simple_server.c
make
vim simple_server.c
make
./simple_server
vim simple_server.c
make
./simple_server
ls
./simple_server
nc 127.0.0.1 10000
1
nc 127.0.0.1 10000
man epoll_wait
cd netProgram/
cd simple_net_demo/
ls
./client
nc 127.0.0.1 10000
ls
cat client.c
nc 127.0.0.1 10000
nc 127.0.0.1
nc 127.0.0.1 10000
man epoll_ctl
nc 127.0.0.1 10000
sudo reboot
cd net
cd netProgram/
ls
vim simple_server.c
make
vim simple_server.c
make
vim simple_server.c
gcc simple_server.c
vim simple_server.c
gcc simple_server.c
vim 1.c
gcc 1.c
vim 1.c
g++ simple_server.c
vim 1.c
g++ 1.c
vim 1.c
vim simple_server.c
g++ simple_server.c
gcc simple_server.c
g++ simple_server.c
vim simple_server.c
gcc simple_server.c
g++ simple_server.c
man socklen_t
ls
vim simple_server.c
cd simple_net_demo/
ls
vim common.c
vim server.c
make
./server
cd ..
cd simple_net_demo/
ls
gcc server.c
g++ server.c common.c
g++ client.c common.c
l;s
vim makefile
make
vim makefile
make
./server
ls
cd ..
ls
vim simple_server.c
g++ simple_server.c
vim simple_server.c
g++ simple_server.c
vim simple_server.c
g++ simple_server.c
vim simple_server.c
g++ simple_server.c
vim simple_server.c
g++ simple_server.c
vim simple_server.c
g++ simple_server.c
vim simple_server.c
g++ simple_server.c
vim simple_server.c
g++ simple_server.c
vim simple_server.c
g++ simple_server.c
;s
ls
./a.out
vim simple_server.c
./a.out
g++ simple_server.c
vim simple_server.c
g++ simple_server.c
./a.out
vim simple_server.c
g++ simple_server.c -o server
./server
vim simple_server.c
g++ simple_server.c -o server
./server
vim simple_server.c
g++ simple_server.c -o server
./s
./server
vim simple_server.c
g++ simple_server.c -o server
vim simple_server.c
g++ simple_server.c -o server
vim simple_server.c
g++ simple_server.c -o server
./server
vim simple_server.c
./server
vim simple_server.c
g++ simple_server.c -o server
./server
g++ simple_server.c -o server
vim simple_server.c
g++ simple_server.c -o server
vim simple_server.c
g++ simple_server.c -o server
./server
vim simple_server.c
g++ simple_server.c -o server
./server
vim simple_server.c
./server
vim simple_server.c
./server
vim simple_server.c
g++ simple_server.c -o server
vim simple_server.c
g++ simple_server.c -o server
./ser
./server
vim simple_server.c
g++ simple_server.c -o server
vim simple_server.c
g++ simple_server.c -o server
./server
vim simple_server.c
./server
g++ simple_server.c -o server
./server
vim simple_server.c
g++ simple_server.c -o server
./server
g++ simple_server.c -o server
./server
netstet -tunp
netstet -tup
netstet -tm
netstat -tn
netstet -tm
netstat -tn
g++ simple_server.c -o server
./server
vim simple_server.c
g++ simple_server.c -o server
vim simple_server.c
g++ simple_server.c -o server
./
./server
vim simple_server.c
g++ simple_server.c -o server
./server
vim simple_server.c
g++ simple_server.c -o server
./server
vim simple_server.c
g++ simple_server.c -o server
./server
g++ simple_server.c -o server
./server
vim simple_server.c
g++ simple_server.c -o server
./server
vim simple_server.c
g++ simple_server.c -o server
./server
vim simple_server.c
ls
lsb_release
lsb_release -a
uname -a
cd netProgram/
ls
vim simple_server.c
g++ simple_server.c -o server
./server
vim simple_server.c
g++ simple_server.c -o server
./server
vim simple_server.c
g++ simple_server.c -o server
./server
vim simple_server.c
:q:q
nc 127.0.0.1 10000
ls
top
ls
git init
git branch
git branch -r
git remote
git remote orgin
git remote -v orgin
git remote -v
git remote rm orgin
git remote rm origin
dir
git remote
git remote -v
git branch
git branch -r
git remote branch
git branch -a
git branch --help
git merge
git merge --help
ls
mkdir gittest
cd gittest/
ls
git init
git branch
类似-a
ls =a
ls -a
echo "firt file">>test.c
vim test.c
git status
git branch
git branchs
git branch -a
git add test.c
git status
git commit -m "第一个文件"
git status
git branch
git status\
git status
vim test.c
git status
git add test.c
git commit -m "第二次master提交"
log
git log
git reflog
git branch dev
git branch idea
git branch
git checkout dev
vim test.c
git checkout idea
vim test.c
git checkout dev
vim test.c
git status
git add test.c
git commit -m "dev add line"
git status
git reflog
git log
git status
git checkout idea
vim test.c
git status
git add test.c
git commit -m "idea add onel line"
git status
git branch
git merge defv
git merge dev
ls
vim test.c
git merge dev
vim test.c
git add test.c
git commit -m "process dev and idea conflict"
git status
git branch
git merge dev
git status
cd ..
ks
ls
git status
git add .
git status
git remote
git commit -m "first commit all files."
git status
ls
rm a.out
git status
git remote add origin https://github.com/dandanlinpu/aliyun.git
git status
git rm 1.txt 2.txt a.out netProgram/client.c
git status
git commit -m "not important"
git status
git remote
git remote -a
git remote -v
git branch -r
git branch -a
git push origin master
git branch dev
git checkout dev
status
git status
cd gittest/
dir
git status
git branch
git log
git merge dev
git status
git branch
cat test.c
vim test.c
git add test.c
git commit -m "dev"
git status
git branch
vim test.c
git status
git add test.c
git commit -m "on idea"
git checkout dev
vim test.c
git checkout idea
cat test.c
git checkout dev
cat test.c
git merge idea
cat test.c
git branch
vim test.c
git status
git add test.c
git commit -m "dd"
git sta
git branch
git merge idea
git status
cat test.c
git branch idea
git checkout idea
git sta
git branch idea
git checkout idea
vim test.c
git add test.c
git commit -m "idea things"
git log
git sta
git status
git checkout dev
cat test.c
git merge idea
cd ..
git status
cd netProgram/
dir
git status
dir
ls
vim simple_server.c
g++ simple_server.c -o server
./server
vim simple_server.c
git push origin master
git status
git add simple_server.c
git commit -m "no important"
git push origin master
vim simple_server.c
git status
git remote -a
git remote -v
vim simple_server.c
git branch
git branch master
ls
vim simple_server.c
git checkout master
git status
vim simple_server.c
git merge dev
vim simple_server.c
git status
git branch -d dev
git staus
git status
git push origin master
ls
git status
git branch
git simple_net_demo/
ls
cd simple_net_demo/
ls
vim makefile
make
make clean
rm a.out
ls
vim common.c
mc common.c sock_common.c
mv common.c sock_common.c
mv common.h sock_common.h
ls
make
vim client.c
vim client.h
vim server.c
make
vim makefile
make
vim sock_common.c
make
./server
vim makefile
make
./server
./client
tcpdump -i any tcp dump 1000
tcpdump -i any tcp dump 10000
sudo tcpdump -i any tcp dump 10000
sudo tcpdump -i any tcp port 10000
cd gittest/
git status
git checkout idea
nc 127.0.0.1 10000
ls
cd ..
ls
cd netProgram/simple_net_demo/
./client
vim makefile
ks
ls
vim sock_common.c
ls
make
./server
ls
cd ..
git commit -a -m "simple_net_demo: add fcntl error process"
git push origin master
git remote -v
git remote rm origin
git status
git remote
git remote add [email protected]:dandanlinpu/aliyun.git
git remote add origin [email protected]:dandanlinpu/aliyun.git
git status
git remote
git remote -v
git push origin master
cd ..
ls
cd netProgram/
ls
cd simple_net_demo/
l;s
ls
git status
git commit -a "simple_net_demo change filename common.h/c to sock_common.h/c "
git commit -a -m "simple_net_demo change filename common.h/c to sock_common.h/c "
git push
git push origin master
ls
git status
ls
git status
git commit -a "all update"
git commit -a -m "all update"
git push origin master
ls
rm gittest/
rm -rf gittest/
rm -rf zaver/
git commit -a -m "update all"
git push origin master
ls
git status
git add netProgram/simple_net_demo/sock_common.c
git add netProgram/simple_net_demo/sock_common.h
git commit -m "update all"
git push origin master
ls
cd netProgram/
ls
vim simple_server.c
vim rio.c
nc 127.0.0.1 1000
nc 127.0.0.1 10000
vim rio.c
nc 127.0.0.1 10000
netstat
nc 127.0.0.1 10000
nc 127.0.0.1 10000.
nc 127.0.0.1 10000
nc 127.0.0.1 10000.
6
nc 127.0.0.1 10000.
ls
cd netProgram/
ls
vim rio.c
gcc rio.c
vim rio.c
gcc rio.c
gcc -E rio.c
ls
gcc -S rio.c
ls
gcc -c rio.c
ls
vim simple_server.c
vim rio.c
mkdir simple_epoll_demo
cp simple_server.c simple_epoll_demo/
cp makefile simple_epoll_demo/
cd simple_epoll_demo/
ls
vim makefile
vim simple_server.c
make
vim makefile
make
./ser
./simple_server
vim simple_server.c
./ser
make
vim simple_server.c
make
ls
./simple_server
vim simple_server.c
make
cd ..
ls
vim simple_server.c
vim rio.c
make
./server
rm simple_client simple_server server
ls
rm c
rm s
make
ls
./simple_server
netstat -tunp
ls
./simple_server
vim rio.c
./simple_server
netstat
netstat -tun
./simple_server
vim rio.c
make
./simple_server
vim rio.c
make
./simple_server
vim rio.c
make
./simple_server
877777777+
45555555
vim rio.c
make
./simple_server
ls
vim simple_server.c
vim rio.c
make
./simple_server
ls
vim rio.c rio.h
cd simple_epoll_demo/
ls
cd ..
./simple_server
vim rioc
:q
vim rio.c
./simple_server
vim rio.c
tcpdump -i any -nn tcp port 10000
sudo tcpdump -i any -nn tcp port 10000
cd ..
ls
cd netProgram/
;s
ls
mv simple_epoll_demo_1/ simple_epoll_demo1
ls
git commit -a -m "simple_epoll_demo1"
git status
git add simple_epoll_demo1/
git commit -m "epoll_demo1"
git status
rm rio.o
git status
git push origin master
ls
nc 127.0.0.1 10000
cd netProgram/
ls
vim simple_server.c
vim rio.h
gcc -c rio.c
g++ -c rio.c
vim simple_server.c
vim rio.c
vim makefile
make
./simple_server
vim rio.c
./simple_server
cd simple_epoll_demo/
ls
./simple_server
./simple_server .
netstat -tun
./simple_server
cd ..
vim rio.c
vim simple_server.c
make
cd ..
git branch
git remote -v
git push origin master
git status
git commit -a "add rio_c"
git commit -a -m "add rio_c"
git status
git add netProgram/rio.c netProgram/rio.h netProgram/rio.s netProgram/simple_epoll_demo/
git commit -m "rio"
git status
git push origin master
make
ls
cd netProgram/
./simple_server
git status
tcpdump -i any tcp port 10000
sudo tcpdump -i any tcp port 10000
nc 127.0.0.1 1000
netstat -tunp
nc 127.0.0.1 1000
nc 127.0.0.1 10000
mkdir online_matrix_calc
cp simple_epoll_demo1/* online_matrix_calc/
cd online_matrix_calc/
;s
ls
vim simple_server.c
cd ..
ls
cd simple_epoll_demo1
ls
vim simple_server.c
make
./simple_server
make
./simple_server
./simple_server .
./simple_server
cd netProgram/simple_epoll_demo/
l;s
vim simple_server.c
./simple_server
cd ..
./simple_server
vim rio.c
./simple_server
make
./simple_server
make
vim simple_server.c
vim rio.c
make
./simple_server
vim simple_server.c
make
./simple_server
vim simple_server.c
make
./simple_server.c
./simple_server
ls
mkdir simple_epoll_demo_1
cp simple_server.c rio.h rio.c simple_epoll_demo_1/
cd simple_epoll_demo_1
ls
cp ../makefile .
ls
vim makefile
make
vim makefile
make
ls
./simple_server
nc 127.0.0.1 10000
ls
vim simple_server.c
make
./simple_server
ls
vim simple_server.c
cd ..
l;s
ls
cp simple_net_demo/sock_common.* simple_epoll_demo1
cd simple_epoll_demo1
ls
vim simple_server.c
vim makefile
make
vim makefile
vim simple_server.c
vim makefile
make
ls
./simple_server
vim simple_server.c
make
./simple_server
ccls
ls
cd ..
ls
cd simple_epoll_demo
ls
cd ..
cd simple_epoll_demo
ls
rm *
ls
cd ..
cp simple_epoll_demo1/* simple_epoll_demo
ls
cd simple_epoll_demo
ls
./simple_server
cd ..
cd simple_epoll_demo1
ls
cd ..
ls
cp simple_epoll_demo1/* online_matrix_calc/
cd online_matrix_calc/
ls
touch sz
rz
ls
rm sz
ls
vim index.html
touch http_server.c
touch http_server.h
vim http_server.c
vim http_server.h
ls
cd netProgram/
ls
cd simple_epoll_demo
ls
vim sock_common.c
man mmap
man open
man mmap
man opn
man open