-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmycoomands.txt
2022 lines (2022 loc) · 56.3 KB
/
mycoomands.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
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
1 passwd
2 exit
3 ls
4 ll
5 exit
6 ls
7 exit
8 cat /etc/passwd
9 cat /etc/passwd | vm
10 cat /etc/passwd vm
11 cat /etc/passwd | grep vm
12 go
13 python
14 ls
15 exit
16 passwd
17 exit
18 getenforce
19 ll -Z /etc/shadow
20 restorecon /etc/shadow
21 ll -Z /etc/shadow
22 setenforce 1
23 getenforce
24 exit
25 ls
26 exit
27 ls
28 htop
29 top
30 vim
31 pwd
32 cd ..
33 ls
34 cd home/
35 ll
36 useradd radi
37 ls
38 sudo passwd radi
39 su - radi
40 exit
41 ls
42 visudo
43 vim /etc/sudoers
44 cat /etc/sudoers.d/
45 adduser radi sudo
46 sudo adduser radi sudo
47 sudo usermod -a -G sudo radi
48 vim /etc/sudoers
49 ls
50 cd /etc/
51 ls
52 vim sudo.conf
53 vim /etc/sudoers
54 chmod 600 /etc/sudoers
55 vim /etc/sudoers
56 source /etc/sudoers
57 vim /etc/sudoers
58 su - radi
59 exit
60 cd ../home/
61 ls
62 chgrp -R sharegrp shared/
63 ll
64 chmod g+s shared/
65 cd shared/
66 touch test
67 ll
68 exit
69 su - sarah
70 history
71 history 1000
72 cho $HISTSEdsfsd
73 echo $HISTSIZE
74 history | grep group
75 history | +
76 history | grep +
77 history | gre +
78 ls
79 exit
80 passwd sarah
81 usermod sarah -a -G sharegrp
82 groups sarah
83 useradd harry
84 passwd harry
85 groupmod -a -U harry sharegrp
86 groups harry
87 gropus --version
88 groups --version
89 groups harry
90 grep sharegrp /etc/group
91 useradd -M georgo
92 usermod -L georgo
93 passwd georgo
94 su - georgo
95 usermod -r -s /bin/nologin georgo
96 userdel georgo
97 adduser -r -s /bin/nologin georgo
98 adduser -r -s /sbin/nologin georgo
99 userdel -r georgo
100 adduser -r -s /sbin/nologin georgo
101 passwd georgo
102 su - georgo
103 ls
104 cd ..
105 ls
106 cd home/
107 ls
108 mkdir shared
109 ll
110 chgrp sharegrp -r shared
111 chown sharegrp:sharegrp -r shared
112 chown sharegrp:sharegrp -r shared
113 chown *:sharegrp -r shared
114 history | grep chown
115 history | grep chmod
116 chown sharegrp:root shared/
117 chown root:sharegrp shared/
118 cd shared/
119 touch test
120 ll
121 rm test
122 cd ..
123 ls
124 chown root:sharegrp -r shared/
125 chown -r root:sharegrp shared/
126 ll
127 chmod 770 shared/
128 ll
129 cd shared/
130 cd ..
131 ls
132 su - talusan
133 exit
134 cd /usr/share/
135 ls
136 cd dict/
137 ls
138 cat linux.words
139 ls
140 cd wo
141 cat words
142 cat words | grep virus
143 cat words | grep virus >> lines
144 cat lines
145 vim lines
146 mv lines ~
147 cd
148 ll
149 cat lines
150 cd /usr/share/dict/
151 ls
152 cat words
153 cat words | grpe virus
154 cat words | grep virus
155 vim test.txt
156 cat test.txt | grep lal
157 vim test.txt
158 find / -name games
159 find / -user games
160 find '/' -user games
161 cd /proc/11049/
162 cp /usr/lib/udev/rules.d/98-micro.rules ~
163 cp /usr/lib64//libinter.so.1.0.0 ~
164 cp /usr/local/games/roomm
165 cd
166 ls
167 ll
168 cd /usr/share/dict/
169 ll
170 rm test.txt
171 find /local/ -user games
172 find usr/local/ -user games
173 find /usr/local/ -user games
174 cd /usr/local/games/
175 ll
176 cp roomm ~
177 cd
178 find / -user games
179 cd
180 ll
181 chmod games:user 98-micro.rules
182 chown games:user 98-micro.rules
183 chown games:users 98-micro.rules
184 chown games:users libinter.so.1.0.0
185 chown games:users roomm
186 find / -user games
187 ls
188 mkdir foundfiles
189 mv 98-micro.rules foundfiles/
190 mv libinter.so.1.0.0 foundfiles/
191 mv roomm foundfiles/
192 ll
193 pwd
194 find / -user games
195 cat /usr/share/doc/setup*/uidgid
196 ls
197 vim /etc/login.defs
198 useradd -u 2985 talusan
199 su - talusan
200 history
201 groupadd sharegrp
202 useradd sarah
203 groups sarah
204 su - sarah
205 sarah passwd
206 su - sarah
207 exit
208 ls
209 cat lines
210 cd foundfiles/
211 ls
212 man
213 man users
214 cut -d: -f1 /etc/passwd
215 цд
216 cd
217 ls
218 cd ..
219 ls
220 cd home/
221 ls
222 cd shared/
223 ls
224 su - georgo
225 su georgo
226 su - sarah
227 ls
228 cd ..
229 ls
230 ll
231 su - talusan
232 exit
233 exit5
234 exit
235 ls
236 lsblk
237 mkfs
238 mkfs.
239 cat /proc/partitions
240 exit
241 ls
242 reboot
243 ls
244 reboot
245 root
246 reboot
247 ls
248 pwd
249 reboot
250 passwd
251 exit
252 reboot
253 passwd
254 exit
255 ls
256 getenforce
257 ll -Z /etc/shadow
258 setenforce 1
259 restorecon /etc/shadow
260 ll -Z /etc/shadow
261 setenforce 1
262 getenforce
263 ll -Z /etc/shadow
264 reboot
265 k
266 ls
267 exit
268 ls
269 lsblk
270 rpm
271 rpm -q lvm2 xfsporgs
272 rpm update
273 rpm upgrade
274 pvs
275 ls
276 tar -cvzf kernelmod.tgz /lib/modules/5.14.0-70.17.1.el9_0.x86_64/kernel
277 ll
278 rm kernelmod.tgz
279 gzip -kr kernelmod.tgz /lib/modules/5.14.0-70.17.1.el9_0.x86_64/kernel
280 ls
281 gzip -cr /lib/modules/5.14.0-70.17.1.el9_0.x86_64/kernel > kernelmod.tgz
282 ll
283 ll -a
284 ll -h
285 ls
286 scp . vm149:/backups/guest_backup.tar.bz2
287 scp . guest101@vm149:/backups/guest_backup.tar.bz2
288 ll
289 scp guest101@vm149:/backups/guest_backup.tar.bz2 .
290 ll
291 ls
292 gzip -l guest_backup.tar.bz2
293 untar guest_backup.tar.bz2
294 tar -xvf guest_backup.tar.bz2
295 ls
296 cd guest_backup/
297 ls
298 cat README
299 ls
300 cd ..
301 ls
302 rm -rf guest_backup
303 tar -xf guest_backup.tar.bz2 --wildcards 'guest101.txt'
304 rm -rf guest_backup.tar.bz2
305 scp guest101@vm149:/backups/guest_backup.tar.bz2 .
306 ll
307 tar -xf guest_backup.tar.bz2 --wildcards '*.txt'
308 cd guest_backup/
309 ll
310 mv guest101.txt ../
311 ll
312 cd ..
313 ls
314 cat guest101.txt
315 ls
316 rm -rf guest_backup
317 rm guest_backup.tar.bz2
318 ll
319 scp guest101@vm149:/backups/guest_backup.tar.bz2 .
320 tar -tvf guest_backup.tar.bz2
321 ll
322 tar -xf guest_backup.tar.bz2 --wildcards 'guest_backup/guest101.txt'
323 ll
324 lsgrp
325 grp
326 less /etc/passwd | grep sarah
327 cat /etc/group
328 cat /etc/group
329 id -Gn sarah
330 exit
331 ls
332 rpm -q lvm2 xfsprogs
333 pvs
334 lsblk
335 df -h
336 lsblk
337 sudo pvscan
338 parted
339 vgdisplay
340 lsblk
341 sudo pvcreate /dev/sr0
342 swapoff --all
343 lsblk
344 df -h
345 vim /etc/fstab
346 lsblk
347 pvs
348 lvdisplay
349 df -h
350 lvreseize /dev/mapper/vg_os-lv_root -L +500mb
351 lvresize /dev/mapper/vg_os-lv_root -L +500mb
352 df -h
353 lsblk
354 ll
355 df -h
356 resize2fs /dev/mapper/vg_os-lv_root
357 ll
358 lvdisplay
359 df -h
360 lsblk
361 sudo dmesg | grep -i sd
362 sudo fdisk -l | grep -i /dev/sd
363 uid root
364 id root
365 ll
366 lsblk
367 df -h
368 history
369 lvextend man
370 lvextend --help
371 lsblk
372 df -h
373 lvextend -L 200MB /dev/mapper/vg_os-lv_root
374 df -h
375 lsblk
376 vgdisplay development
377 lsblk
378 vgcreate development /dev/sda
379 vgcreate development /dev/sda2
380 ll /dev/
381 vgcreate development /dev/sda1
382 vgcreate development /dev/sr0
383 sudo pvcreate /dev/sr0
384 lsblk
385 sudo pvcr /dev/sda1
386 vgcreate development /dev/sda1
387 vgcreate development /dev/sda
388 vgcreate development /dev/sda1
389 mkdir /data/engine
390 mkdir -p /data/engine
391 ls
392 mkdir data
393 ll
394 cd data/
395 mkdir engine
396 ls
397 cd ..
398 ls
399 lsblk
400 cat /proc/partitions
401 fdisk -l /dev/sda
402 history
403 ls
404 fdisk /dev/sda
405 ll
406 lsblk
407 cat /etc/fstab
408 reboot
409 lsblk
410 cd /run/systemd/
411 ll
412 cd
413 ls
414 vim /etc/fstab
415 tree data
416 vim /etc/fstab
417 reboot
418 ls
419 vim /etc/fstab
420 reboot
421 parted /dev/sda3
422 ls
423 lsblk
424 fdisk /dev/sda3
425 parted /dev/sda rm 3
426 lsblk
427 mount -a
428 lsblk
429 df -h
430 fdiks -l
431 fdisk -l
432 ll
433 pwd
434 cd ..
435 ll
436 cd data/
437 ls
438 cd engine/
439 ls
440 cd ..
441 ls
442 cd egine/
443 ls
444 ll
445 ls
446 cd ..
447 ls
448 ls -lah
449 ll
450 rm -r egine/
451 ls
452 cd ..
453 ls
454 cd home/
455 ls
456 blkid
457 history
458 cd
459 vim .bashrc
460 source .bashrc
461 history
462 blkid | grep sda1 | awk '{ print $2 }'
463 blkid | grep sda1
464 python
465 l
466 htop
467 top
468 mount | grep tmp
469 free -m
470 swap -a
471 swapon -a
472 fdisk /dev/sda
473 lsblk
474 fdisk -l /dev/sda
475 mkswap /dev/sda3
476 swapon /dev/sda3
477 freem 0m
478 freem -m
479 free -m
480 vim /etc/fstab
481 swapoff /dev/sda3
482 free -m
483 swapon /dev/sda3
484 free -m
485 reboot
486 free -m
487 df -h
488 lsblk
489 vgcreate engineering /dev/sda2
490 gdisk /dev/sda
491 fdisk /dev/sda
492 df -l
493 lsblk
494 pvcreate /dev/sda4
495 ll
496 lsblk
497 vgcreate -s 8M engineering /dev/sda4
498 vgs
499 vgdisplay
500 vgrename engineering development
501 lvcreate -L 168MB -n engineering /dev/development
502 lvs
503 mkfs.xfs /dev/development/engineering
504 vim /etc/fstab
505 mount -a
506 reboot
507 lsblk
508 history
509 lsblk
510 df -h
511 ls -l /dev/mapper/vg_os-lv_root
512 vgs
513 vgs
514 lvextend -r -l 25%FREE /dev/mapper/vg_os-lv_root
515 vgs
516 df -h
517 lvextend -r -l 50%FREE /dev/mapper/vg_os-lv_root
518 df -h
519 resize2fs
520 resize2fs /dev/mapper/vg_os-lv_root
521 xfs_growfs /dev/mapper/vg_os-lv_root
522 df -h
523 reboot
524 ls
525 cd data/
526 ls
527 cd ..
528 l
529 ls
530 rm -rf data/
531 ls
532 cd ..
533 ls
534 cd data/
535 ls
536 cd engine/
537 df -h
538 ll
539 ll -a
540 df -h
541 lsblk
542 free -m
543 history
544 1 passwd
545 2 exit
546 3 ls
547 4 ll
548 5 exit
549 6 ls
550 7 exit
551 8 cat /etc/passwd
552 9 cat /etc/passwd | vm
553 10 cat /etc/passwd vm
554 11 cat /etc/passwd | grep vm
555 12 go
556 13 python
557 14 ls
558 15 exit
559 16 passwd
560 17 exit
561 18 getenforce
562 19 ll -Z /etc/shadow
563 20 restorecon /etc/shadow
564 21 ll -Z /etc/shadow
565 22 setenforce 1
566 23 getenforce
567 24 exit
568 25 ls
569 26 exit
570 27 ls
571 28 htop
572 29 top
573 30 vim
574 31 pwd
575 32 cd ..
576 33 ls
577 34 cd home/
578 35 ll
579 36 useradd radi
580 37 ls
581 38 sudo passwd radi
582 39 su - radi
583 40 exit
584 41 ls
585 42 visudo
586 43 vim /etc/sudoers
587 44 cat /etc/sudoers.d/
588 45 adduser radi sudo
589 46 sudo adduser radi sudo
590 47 sudo usermod -a -G sudo radi
591 48 vim /etc/sudoers
592 49 ls
593 50 cd /etc/
594 51 ls
595 52 vim sudo.conf
596 53 vim /etc/sudoers
597 54 chmod 600 /etc/sudoers
598 55 vim /etc/sudoers
599 56 source /etc/sudoers
600 57 vim /etc/sudoers
601 58 su - radi
602 59 exit
603 60 cd ../home/
604 61 ls
605 62 chgrp -R sharegrp shared/
606 63 ll
607 64 chmod g+s shared/
608 65 cd shared/
609 66 touch test
610 67 ll
611 68 exit
612 69 su - sarah
613 70 history
614 71 history 1000
615 72 cho $HISTSEdsfsd
616 73 echo $HISTSIZE
617 74 history | grep group
618 75 history | +
619 76 history | grep +
620 77 history | gre +
621 78 ls
622 79 exit
623 80 passwd sarah
624 81 usermod sarah -a -G sharegrp
625 82 groups sarah
626 83 useradd harry
627 84 passwd harry
628 85 groupmod -a -U harry sharegrp
629 86 groups harry
630 87 gropus --version
631 88 groups --version
632 89 groups harry
633 90 grep sharegrp /etc/group
634 91 useradd -M georgo
635 92 usermod -L georgo
636 93 passwd georgo
637 94 su - georgo
638 95 usermod -r -s /bin/nologin georgo
639 96 userdel georgo
640 97 adduser -r -s /bin/nologin georgo
641 98 adduser -r -s /sbin/nologin georgo
642 99 userdel -r georgo
643 100 adduser -r -s /sbin/nologin georgo
644 101 passwd georgo
645 102 su - georgo
646 103 ls
647 104 cd ..
648 105 ls
649 106 cd home/
650 107 ls
651 108 mkdir shared
652 109 ll
653 110 chgrp sharegrp -r shared
654 111 chown sharegrp:sharegrp -r shared
655 112 chown sharegrp:sharegrp -r shared
656 113 chown *:sharegrp -r shared
657 114 history | grep chown
658 115 history | grep chmod
659 116 chown sharegrp:root shared/
660 117 chown root:sharegrp shared/
661 118 cd shared/
662 119 touch test
663 120 ll
664 121 rm test
665 122 cd ..
666 123 ls
667 124 chown root:sharegrp -r shared/
668 125 chown -r root:sharegrp shared/
669 126 ll
670 127 chmod 770 shared/
671 128 ll
672 129 cd shared/
673 130 cd ..
674 131 ls
675 132 su - talusan
676 133 exit
677 134 cd /usr/share/
678 135 ls
679 136 cd dict/
680 137 ls
681 138 cat linux.words
682 139 ls
683 140 cd wo
684 141 cat words
685 142 cat words | grep virus
686 143 cat words | grep virus >> lines
687 144 cat lines
688 145 vim lines
689 146 mv lines ~
690 147 cd
691 148 ll
692 149 cat lines
693 150 cd /usr/share/dict/
694 151 ls
695 152 cat words
696 153 cat words | grpe virus
697 154 cat words | grep virus
698 155 vim test.txt
699 156 cat test.txt | grep lal
700 157 vim test.txt
701 158 find / -name games
702 159 find / -user games
703 160 find '/' -user games
704 161 cd /proc/11049/
705 162 cp /usr/lib/udev/rules.d/98-micro.rules ~
706 163 cp /usr/lib64//libinter.so.1.0.0 ~
707 164 cp /usr/local/games/roomm
708 165 cd
709 166 ls
710 167 ll
711 168 cd /usr/share/dict/
712 169 ll
713 170 rm test.txt
714 171 find /local/ -user games
715 172 find usr/local/ -user games
716 173 find /usr/local/ -user games
717 174 cd /usr/local/games/
718 175 ll
719 176 cp roomm ~
720 177 cd
721 178 find / -user games
722 179 cd
723 180 ll
724 181 chmod games:user 98-micro.rules
725 182 chown games:user 98-micro.rules
726 183 chown games:users 98-micro.rules
727 184 chown games:users libinter.so.1.0.0
728 185 chown games:users roomm
729 186 find / -user games
730 187 ls
731 188 mkdir foundfiles
732 189 mv 98-micro.rules foundfiles/
733 190 mv libinter.so.1.0.0 foundfiles/
734 191 mv roomm foundfiles/
735 192 ll
736 193 pwd
737 194 find / -user games
738 195 cat /usr/share/doc/setup*/uidgid
739 196 ls
740 197 vim /etc/login.defs
741 198 useradd -u 2985 talusan
742 199 su - talusan
743 200 history
744 201 groupadd sharegrp
745 202 useradd sarah
746 203 groups sarah
747 204 su - sarah
748 205 sarah passwd
749 206 su - sarah
750 207 exit
751 208 ls
752 209 cat lines
753 210 cd foundfiles/
754 211 ls
755 212 man
756 213 man users
757 214 cut -d: -f1 /etc/passwd
758 215 цд
759 216 cd
760 217 ls
761 218 cd ..
762 219 ls
763 220 cd home/
764 221 ls
765 222 cd shared/
766 223 ls
767 224 su - georgo
768 225 su georgo
769 226 su - sarah
770 227 ls
771 228 cd ..
772 229 ls
773 230 ll
774 231 su - talusan
775 232 exit
776 233 exit5
777 234 exit
778 235 ls
779 236 lsblk
780 237 mkfs
781 238 mkfs.
782 239 cat /proc/partitions
783 240 exit
784 241 ls
785 242 reboot
786 243 ls
787 244 reboot
788 245 root
789 246 reboot
790 247 ls
791 248 pwd
792 249 reboot
793 250 passwd
794 251 exit
795 252 reboot
796 253 passwd
797 254 exit
798 255 ls
799 256 getenforce
800 257 ll -Z /etc/shadow
801 258 setenforce 1
802 259 restorecon /etc/shadow
803 260 ll -Z /etc/shadow
804 261 setenforce 1
805 262 getenforce
806 263 ll -Z /etc/shadow
807 264 reboot
808 265 k
809 266 ls
810 267 exit
811 268 ls
812 269 lsblk
813 270 rpm
814 271 rpm -q lvm2 xfsporgs
815 272 rpm update
816 273 rpm upgrade
817 274 pvs
818 275 ls
819 276 tar -cvzf kernelmod.tgz /lib/modules/5.14.0-70.17.1.el9_0.x86_64/kernel
820 277 ll
821 278 rm kernelmod.tgz
822 279 gzip -kr kernelmod.tgz /lib/modules/5.14.0-70.17.1.el9_0.x86_64/kernel
823 280 ls
824 281 gzip -cr /lib/modules/5.14.0-70.17.1.el9_0.x86_64/kernel > kernelmod.tgz
825 282 ll
826 283 ll -a
827 284 ll -h
828 285 ls
829 286 scp . vm149:/backups/guest_backup.tar.bz2
830 287 scp . guest101@vm149:/backups/guest_backup.tar.bz2
831 288 ll
832 289 scp guest101@vm149:/backups/guest_backup.tar.bz2 .
833 290 ll
834 291 ls
835 292 gzip -l guest_backup.tar.bz2
836 293 untar guest_backup.tar.bz2
837 294 tar -xvf guest_backup.tar.bz2
838 295 ls
839 296 cd guest_backup/
840 297 ls
841 298 cat README
842 299 ls
843 300 cd ..
844 301 ls
845 302 rm -rf guest_backup
846 303 tar -xf guest_backup.tar.bz2 --wildcards 'guest101.txt'
847 304 rm -rf guest_backup.tar.bz2
848 305 scp guest101@vm149:/backups/guest_backup.tar.bz2 .
849 306 ll
850 307 tar -xf guest_backup.tar.bz2 --wildcards '*.txt'
851 308 cd guest_backup/
852 309 ll
853 310 mv guest101.txt ../
854 311 ll
855 312 cd ..
856 313 ls
857 314 cat guest101.txt
858 315 ls
859 316 rm -rf guest_backup
860 317 rm guest_backup.tar.bz2
861 318 ll
862 319 scp guest101@vm149:/backups/guest_backup.tar.bz2 .
863 320 tar -tvf guest_backup.tar.bz2
864 321 ll
865 322 tar -xf guest_backup.tar.bz2 --wildcards 'guest_backup/guest101.txt'
866 323 ll
867 324 lsgrp
868 325 grp
869 326 less /etc/passwd | grep sarah
870 327 cat /etc/group
871 328 cat /etc/group
872 329 id -Gn sarah
873 330 exit
874 331 ls
875 332 rpm -q lvm2 xfsprogs
876 333 pvs
877 334 lsblk
878 335 df -h
879 336 lsblk
880 337 sudo pvscan
881 338 parted
882 339 vgdisplay
883 340 lsblk
884 341 sudo pvcreate /dev/sr0
885 342 swapoff --all
886 343 lsblk
887 344 df -h
888 345 vim /etc/fstab
889 346 lsblk
890 347 pvs
891 348 lvdisplay
892 349 df -h
893 350 lvreseize /dev/mapper/vg_os-lv_root -L +500mb
894 351 lvresize /dev/mapper/vg_os-lv_root -L +500mb
895 352 df -h
896 353 lsblk
897 354 ll
898 355 df -h
899 356 resize2fs /dev/mapper/vg_os-lv_root
900 357 ll
901 358 lvdisplay
902 359 df -h
903 360 lsblk
904 361 sudo dmesg | grep -i sd
905 362 sudo fdisk -l | grep -i /dev/sd
906 363 uid root
907 364 id root
908 365 ll
909 366 lsblk
910 367 df -h
911 368 history
912 369 lvextend man
913 370 lvextend --help
914 371 lsblk
915 372 df -h
916 373 lvextend -L 200MB /dev/mapper/vg_os-lv_root
917 374 df -h
918 375 lsblk
919 376 vgdisplay development
920 377 lsblk
921 378 vgcreate development /dev/sda
922 379 vgcreate development /dev/sda2
923 380 ll /dev/
924 381 vgcreate development /dev/sda1
925 382 vgcreate development /dev/sr0
926 383 sudo pvcreate /dev/sr0
927 384 lsblk
928 385 sudo pvcr /dev/sda1
929 386 vgcreate development /dev/sda1
930 387 vgcreate development /dev/sda
931 388 vgcreate development /dev/sda1
932 389 mkdir /data/engine
933 390 mkdir -p /data/engine
934 391 ls
935 392 mkdir data
936 393 ll
937 394 cd data/
938 395 mkdir engine
939 396 ls
940 397 cd ..
941 398 ls
942 399 lsblk
943 400 cat /proc/partitions
944 401 fdisk -l /dev/sda
945 402 history
946 403 ls
947 404 fdisk /dev/sda
948 405 ll
949 406 lsblk
950 407 cat /etc/fstab
951 408 reboot
952 409 lsblk
953 410 cd /run/systemd/
954 411 ll
955 412 cd
956 413 ls
957 414 vim /etc/fstab
958 415 tree data
959 416 vim /etc/fstab
960 417 reboot
961 418 ls
962 419 vim /etc/fstab
963 420 reboot
964 421 parted /dev/sda3
965 422 ls
966 423 lsblk
967 424 fdisk /dev/sda3
968 425 parted /dev/sda rm 3
969 426 lsblk
970 427 mount -a
971 428 lsblk
972 429 df -h
973 430 fdiks -l
974 431 fdisk -l
975 432 ll
976 433 pwd
977 434 cd ..
978 435 ll
979 436 cd data/
980 437 ls
981 438 cd engine/
982 439 ls
983 440 cd ..
984 441 ls
985 442 cd egine/
986 443 ls
987 444 ll
988 445 ls
989 446 cd ..
990 447 ls
991 448 ls -lah
992 449 ll
993 450 rm -r egine/
994 451 ls
995 452 cd ..
996 453 ls
997 454 cd home/
998 455 ls
999 456 blkid
1000 457 history