-
Notifications
You must be signed in to change notification settings - Fork 0
/
vnd_bash_notes
1806 lines (1806 loc) · 25.1 KB
/
vnd_bash_notes
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
sudo apt-get update
sudo apt-get upgrade
shutdown now
bash <(wget -qO- --no-check-certificate https://raw.githubusercontent.com/davidepatti/noxim/master/other/setup/ubuntu.sh)
cd Documents/
ls
vim ex1.c
sudo apt-get install vim
exit
gcc ex1.c -o test
./test
sudo apt install ibus-unikey
ibus restart
exit
sudo apt-get update
sudo apt-get upgrade
ls
cd Documents/
ls
cd Fpt_interview/
ls
gnome-open
sudo apt install libgnome2-bin
gnome-open %5bFSOFT%5d\ INTERVIEW\ QUESTIONS.PDF
exit
gcc helloc.c -o test
./test
gcc ex3.c -o test
./test
clear
gcc ex3.c -o test
clear
./test
gcc ex3.c -o test
./test
gcc ex3.c -o test
./test
gcc ex3.c -o test
./test
gcc ex3.c -o test
./test
gcc ex3.c -o test
./test
gcc ex3.c -o test
./test
gcc ex3.c -o test
./test
gcc ex3.c -o test
./test
gcc ex3.c -o test
./test
gcc ex3.c -o test
./test
gcc ex3.c -o test
./test
gcc ex3.c -o test
./test
gcc ex3.c -o test
./test
gcc ex3.c -o test
./test
gcc ex3.c -o test
./test
gcc ex3.c -o test
./test
ls
gcc ex3.c -o test
./test
sudo apt-get update
sudo apt-get upgrade
ls
clear
gcc ex4.c -o test
./test
gcc ex4.c -o test
./test
gcc ex4.c -o test
./test
gcc ex4.c -o test
exit
gno
gnome-open Documents/Fpt_interview/%
gnome-open Documents/Fpt_interview/%5bFSOFT%5d\ INTERVIEW\ QUESTIONS.PDF
cd Documents/Fpt_interview/
ls
vim helloc.c
vim ex3.c
vim helloc.c
vim ex4.c
exit
shutdown now
exit
ls
gpp ex4.c -o test
g++ ex4.c -o test
vim pointers_in_c_v1.c
vim test.c
ls
exit
gcc pointers_in_c_v1.c -o test
./test
gcc pointers_in_c_v1.c -o test
./test
gcc test.c -o test
./test
gcc test.c -o test
./test
exit
ls
cd Documents/Fpt_interview/
ls
gnome-open %5bFSOFT%5d\ INTERVIEW\ QUESTIONS.PDF
ls
vim ex4.c
exit
apt update
apt-get update
sudo apt update
sudo apt-get update
sudo apt-get upgrade
cd Documents/Fpt_interview/
ls
vim test
vim test.c
exit
gcc test.c -o test
./test
gcc test.c -o test
./test
gcc test.c -o test
./test
gcc test.c -o test
./test
exit
sudo apt-get update
sudo apt-get upgrade
ls
cd noxim/
ls
cd bin/
ls
./noxim
ls
cp ~/noxim/config_examples/*.yaml ~/noxim/bin/
./noxim -config default_config.yaml
ls
cd..
ls
cd ..
ls
cd src/
ls
vim Main.cpp
exit
gcc amux.c -o test
/tmp/
./test
exit
vim hellocpp.cpp
vim amux.c
exit
g++ hellocpp.cpp -o test
./test
g++ hellocpp.cpp -o test
./test
g++ hellocpp.cpp -o test
gcc amux.c -o test
./test
gcc amux.c -o test
./test
gcc amux.c -o test
./test
gcc amux.c -o test
./test
gcc amux.c -o test
./test
gcc amux.c -o test
./test
gcc amux.c -o test
exit
gcc ex5.c -o test
./test
gcc ex5.c -o test
ls
vim ex6.c
ls
vim ex6.c
exit
ls
cd Documents/Fpt_interview/
ls
vim ex5.c
vim ex6.c
ls
gcc ex6.c -o test
./test
gcc ex7.c -o test
./test
vim ex8.c
vim ex9.c
vim ex10.c
vim ex11.c
vim ex12.c
vim ex13.c
vim ex14.c
vim ex15.c
vim ex16.c
vim ex17.c
vim ex18.c
exit
cd Documents/Fpt_interview/
ls
vim ex6.c
ls
vim ex6.c
vim ex7.c
gcc ex10.c -o test
./test
gcc ex13.c -o test
./test
gcc ex13.c -o test
./test
gcc ex13.c -o test
./test
gcc ex14.c -o test
./test
gcc ex14.c -o test
./test
gcc ex16.c -o test
./test
gcc ex16.c -o test
./test
gcc ex17.c -o test
./test
gcc ex17.c -o test
./test
exit
gnome-open Documents/Fpt_interview/%5bFSOFT%5d\ INTERVIEW\ QUESTIONS.PDF `
gnome-open Documents/Fpt_interview/%5bFSOFT%5d\ INTERVIEW\ QUESTIONS.PDF
ls
cd Documents/Fpt_interview/
ls
vim ex18.c
vim ex19.c
vim ex20.c
vim ex21.c
vim Q&A.c
vim QandA.c
exit
gcc ex18.c -o test
./test
gcc ex18.c -o test
./test
gcc ex18.c -o test
./test
gcc ex18.c -o test
./test
ls
gcc ex19.c -o test
exit
ls
ping google.com.vn
ping 10.10.128.33
exit
gcc --version
sudo apt-get install gcc-4.9 g++-4.9
alias gcc gcc-4.9
alias gcc=gcc-4.9
alias gcc=gcc-4.8
alias g++=g++-4.8
C
cd Downloads/
cd
mkdir crosscompiler
cd crosscompiler/
cp /home/vnd2586/Downloads/scriptinstallmipselcrosscompiler/install_mipsel-unknown-elf.sh .
ls
chmod +x install_mipsel-unknown-elf.sh
./install_mipsel-unknown-elf.sh
sudo update-alternatives --remove-all gcc
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 10
sudo update-alternatives --config gcc
gcc -version
gcc --version
ls
vim install_mipsel-unknown-elf.sh
./install_mipsel-unknown-elf.sh
sudo apt-get install gmp
gcc -v
gcc -v | grep gmp
gcc -v >> test.md
vim test.md
cat gcc -v >> test.md
gcc -v | cat >> test.md
ls
vim test.md
gcc -v > test.md
vim test.md
gcc -v
c
clear
gcc -v | cat
ls
vim install_mipsel-unknown-elf.sh
c
clear
sudo update-alternatives --remove-all gcc
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 10
ls
./install_mipsel-unknown-elf.sh
sudo update-alternatives --remove-all gcc
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 10
ls
sudo apt-get remove gcc-4.8
sudo apt-get install gcc-4.9
sudo update-alternatives --remove-all gcc
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 10
./install_mipsel-unknown-elf.sh
find /usr/ -name *libmpc*
sudo apt-get install libmpc-dev
./configure
./install_mipsel-unknown-elf.sh
ls
cd mipsel/bin/
ls
./mipsel-unknown-elf-gcc-4.8.0
ls
cd ..
ls
cd ..
ls
vim install_mipsel-unknown-elf.sh
ls
cd mipsel/
ls
cd src/
ls
cd ../build/
ls
cd ..
ls
cd bin/
ls
cd ../../
ls
vim install_mipsel-unknown-elf.sh
./install_mipsel-unknown-elf.sh
history
ls
cd mipsel/bin/
./mipsel-unknown-elf-gcc
ls
./mipsel-unknown-elf-addr2line
ls
cd ..
ls
cd build/
ls
ẽit
exit
cd /etc/cups
ls
vim client.conf
ls
sudo vim client.conf
ls
exit
shutdown now
im-config -n fcitx
reboot
shutdown now
reboot
shutdown now
ping 10.10.128.33
ls
smb://10.10.128.33
ssh namdv@10.10.128.33
ls
cd Documents/
ls
cd LabSIS_schedules/
ls
cd ~/Documents/Fpt_interview/
ls
gnome-open %5bFSOFT%5d\ INTERVIEW\ QUESTIONS.PDF
ls
exit
cd Documents/
ls
cd
cd Downloads/
ls
chmod +x ModelSimSetup-16.1.0.196-linux.run
./ModelSimSetup-16.1.0.196-linux.run
sudo ./ModelSimSetup-16.1.0.196-linux.run
./ModelSimSetup-16.1.0.196-linux.run
ls
chmod +x ModelSimSetup-16.1.0.196-linux.run
./ModelSimSetup-16.1.0.196-linux.run
exit
uptime
whoami
exit
lsb_release -a
cd noxim/
ls
cd bin/
ls
./noxim -config default_config.yaml
exit
shutdown now
ls
cd noxim/bin/
ls
./noxim -config default_config.yaml
ls
cd ...
ls
cd ..
ls
cd src/
ls
vim amux.c
vim TokenRing.cpp
exit
shutdown now
./test
exit
./test
exit
cd Downloads/
ls
g++ feck.cpp -o test
./test
vim feck.cpp
exit
vim .vimrc
exit
vim test.c
:q
vim .vimrc
exit
ls
cd ..
ls
cd bundle/
ls
cd vim-snippets/
ls
c
ls
cd UltiSnips/
ls
vim cpp.snippets
update
upgrade
sudo apt-get upgrade
exit
ls
cd .vim/
ls
cd script/
ls
vim hdl.vim
vim test.c
cd he
cd ../header/
ls
cd
ls
cd .vim/
ls
ls -la
cd
ls -la
cd .vim/
ls
cd
vim .vim
c
cd
vim .bashrc
c
vim test.cpp
cd .vim/
ls
cd header/
ls
vim _.cpp
vim test.cpp
ls
vim namcauhinh.abc
vim _.c
ls -la
vim _.vhd
vim hellocpp.cpp
ls
vim _.
ls
cd
ls
ls -la
vim .bashrc
exit
ls
c
clear
ls
rm examples.desktop
c
cd Downloads/
ls
cd
c
mkdir Repo
cd Repo/
ls
git clone https://yoloh3.github.io/Linux
git clone https://github.com/yoloh3/Linux
cd Linux/
ls
vim README.md
c
mkdir ~/.vimrc
cp vim/* ~/.vimrc/
cp -R vim/* ~/.vimrc/
cp bash/.bashrc ~/.bashrc
c
cd
ls
mkdir .vim
mv .vimrc/* .vim/
rm -rf .vimrc/
ls
cp Repo/Linux/vim/.vimrc .
c
vim .vimrc
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
vim .vimrc
exit
ls
cd
ls
c
cd
ls
rm -rf .vim
ls
rm .vimrc
ls
rm -rf ~/.vim
rm -rf ~/.vimrc
cd Repo/Linux/
git update
git pull
ls
vim install_vim.sh
chmod u+x install_vim.sh
vim install_vim.sh
./install_vim.sh
ls
vim install_vim.sh
ls
vim install_vim.sh
./install_vim.sh
ls
vim install_vim.sh
./install_vim.sh
ls
vim install_vim.sh
./install_vim.sh
vim install_vim.sh
./install_vim.sh
ls
vim ~/.vimrc
ls
./install_vim.sh
ls
vim install_vim.sh
c
ls
vim install_vim.sh
git status
git checkout vim/.vimrc
ls
./install_vim.sh
vim ~/.vimrc
ls
cd
ls
cd -
ls
vim install_vim.sh
ls
cd
ls
vim .vimrc
cd .vim/
ls
cd
ls
vim linkh3.sh
exit
sudo apt-get install texlive-full
ls
vim /etc/exit
exit
man
help
man for
help for
ls
exit
vim namdtest.cpp
cd
cd .vim/
ls
cd header/
ls
vim _.cpp
vim namtest.cpp
c
adf
adsf;a
c
cd
ls
ls -la
exit
cd Downloads/
ls
vim feck.cpp
exit
vim .bashrc
exit
update
exit
xxx
ls
cd Documents/algorithms\ for\ vnd/
exit
cd
cd Documents/
ls
cd LabSIS_schedules/
ls
cd ..
cd CProgramming/
ls
cd cprogrammingvndes/
ls
vim randomnumgen.c
vim enterarray.c
vim gen1000elemrandnum.c
:q
exit
gcc randomnumgen.c -o test
./test
c
gcc randomnumgen.c -o test
./test
gcc randomnumgen.c -o test
./test
gcc randomnumgen.c -o test
./test
c
gcc enterarray.c -o test
./test
gcc enterarray.c -o test
./test
gcc gen1000elemrandnum.c -o test
./test
gcc gen1000elemrandnum.c -o test
./test
gcc gen1000elemrandnum.c -o test
./test
gcc gen1000elemrandnum.c -o test
./test
gcc gen1000elemrandnum.c -o test
c
gcc gen1000elemrandnum.c -o test
./test
c
exit
cd noxim/bin/
./noxim -config default_config.yaml
ls
cd
ls
ls -la
cd .vim/
ls
vim REAME.md
c
ls
c
cd after/
ls
cd syntax/
ls
vim cpp.vim
c
cd
cd .vim/
ls
cd doc/
ls
ls -la
..
cd ..
ls
vim script/tex.vim
c
cd script/
ls
vim code_style.vim
exit
xxx
ls
ls -la
c
update
sudo apt-get upgrade
exit
cd Downloads/
ls
chmod +x ModelSimSetup-16.1.0.196-linux.run
./ModelSimSetup-16.1.0.196-linux.run
ls
./ModelSimSetup-16.1.0.196-linux.run
sudo ./ModelSimSetup-16.1.0.196-linux.run
./ModelSimSetup-16.1.0.196-linux.run
sudo apt install binfmt-support qemu qemu-user-static
./ModelSimSetup-16.1.0.196-linux.run
exit
cd
ls
cd Documents/
ls
gnome-open algorithms\ for\ vnd/
sudo apt install binfmt-support qemu qemu-user-static
sudo apt autoremove
sudo apt-get upgrade
sudo apt-get update
sudo apt-get upgrade
ls
cd Documents/
ls
cd ../
cd Downloads/
ls
chmod +x ModelSimSetup-16.1.0.196-linux.run
./ModelSimSetup-16.1.0.196-linux.run
c
clear
/bin/ls -l $(/usr/bin/which ls)
/bin/ls: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux
/bin/ls: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=eca98eeadafddff44caf37ae3d4b227132861218, stripped
/bin/ls: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=eca98eeadafddff44caf37ae3d4b227132861218
/usr/bin/file -L $(/usr/bin/which ls)
/bin/ls -l $(/usr/bin/which ls)
exit
ls
cd noxim/bin/
ls
make
./noxim -config default_config.yaml
make
./noxim -config default_config.yaml
./noxim
ls
vim Makefile.deps
make
vim Makefile
ls
vim ~/noxim/src/Main.cpp
vim ~/noxim/src/Stats.cpp
vim ~/noxim/src/GlobalStats.cpp
make
./noxim
rm noxim
ls
cd ..
ls
cd bin/
ls
./rm noxim
rm noxim
sudo rm noxim
ls
make
./noxim -config default_config.yaml
rm noxim
ls
make
./noxim
exit
shutdown now
bash <(wget -q0- --no-check-certificate https://raw.githubusercontent.com/davidepatti/noxim/master/other/setup/ubuntu.sh)
bash <(wget -qO- --no-check-certificate https://raw.githubusercontent.com/davidepatti/noxim/master/other/setup/ubuntu.sh)
ls
cd noxim/
ls
cd bin/
ls
./noxim
exit
ls
rm noxim/
sudo rm noxim/
rm -r noxim/
ls
man rm
ls
man help
exit
ls
cd ..
cd
vim ~/noxim/src/routingAlgorithms/RoutingAlgorithms.cpp
exit
ls
rm -f noxim/
rm -r noxim/
ls
rm -r noxim/
ls
rm noxim/
ls
ls noxim/bin/
cd noxim/
ls
cd bin/
ls
./noxim
rm noxim
ls
rm -f noxim
ls
make
ls
./noxim
rm -f noxim o
ls
make
./noxim -config default_config.yaml
rm noxim
ls
rm -f noxim
ls
cd
ls
c
bash <(wget -qO- --no-check-certificate https://raw.githubusercontent.com/davidepatti/noxim/master/other/setup/ubuntu.sh)
ls
cd noxim/
ls
cd bin/
ls
./noxim
./noxim -config power.yaml
cp ~/noxim/config_examples/*.yaml .
ls
./noxim -config default_config.yaml
c
ls
c
./noxim -config default_config.yaml
exit
ls
cd Documents/algorithms\ for\ vnd/
ls
ls -a
cd
ls
vim linkh3.sh
ls
c
ls
exit
ping 10.10.128.33
exit
shutodown now
shudown now
shutdown now
gcc test.c -o test
./test
ls
c
exit
gcc gen1000elemrandnum.c -o test
./test
vim test.c
exit
ls
cd Documents/
ls
cd CProgramming/
ls
cd cprogrammingvndes/
ls
gcc randomnumgen.c -o test
./test
gcc gen1000elemrandnum.c -o test
./test
c
ls
vim gen1000elemrandnum.c
exit
shutdown now
gnome-open ~/Documents/CProgramming/\(11+25\ hay\)\ KNKing.Native_C_Programming_A_Modern_Approach_2nd_Edition.pdf
EXIT
exit
ls
cd Downloads/cprogrammingvndes/
ls
vim compiler_help
ls
c
ls
c
rm _helloWorld.c.swp
ls
rm -r _helloWorld.c.swp
ls
c
rm -f _helloWorld.c.swp
ls
clear
ls
vim ex1.cpp
ls
vim ex2.cpp
vim sort_arr.cpp
vim ex2.cpp
vim sort_arr.cpp
vim ex2.cpp
exit
ls
g++ ex1.cpp -o test
./test
g++ ex1.cpp -o test
./test
g++ ex1.cpp -o test
./test
g++ ex1.cpp -o test
clear
g++ ex1.cpp -o test
./test
g++ ex1.cpp -o test
./test
g++ ex1.cpp -o test
./test
g++ ex1.cpp -o test
./test
g++ ex1.cpp -o test
./test
g++ ex1.cpp -o test
./test
c
g++ ex2.cpp -o test
./test
g++ ex2.cpp -o test
./test
g++ ex2.cpp -o test
./test
g++ ex2.cpp -o test
./test
g++ ex2.cpp -o test
ls
vim sort_arr.cpp
g++ sort_arr.cpp -o test
./test
g++ sort_arr.cpp -o test
./test
g++ sort_arr.cpp -o test
./test
ls
ls -a
ls -la
g++ sort_arr.cpp -o test
./test
clear
ls
gcc ex2.cpp -o test
g++ ex2.cpp -o test
./test
exit
shutdown now
cd
ls
cd noxim/
ls
~/ .git/
ls
cd
exit
ls
cd noxim/
ls