-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bash_history
826 lines (822 loc) · 12.6 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
ls
mkdir /docs && mkdir /docs/direccion /docs/finanzas /docs/informatica /docs/ventas
sudo mkdir /docs && sudo mkdir /docs/direccion /docs/finanzas /docs/informatica /docs/ventas
tr /
tree /
ls /
ls /docs/
sudo adduser gerentes
sudo adduser ventas
sudo adduser jefe_ventas
sudo adduser emp_ventas
sudo adduser jefe_finanzas
sudo adduser emp_finanzas
sudo adduser jefe_informatica
sudo adduser emp_informatica
user
ls /etc/user
ls /etc
ls /etc/u*
ls /etc/passwd
sudo cat /etc/passwd
info deluser
clear
sudo deluser ventas
sudo cat /etc/passwd
clear
sudo usermod gerente -e 2019-06-01 -G jefes
sudo groupadd jefes ventas finanzas informatica
sudo groupadd jefes
sudo groupadd ventas
sudo groupadd finanzas
sudo groupadd informatica
clear
sudo usermod gerente -e 2019-06-01 -G jefes
history
sudo cat /etc/passwd
sudo usermod gerentes -e 2019-06-01 -G jefes
sudo usermod jefe_ventas -e 2019-06-01 -G jefes
sudo usermod jefe_finanzas -e 2019-06-01 -G jefes
sudo usermod jefe_informatica -e 2019-06-01 -G jefes
sudo usermod emp_ventas -e 2019-06-01 -G ventas
sudo usermod emp_finanzas -e 2019-06-01 -G finanzas
sudo usermod emp_informatica -e 2019-06-01 -G informatica
man usermod | grep -e
man usermod | grep '-e'
man usermod
q
history
man usermod
man change
info change
apt list change
apt show change
apt list | grep chage
man chage
sudo chage -d 89 -W 6 gerentes
q
history
sudo cat /etc/passwd
ls
sudo lsblk -fm
sudo fdisk -l
poweroff
history
sudo lsblk -fm
sudo mkfs -t ext4 /dev/sdb
sudo fdisk -l
cat /etc/fstab
find / -name init.d
find / -name init.d 2> /dev/null
cd /etc/init.d
ls
find / -name fstab 2> /dev/null
cd ..
ls
cd fstab
pwd
cd fstab
ls fstab
sudo nano fstab
ls
fdisk -l
sudo fdisk -l
man fdisk
sudo fdisk -l sdb
ls /proc/partitions
sudo blkid
sudo blkid | tail >> /etc/fstab
sudo blkid | sudo tail >> /etc/fstab
sudo blkid | sudo tail >> sudo /etc/fstab
sudo su
cat /etc/fstab
sudo nano /etc/fstab
ls /media
reboot
ls /media
cd /media
ls -a
pwd
history
sudo su
ls -l /media
ls -l /media/docs
ll
sudo su
ls
pwd
sudo mkdir /docs && sudo mkdir /docs/finanzas /docs/informatica /docs/ventas /docs/direccion
ls
sudo mkdir docs && sudo mkdir /docs/finanzas /docs/informatica /docs/ventas /docs/direccion
ls
ls -r
ls -R docs/
ls -R docs
cd docs
ls
ls -R
ls
ls -R
a
cd ..
ls
rmdir docs
sudo rmdir docs
ls
sudo mkdir docs
sudo mkdir /docs/direccion /docs/finanzas /docs/ventas /docs/informatica
ls
ls -R docs
sudo mkdir docs/direccion docs/finanzas docs/ventas docs/informatica
ls -R docs
pwd
ll
whoami
claer
clear
ll
cd docs
ll
sudo groups
sudo cat /etc/group
clear
pwd
ls
mkdir test
ll
info chmod
info
info | grep ch
info chgrp
info | grep ch
info chown
clear
ll
cd ..+
cd ..
ls
sudo chown gerentes docs
ll
cd docs/
l
ll
sudo chown gerentes direccion/
sudo chown jefe_finanzas finanzas/
sudo chown jefe_informatica informatica/
sudo chown jefe_ventas ventas/
ll
man chmod
info chmod
clear
l
sudo chmod ll
ll
sudo chmod g+rx direccion/
ll
sudo chmod g+w direccion/
ll
sudo chmod g-w direccion/
ll
sudo chmod g+rwx direccion/
ll
info chgrp
clear
ll
sudo chgrp jefes direccion/
ll
sudo chgrp finanzas finanzas/
ll
sudo chgrp informatica informatica/
sudo chgrp ventas ventas/
ll
ls
man cron
ls
history | grep cron
history | grep find
find /etc -name crontab 2>/dev/null
sudo nano /etc/crontab
apt search winehq
clear
l
cat
clear
ls
poweroff
ls
pwd
ls
ls /
cd /
ls
clear
ls
ls media
ls media/docs
tree media
sudo apt install tree
clear
tree media
cat /ect/group
ls /etc
clear
man ls
q
clear
ls
ls etc
ls etc -X .txt
ls etc -X txt
ls /etc/group
cat etc/group
powerof
poweroff
ls /
cat /etc/passwd
sudo -i
nano /etc/passwd
sudo nano /etc/passwd
exit
ls
ls /
sudo useradd -m -g test -s /bin/bash -f 90 test
sudo useradd -m -s /bin/bash -f 90 test
users
cat /etc/passwd
sudo useradd -m -s /bin/bash -f 90 test
ll /home/
cat /etc/passwd
sudo /etc/groups
sudo /etc/group
sudo cat /etc/group
sudo deluser test
cat /etc/passwd
sudo useradd -m -G test -s /bin/bash -f 90 test
sudo useradd -m -G jefe -s /bin/bash -f 90 test
sudo useradd -m -G jefes -s /bin/bash -f 90 test
history
sudo /etc/group
sudo cat /etc/group
cat /etc/sudoers
sudo cat /etc/sudoers
sudo cat /etc/groups
sudo cat /etc/group
sudo nano /etc/group
exit
sudo nano /etc/group
exit
sudo nano etc/passwd
o
ls
ls /
ls etc/passwd
ls etc/pass*
ls etc/p
ls etc/
ls /
sudo ls /etc
cd /
ls
sudo nano etc/passwd
ls
sudo cat /etc/shadow
clear
ls
sudo nano /etc/group
cat /etc/sudoers
sudo cat /etc/sudoers
ls /etc/sudoers.d/
sudo cat /etc/sudoers.d/README
man visudo
visudo -cs
sudo visudo -cs
visudo
sudo visudo
sudo cat /etc/group
sudo cat /etc/group | grep sudo
sudo cat /etc/group | grep admin
sudo cat /etc/group | grep sudo
sudo cat etc/group
sudo cat etc/group | sudo
sudo cat etc/group | grep sudo
sudo cat etc/passwd | grep sudo
sudo cat etc/passwd | grep gerente
sudo cat etc/passwd | grep sudo
sudo cat etc/passwd | grep server
sudo usermod -aG sudo gerentes
sudo cat etc/group | grep sudo
sudo cat etc/passwd | grep gerentes
exit
fdisk -l
sudo fdisk -l
sudo cat /etc/fstab
sudo lsbmk -fm
sudo lsblk -fm
sudo fdisk -l
ls
fdisk /dev/sdb
sudo fdisk /dev/sdb
ls
cd /
ls
ls /media
file dev/sdb
tree media
history | grep ls
sudo lsbkm -fm
sudo lsblk -fm
sudo fdisk /dev/sdb
ls media
fdisk -l
sudo fdisk -l
sudo fdisk -l /dev/sdb
history
sudo lsblk -fm
reboot
fdisk -l
sudo fdisk -l
poweroff
lsblk
f
fdisk /sdb
fdisk dev/sdb
fdisk /dev/sdb
sudo fdisk /dev/sdb
sudo fdisk -l
man mkfs
sudo mkswap dev/sdb2
sudo mkswap /dev/sdb2
gparted
lsblk
tree /mount /mnt
sudo tree /mount /mnt
ls /mount
ls /
sudo ls -R /media
find / -type f -name fstab
find / -type f -name fstab 2>/dev/null
clear
sudo
sudo cat /etc/fstab
sudo umount /dev/sdb
sudo ls -R /media
sudo ls /m*
mks
history
sudo mkswap /dev/sdb2
lsblk
lsbkl -f
lsblk -f
sudo umount /dev/sdb
sudo mkfs -t ext4 /dev/sdb1
lsblk -f
lsblk -f | tail >>/etc/fstab
sudo lsblk -f | tail >>/etc/fstab
sudo cat fstab
ls /etc/fstab
sudo ll /etc/fstab
ll /etc/fstab
sudo nano /etc/fstab
sudo lsblk -f | tail >>/etc/fstab
sudo lsblk -f | sudo tail >>/etc/fstab
sudo lsblk -f | sudo tail >> /etc/fstab
sudo lsblk -f | tail >> /etc/uuids
sudo lsblk -f | tail >> /uuids
sudo lsblk -f | tail >> /uuids.txt
sudo touch /uuids.txt
cd ~
ls
touch uuids.txt
l
ls ..
pwd
sudo lsblk -f | tail > /home/server/uuids.txt
cat ~/uuids.txt
nano ~/uuids.txt
sudo nano /etc/fstab
sudo su
l
sudo echo '#test' >> /etc/fstab
sudo cat /etc/fstab
sudo lsblk -f | tail
sudo swapon /dev/sdb2
swap
sudo nano /dev/fstab
clear
sudo tree /dev
~~
sudo ls /etc/fstab
sudo cat /etc/fstab
sudo nano /etc/fstab
lsblk -f
top
reboot
df -f
dh -f
clear
lsblk -f
fdisk -l
clear ; lsklk -f ; sudo fdisk -l
lsblk -f
sudo fdisk /dev/sdb
ls /media
ll /media
info chmod
cd media
cd /media
ls
clear
ls
rmdir sdd2
sudo rmdir sdd2
ls
clear
mkdir ssd2
sudo mkdir ssd2
ll
clear
fdisk /dev/sdb
sudo fdisk /dev/sdb
lsblk -l
lsblk -f
fdisk -l
sudo fdisk -l
l
tree /media/
cat /etc/fstab
poweroff
ls /
cat /etc/passwd
poweroff
poweroff
clear
cat /etc/shadow
sudo cat /etc/shadow
poweroff
ifconfig
ping www.google.es
clear
sudo apt install git
clear
cd /etc
l
clear
ls passwd
git push
git config
git config --global
git man confg
git help confg
git help --confg
git help -g
git help everyday
git help config
q
clear
git config --global user.name "dlagUbuServer_practicaSISTEMAS" ; git config --global user.email delaguia19905@iesmarenostrum.com
git config -get user
git config --get user
git config --get user.name
git config --get user.email
clear
ls /etc
clera
clear
git help push
git push passwd -repo='https://github.com/JorgeDLG/archivosUbuServerPractSISTEMAS.git'
git push passwd -repo=https://github.com/JorgeDLG/archivosUbuServerPractSISTEMAS.git
git push passwd https://github.com/JorgeDLG/archivosUbuServerPractSISTEMAS.git
clear
sudo apt install ssmtp
clear
sudo nano /etc/ssmtp/ssmtp.conf
ssmtp delaguia19905@iesmarenostrum.com
q
ssmtp delaguia19905@iesmarenostrum.com
man ssmtp
clear
sudo apt purge ssmtp
clear
sudo apt install curl
clear
curl --upload-file ./passwd https://transfer.sh/passwd
curl --upload-file ./passwd https://transfer.sh/passwd -v
curl --upload-file ./passwd.txt https://transfer.sh/passwd.txt -v
curl --upload-file ./passwd.conf https://transfer.sh/passwd.txt -v
curl --upload-file ./passwd https://transfer.sh/passwd.txt -v
l
sudo cp passwd ~/
cat ~/passwd
l
sudo cp group ~/
sudo cp shadow ~/
sudo cp sudoers ~/
sudo cp fstab ~/
sudo cp crontab ~/
sudo cp sources.list ~/
sudo cp apt/sources.list ~/
sudo mkdir ~/teeesttt sudo cp -R apt/sources.list.d/ ~/teeesttt
sudo mkdir ~/teeesttt sudo cp -r apt/sources.list.d/ ~/teeesttt
sudo mkdir ~/teeesttt sudo cp --recursive apt/sources.list.d/ ~/teeesttt
sudo mkdir ~/teeesttt ; sudo cp -r apt/sources.list.d/ ~/teeesttt
cd ~
ls
cat shadow
ll
git init
git status
git add .
sudo git add .
git status
git commit -m 'archivosUBUNTUserver'
git status
git remote add origin https://github.com/JorgeDLG/archivosUbuServerPractSISTEMAS.git
git get remote
git push origin master
poweroff
ls /
df -l
df -f
df -h
dh -f
dh -l
clear
df -h
df -l
lsblk -l
lsblk -f
lsblk -fa
info lsblk | grep filetye
lsb
info lsblk | grep filetyepe
info lsblk | grep file
info lsblk | grep extension
info lsblk | grep FSTYPE
man fsblk
info fsblk
help fsblk
man -k fsblk
info fsblk
clera
clear
fdisk -f
fdisk -l
sudo fdisk -l
sudo lsblk -f
sudo lsblk -l
sudo lsblk -h
sudo lsblk -fh
sudo lsblk -f
sudo lsblk -fs
sudo mkfs.ext4 /dev/sdb1 -v
sudo fdisk -l
lsblk -f
ls /media
ll /media
pwd
ls
ls teeesttt/
cat uuids.txt
rm uuids.txt
lsblk -f >> uuids.txt
cat uud
cat uuids.txt
nano uuids.txt
clear
ls
cd usr
cd /usr
ls pass
ls passwd
ls
a
cd ..
cd etc
ls passwd
sudo nano passwd
sudo nano fstab
ls fstab
cat fstab
sudo nano fstab
cat fstab
sudo nano fstab
sudo lsblk -f >> uuid.txt
sudo -i
cat passwd
sudo nano passwd
sudo -i
sudo nano fstab
cat fstab
reboot
sudo fdisk -f
sudo fdisk -l
lsblk -f
sudo fdisk /dev/sdb
lsblk -f
sudo umount /dev/sdb1
lsblk -f
sudo fdisk /dev/sdb
lsklk -f
lsblk -f
cat /etc/fstab
reboot
lsblk -f
sudo umount /dev/sdb1
lsblk -f
sudo mkswap dev/sdb2
lsblk -f
info mkswap
clear
info mkswap
lsblk -f
sudo mkswap -f dev/sdb2
sudo fdisk -f
sudo fdisk -l
sudo fdisk /dev/sdb
lsblk -f
sudo fdisk /dev/sdb
lsblk -f
sudo umount /dev/sdb1
lsblk -f
sudo mkswap /dev/sdb2
lsblk -f
sudo -i
sudo nano /etc/fstab
ls uuid*
ls uuidswap.txt
ls /etc/uuid*.*
cat /etc/uuid.txt
cat /etc/uuidswap.txt
cd /etc
sudo nano fstab
lsblk -f
sudo swapon /dev/sdb2
lsblk -f
cat /etc/fstab
reboot
lsblk -f
tree /media/
history | grep 'mkdir /media/ssd2'
history
lsblk -f
tree /media/
rmdir /media/ssd2
sudo rmdir /media/ssd2
tree /medai
tree /media
mkdir /media/test
sudo mkdir /media/sdd2/docs ; sudo mkdir /media/sdd2/docs/direccion /media/sdd2/docs/ventas /media/sdd2/docs/finanzas /media/sdd2/docs/informatica
ls -R /media
ls
pwd
git status
cd /media/
ll
cd sdd2/
l
ll
l
man chmod
sudo chmod -R u=rwx,g=rx,o=rx /docs/
ll
sudo chown gerentes /docs/
ll
sudo chown gerentes ./docs
ll
ll
sudo chmod u=rwx,g=rx,o=rx ./docs
ll
tree
ll /docs/direccion/
ll /docs
sudo chown gerentes /docs/direccion/
ll /docs
sudo chown jefe_finanzas /docs/finanzas/
ll /docs
sudo chown jefe_informatica /docs/informatica/
sudo chown jefe_ventas /docs/ventas/
ll docs
ll /docs
cat /etc/group
ll /docs
info chgrp | grep directory
info chgrp | grep directories
man chgrp
info chgrp
ll /docs/
cat /etc/group
ll /docs
sudo chmod g+w ./docs/direccion/
ll /docs
sudo chmod g+w docs/direccion
ll /docs
sudo chmod o-x docs/direccion
ll /docs
info chage
info chmod
ll /docs
sudo chmod -R o-x docs/direccion
ll /docs
chmod -R o-x docs/direccion
sudo chmod -R o-x docs/direccion
ll /docs
sudo chmod 774 docs/direccion
ll /docs
lsblk -f
top
clear
pwd
l
tree
ll -R
ll /docs
pwd
ll /docs
ll -R /docs
ll -R
cat /etc/group
l
tree
clear
ll -R
ll
ll /docs
ll docs
pwd
l
sudo chgrp finanzas docs/finanzas
ll docs
sudo chgrp informatica docs/informatica
sudo chgrp ventas docs/ventas
ll docs
cat /etc/group
ll
ll docs
chmod 775 docs/*
sudo chmod 775 docs/*
ll docs
ll -R docs
sudo chmod 775 docs/direccion/
ll docs
ll docs/direccion/
history | grep chown
pwd
cd docs
sudo chown gerentes direccion/
ll
sudo chown jefe_finanzas finanzas/
ll
sudo chown jefe_informatica informatica/
sudo chown jefe_ventas ventas/
ll
whoami
sudo chmod o-x ./*
ll
history
ll
history | grep chgrp
groups
group
cat /etc/group
pwd
l
sudo chgrp jefes direccion/
ll
sudo chmod o-x direccion/
ll
sudo chmod o-r direccion/
ll
ll /home/jefe_finanzas
ll /home/
chmod o-rx /home/*
sudo chmod o-rx /home/*
ll /home
cat /etc/crontab
history | grep cat /etc
history | grep 'cat /etc'
clear
a
l
cd ..
l
cd ..
ls
cd /
ls
cd #
ls
tree teeesttt/
mv teeesttt/sources.list.d/ ./
sudo mv teeesttt/sources.list.d/ ./
l
ls teeesttt/
rm teeesttt/
rmdir teeesttt/
l
cat uuids.txt
cat sources.list
clear
l
sudo -i
l
poweroff