Sei sulla pagina 1di 15

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

su root
su root
clear
su
ls
exit
ls
ifconfig
sudo ifconfig
su
vim
su
exit
su
su vim .bash_profile
su ifconfig
su
exit
cat .bash_profile
si
su
top
clear
su
echo $0
echo $SHELL
echo $0
history
!
!
!
vim
exit
exit
echo $0
echo $SHELL
sh
sh
history
vim .bash_profile
clear
cat /etc/shells
bash
shell
cat /etc/shells
cat
csh
bash
sh
bash
csh
history
history
cat /etc/group
cat /etc/passwd
su
cat /etc/shadow
cat /proc/176

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

cat /proc/176/cwd
su
su root
su - root
who
man hier
su
su - root
cat /etc/group
cat /etc/group
cat stdout
man hier
man hier
/dev/VolGroup00/
ls /dev/VolGroup00/
ls /dev/hdc
ls /dev/hdc
ls /dev/hdc
ls -la /dev/hdc
ls -la /dev/hdc
cat /dev/hdc
fdisk -l
su su ls /mnt/hgfs/
ls -la
ls -l
ls -l
who
who
cat /etc/shells
cat /etc/shells
cat /etc/shells
cat /etc/shells
csh
echo $0
echo $1
exit
echo $0
echo "Ahoj"
bash
exit
su - root
csh
exit
exit
echo $1
top
who
top
who
cat /etc/shells
history
history
echo $1
echo "Test"
echo "Test"
!
history
echo "Test"

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

echo "Ahoj"
echo "Test"
echo "Ahoj"
echo "Ahoj"
echo "Test"
clear
26 su
27 echo $0
28 echo $SHELL
29 echo $0
30 history
31 !
32 !
33 !
34 vim
35 exit
36 exit
37 echo $0
38 echo $SHELL
39 sh
clear
cat /etc/shells
ls
pwd
cd /home/student/
pwd
cd ~
pwd
cd Desktop/
cd ..
ls
ls -a
ls -a -l
ls
la -a
ls -a
man ls
man top
ls -h
cp -h
cp --help
man cp
ls
ls -la
su su jozko
su - root
e
ifconfig
su - root
man su
exit
su - root
man man
su root
su - root
exit
su tester
cat /etc/passwd
cat /etc/shadow

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

su - root
cat /etc/group
ls -a
ls -al
cat .bashrc
cat /dev/sda
cat /dev/sda1
su - root
touch test2
ls -la
chmod 000 test2
ls -la
rm test2
touch test3
ls -la
chmod +w test
chmod +w test3
ls -la
chmod o+w test3
ls -la
ls -la /home/student/
cd /tmp/
ls -la /tmp
ls -la /
touch test4
chmod 777 test4
ls -la
man umask
chown tester:tester test4
su - root
ls
alias "ls -la" ll
alias ll "ls -la"
alias la "ls -la"
alias "ls -la" "la"
man alias
alias la="ls -la"
la
la
la
sleep 1000
sleep 1
sleep 1
sleep 5
sleep 50
finger
history
last
ls
vim text1
cat text1 > text2
vim text2
cmp text1 text2
cmp -l text1 text2
comm text1 text2
comm -3 text1 text2
cat text1
cat text2
comm -3 text1 text2
comm -1 text1 text2

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

comm -2 text1 text2


diff text1 text2
grep BRA text1
grep -v BRA text1
grep -c BRA text1
grep -r BRA .
grep -vif text1 text2
ls
rm text1 text2
ls
rm test3
ls
ls
sort /etc/passwd
cut -c 1 -d : /etc/passwd
cut -c 1 -d: /etc/passwd
cut -c1 -d: /etc/passwd
cut -d: /etc/passwd
cut -c 1 /etc/passwd
cut -c 1-2 /etc/passwd
cut -c 1-5 /etc/passwd
cut /etc/passwd
cut -c1 /etc/passwd
cut -c1 -d":" /etc/passwd
cut -c1 -d ":" /etc/passwd
man cut
cut -d: -f1 /etc/passwd
cut -d: -c1 /etc/passwd
cut -d: -f1 /etc/passwd
cut -d: -f2 /etc/passwd
cut -d: -f5 /etc/passwd
cut -d: -f5 /etc/passwd | uniq
cut -d: -f5 /etc/passwd | uniq | sort
clear
ls
aspell /etc/passwd
aspell -c /etc/passwd
aspell
clear
ls
paste /etc/passwd /etc/group
clear
la
la
alias la="la -la"
la
alias la="ls -la"
la
la
ps -a
ps -af
ps -afu
ps -afux
man ps
ps -afux
ps -af
ps -af
ps -af
ps -af
ps -af

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

ps -af
ps -af
ps -af
ps -af
kill 5387
kill 5387
ps -af
ps -af
kill -a sleep
clear
tty
ps
ps -f
ps -fa
ps -fe
ps -fA
ps -fe
ps -fA
clear
tty
tty
who
last
finger
ls -la
ls -a
ls -la
ls -la /
ls -la /dev
ll
la
la
alias la="ls -la"
la
man alias
la /var
la
vim .bashrc
la
exit
sleep 100
sleep 3
sleep 300
sleep 300 &
links
wget http://i.sme.sk/cdata/7/67/6708087/1_ROB-r970_s300.JPG
LS
la
ls
cat 1_ROB-r970_s300.JPG
62;9;c
free
fdisk -l
su
su ls
cat who.txt
ls -l
date
mkdir adresar

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

mkdir adresar/podadresar
mkdir adresar/podadresar/nie/nie
man mkdir
man mkdir
mkdir -p adresar/podadresar/nie/nie/dsfddsfs
tree adresar/
cd adresar/podadresar/nie/
cd ../..
cd podadresar/
cat ../../who.txt
cat /home/student/who.txt
pwd
touch ./test
test
./test
ls -a
ls -la
./nie
chmod +x test
ls -la
./test
cd nie/
../test
vim ..te
vim ../test
../test
vim ../test
../test
/home/student/adresar/podadresar/test
bash ../test
cd ..
cd ..
ls
cd ..
rm -rf adresar/
ls
mkdir -p fsfds/dsfsdf/fdsfsf/fdsfdsf
tree fsfds/
rm fsfds/
rm -r fsfds/
mkdir -p fsfds/dsfsdf/fdsfsf/fdsfdsf
touch fsfds/dsfsdf/subor
rm -r fsfds/
mkdir -p fsfds/dsfsdf/fdsfsf/fdsfdsf
vim fsfds/dsfsdf/subor
rm -r fsfds/
mkdir -p fsfds/dsfsdf/fdsfsf/fdsfdsf
touch fsfds/dsfsdf/.subor
rm -r fsfds/
man rm
mkdir -p fsfds/dsfsdf/fdsfsf/fdsfdsf
rm -f fsfds/
touch subor
cp subor /tmp/
ls /tmp/
mkdir -p fsfds/dsfsdf/fdsfsf/fdsfdsf
cp fsfds/ /tmp/
cp -r fsfds/ /tmp/
tree /tmp/fsfds/
cp -ru fsfds/ /tmp/

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

man mv
man mv
cp -r fsfds/ /tmp/
cp -r fsfds/ /tmp/
touch fsfds/subor.txt
cp -r fsfds/ /tmp/
cp -r fsfds/ /tmp/
mv -r fsfds/ /tmp/
mv fsfds/ /tmp/
mv -r fsfds/ /tmp/
man mv
touch subor
mv subor iny_subor
ls
mv subor fsfds/dsfsdf/iny_subor
mv novy_subor fsfds/dsfsdf/iny_subor
mv iny_subor fsfds/dsfsdf/iny_subor
touch a
mv a fsfds/dsfsdf/b
ls fsfds/dsfsdf/
ls
ls -la
touch hoami.txt
ls
mv hoami.txt whoami.txt
ls
cp who* /tmp/
cp * /tmp/
cp * /tmp/ 2> /dev/null
clear
vim subor1.txt
cp subor1.txt subor2.txt
ls
vim subor2.txt
ls -la
ls -l
cat subor1.txt
cat subor2.txt
cmp subor1.txt subor2.txt
cmp -s subor1.txt subor2.txt
cmp subor1.txt subor2.txt
comm subor1.txt subor2.txt
comm -1 subor1.txt subor2.txt
comm -2 subor1.txt subor2.txt
comm -3 subor1.txt subor2.txt
diff subor1.txt subor2.txt
man grep
grep Windows subor1.txt
grep student /etc/passwd
grep -n student /etc/passwd
grep -n student .
grep student .
grep student -f .
grep -f . student
grep -f .
grep -r Win .
grep -r Windows ./
man grep
grep -r Windows
grep -r Windows ./*

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

grep -r Windows .
grep -r Windows . 2> /dev/null
grep -rn Windows .
grep -rn Windows /
who
finger
last
last | grep boot
man grep
man grep
ls
ls
ls
tar -f archive.tar subor1.txt subor2.txt
tar -cf archive.tar subor1.txt subor2.txt
ls
rm subor*
ls
tar -x archive.tar
ls
tar -xvf archive.tar
man tar
tar -xf archive.tar
ls
tar -xf archive.tar fsfds/
man tar
tar -xf archive.tar -C fsfds/
ls fsfds/
tar -fx archive.tar -C fsfds/
man tar
ls
history
tar -czf archive2.tar subor1.txt subor2.txt
ls -la
file archive.tar
file archive2.tar
man
man tar
tar -czf archive2.tar -a who.txt
tar -czf archive2.tar -A who.txt
tar -czf archive2.tar -r who.txt
tar -czf archive2.tar who.txt
ls
tar tvf archive2.tar
tar -czfr archive2.tar subor1.txt
tar tvf archive2.tar
tar -zfr archive2.tar subor1.txt
tar -zfr archive.tar subor1.txt
tar tvf archive.tar
tar -fr archive.tar who.txt
tar -vfr archive.tar who.txt
tar -vrf archive.tar who.txt
tar tvf archive.tar
tar tvf archive2.tar
tar -rzf archive2.tar subor1.txt
tar -rf archive2.tar subor1.txt
tar tvf archive2.tar
tar tvf archive2.tar
tar tvf archive.tar
tar tvf archive.tar

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

file archive.tar
gzip archive.tar
ls
man gz
man gzip
tar -xzf archive.tar.gz
bzip2 subor1.txt subor2.txt
ls
man gizp2
man gzip2
man bzip2
gzip
bzip2 *.txt
ls
man bzip2
bunzip2 *.bz2
ls
vi
vim subor1.txt
vim subor1.txt
exit
who
who > who.txt
ls
cat who.txt
crontab -e
crontab -e
crontab -e
crontab -e
date
crontab -e
ls
cat who.txt
ls -la
date
clear
la
pwd
vim .bashrc
/home/student/.bashrc
la
la /var/
man ln
ps
ps -f
ps -fa
ps aux
kill 4439
ps aux
kill 4441
ps
ps -aux
ps -a
kill 1564
kill -7777 1564
lpr /etc/passwd
lpq
lprm
ls
rm archive.tar.gz

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

rm who.txt.bz2
rm archive2.tar
ls
rm -R fsfds/
ls
r, r
rm r
ls
rm 1_ROB-r970_s300.JPG
ls
clear
vim subor1.txt
rm subor*
ls
vim subor1.txt
head /etc/group
head -15 /etc/group
tail -5 /etc/group
head -23 /etc/group
head -23 /etc/group | tail -1
sort /etc/group
cat /etc/group
sort /etc/group
sort /etc/group | tail -1
sort -r /etc/group | tail -1
sort -r /etc/group
cat -n /etc/group
head -23 /etc/group | tail -1
man alias
echo $0
echo $1
echo $2
alias hh='head -$1 $2 | tail -1'
hh 23 /etc/group
alias ha='head -$1 $2'
ha 23 /etc/passwd
alias hb='head $1 $2'
hb 23 /etc/passwd
hb -23 /etc/passwd
alias hc='head $1 $2 | tail -1'
hc -23 /etc/passwd
alias hc='head $1 $2 \| tail -1'
hc -23 /etc/passwd
alias hc='head $1 $2 | tail \-1'
hc -23 /etc/passwd
alias hc="head $1 $2 | tail -1"
hc -23 /etc/passwd
alias hc="head $1 $2 | tail"
hc -23 /etc/passwd
alias hc="head $1 $2 \| tail"
hc -23 /etc/passwd
alias hc="head $1 $2"
hc -23 /etc/passwd
alias hc="head $1 $2 | tail $3"
hc -23 /etc/passwd -1
alias hc="ls | wc -l"
alias hc="ls -a | wc -l"
alias hc="ls -l | wc -l"
hc
alias hc="ls $1 | wc -l"

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

hc -l
hc -la
hc -a
hc a
alias hc="head $1 $2 | tail -1"
shline() { head -n $1 "$2" | tail -n 1; }
shline(23 /etc/passwd)
shline(23, /etc/passwd)
shline 23 /etc/passwd
shline() 23 /etc/passwd
shline 23 /etc/passwd
clear
shline 23 /etc/passwd
cat /etc/passwd
cut -d: -f5 /etc/passwd
cut -d: -f1 /etc/passwd
cut -d: -f1 /etc/group
cut -d: -f2 /etc/group
cut -d: -f3 /etc/group
cut -d: -f4 /etc/group
cut -d: -f5 /etc/group
cat /etc/group
cut -d: -f1 /etc/group
cut -d: -f1 /etc/group | sort
cut -c 1-3 /etc/group | sort
cut -c 1-3 /etc/group | sort | uniq
cut -d: -f1 /etc/group | sort
history
history > historia_stv.txt
cut -f2-3
man cut
cut -f2-3
cut -f2,3
history | cut -f2,3
history | cut -f2-5
cut -d: -f2,3 /etc/passwd
cut -d: -f2-5 /etc/passwd
history
history | cut -f2
history | cut -f1
man cut
history | cut -d" " -f1
history | cut -d' ' -f1
history | cut -d[:space:] -f1
history | cut -d\ -f1
history | cut -d\ -f1
history | cut -d\ -f1
history | cut -d' ' -f1
history | cut -d ' ' -f1
history | cut -d ' ' -f1
history | cut -d ' ' -f1
cat historia_stv.txt
history | cut -d ' ' -f2
history | cut -d ' ' -f2
history | cut -d ' ' -f1
history | cut -d ' ' -f1
history | cut -d ' ' -f3
history | cut -d ' ' -f4
history | cut -d ' ' -f5
history | cut -d ' ' -f5-

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

history | cut -d ' ' -f5- | sort


history | cut -d ' ' -f5- | sort | uniq
history | cut -d ' ' -f5- | sort | uniq | wc -l
history | cut -d ' ' -f5- | sort | cat -n
history | cut -d ' ' -f5- | sort | uniq | cat -n
man cat
ls
ln -s /tmp/ mojetmp/
ln -s /tmp/ mojetmp
ls -la
ls -l | grep '^d......r'
ls | grep -v '.cc$'
ls | grep '.cc$'
ls | grep '.txt$'
ls | grep -v '.txt$'
wc subor1.txt
tr -cs "[:alpha:]" "\n" < subor1.txt
vim subor2.txt
tr -cs "[:alpha:]" "\n" < subor2.txt
tr "a" "A" < subor2.txt
tr "a" "A"
cat subor2.txt | tr "a" "A"
more /etc/group
more /etc/group
more /etc/group
more /etc/group
more /etc/group
less /etc/group
ls
file subor1.txt
file Desktop/
file mojetmp/
file *
file *.txt
file /bin/chmod
file /bin/tar
ls
tar -cf subor1.txt
tar -cf archive.tar *.txt
ls
file *
cat subor1.txt
vim subr11.txt
paste subor1.txt subr11.txt
aspell subor1.txt
aspell -c subor1.txt
aspell -c subor1.txt
aspell -c -lang=de_CH subor1.txt
aspell -c --lang=de_CH subor1.txt
aspell -c --lang=sk_SK subor1.txt
man aspell
aspell -c --lang=sk subor1.txt
aspell -c --lang=slo subor1.txt
ls
ls -l
ls -l | sort
ls -l | sort +4
ls -l | sort +5
man sort
ls -l | sort -5

781 sort --help


782 ls -l | sort -k 5
783 ls -l | sort -k 4
784 ls -l | sort -k 1
785 ls -l | sort -k 2
786 ls -l | sort -k 3
787 ls -l | sort -k 4
788 ls -l | sort -k 5
789 ls -l | sort -k 6
790 ls -l | sort -k 7
791 man sort
792 ls -l | sort -k 1
793 ls -l | sort -k 12
794 ls -l | sort -k 11
795 ls -l | sort -k 13
796 ls -l | sort -k 13man rmdir
797 man rmdir
798 find / -name who
799 find . -name who
800 find . -name who*
801 find . -name "who*"
802 ls -la
803 cat who.txt
804 find /usr/ -name "who*"
805 find /usr/ -type f -name "who*"
806 find /usr/ "who*"
807 find who*
808* find
809 find /usr/ who*
810 find /usr/who*
811 find who*
812 find /usr/ -type f -name "who*"
813 find /usr/ -type f -name "who*" -print
814 find /home/student/ -type f -name "who*"
815 find /home/student/ -type f -name "who*"
816 find /home/student/ -type f -name "who*"
$1}'
817 find /home/student/ -type f -name "who*"
$2}'
818 find /home/student/ -type f -name "who*"
0){print $2}'
819 find /home/student/ -type f -name "who*"
{print $2}'
820 find /home/student/ -type f -name "who*"
{print}'
821 find /home/student/ -type f -name "who*"
{print}' > subor
822 find /home/student/ -type f -name "who*"
{print}'
823 find /home/student/ -type f -name "who*"
824 find /home/student/ -type f -name "who*"
$1}'
825 find /home/student/ -type f -name "who*"
0){print}'
826 find /home/student/ -type f -name "who*"
0) {print}'
827 find /home/student/ -type f -name "who*"
0)print}'
828 find /home/student/ -type f -name "who*"
print}'

-exec wc -l {} \;
-exec wc -l {} \; | awk '{print
-exec wc -l {} \; | awk '{print
-exec wc -l {} \; | awk 'if($1>
-exec wc -l {} \; | awk '($1>0)
-exec wc -l {} \; | awk '($1>0)
-exec wc -l {} \; | awk '($1>0)
-exec wc -l {} \; | awk '($1>0)
-exec wc -l {} \;
-exec wc -l {} \; | awk '{print
-exec wc -l {} \; | awk 'if($1>
-exec wc -l {} \; | awk 'if($1>
-exec wc -l {} \; | awk '{if(1>
-exec wc -l {} \; | awk '{(1>0)

829 find /home/student/ -type f -name "who*"


0)print}'
830 man grep
831 find /usr/ -name "who*" -type f -exec wc
832 find /usr/ -name "who*" -type f -exec wc
p -v 0
833 find /usr/ -name "who*" -type f -exec wc
834 find /usr/ -name "who*" -type f -exec wc
835 find /usr/ -name "who*" -type f -exec wc
836 find /usr/ -name "who*" -type f -exec wc
837 du
838 df
839 quota
840 ls
841 time cat subor1.txt
842 w
843 users
844 whereis cat
845 uptime
846 ls -la | grep -v ^d
847 write tester
848 who
849 dsfds
850 ls
851 history > history_student

-exec wc -l {} \; | awk '{if(1>


-l {} \; | cut -d ' ' -f 1
-l {} \; | cut -d ' ' -f 1 | gre
-l
-l
-l
-l

{}
{}
{}
{}

\; | grep -v 0
\;
\; | grep -v 0
\; | grep -v ^0

Potrebbero piacerti anche