From 0231b63cbcc35957e25702a038f5bd32a99bfadf Mon Sep 17 00:00:00 2001 From: ivanpeu28-sudo Date: Sun, 11 Oct 2026 23:28:54 +0200 Subject: [PATCH 1/3] Add linux.txt with Linux command history --- homework/linux.txt | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/homework/linux.txt b/homework/linux.txt index e69de29b..426513f7 100644 --- a/homework/linux.txt +++ b/homework/linux.txt @@ -0,0 +1,46 @@ +MrPrincipal@HopeOfTheWorld:~/lekcja$ cat selected.txt command.txt +19 +8 +345 mkdir lekcja +346 cd lekcja/ +347 touch processes.txt +348 ps aux +349 vim processes.txt +350 cp processes.txt copy.txt +351 mkdir backup +352 mv copy.txt ./backup +353 cd backup/ +354 ls +355 .. +356 cd .. +357 vim processes.txt +358 touch selected.txt +359 cat 19 selected.txt +360 cat selected.txt 19 +361 vim selected.txt +362 grep /bin +363 grep bin +364 vim processes.txt +365 grep root +366 ps +367 kill 795 +368 ps +369 kill -9 795 +370 ps +371 grep VSZ +372 grep -rni vsz +373 grep -rni /bin +374 vim selected.txt +375 cat 8 selected.txt +376 echo 8 >> selected.txt +377 cat selected.txt +378 history +379 history | tail +23 +380 history | tail +381 history | tail +2 +382 history | tail-2 +383 history | tail -2 +384 history | tail -23 +385 history | tail -30 +386 history | tail -32 +387 history | tail -43 From 09b129572c6e27e4825e5f233e21dc981c045adc Mon Sep 17 00:00:00 2001 From: MrPrincipal Date: Sun, 11 Oct 2026 23:50:47 +0200 Subject: [PATCH 2/3] Update linux.txt with command history and edits --- homework/linux.txt | 64 +++++++++++++--------------------------------- 1 file changed, 18 insertions(+), 46 deletions(-) diff --git a/homework/linux.txt b/homework/linux.txt index 426513f7..22f967b2 100644 --- a/homework/linux.txt +++ b/homework/linux.txt @@ -1,46 +1,18 @@ -MrPrincipal@HopeOfTheWorld:~/lekcja$ cat selected.txt command.txt -19 -8 -345 mkdir lekcja -346 cd lekcja/ -347 touch processes.txt -348 ps aux -349 vim processes.txt -350 cp processes.txt copy.txt -351 mkdir backup -352 mv copy.txt ./backup -353 cd backup/ -354 ls -355 .. -356 cd .. -357 vim processes.txt -358 touch selected.txt -359 cat 19 selected.txt -360 cat selected.txt 19 -361 vim selected.txt -362 grep /bin -363 grep bin -364 vim processes.txt -365 grep root -366 ps -367 kill 795 -368 ps -369 kill -9 795 -370 ps -371 grep VSZ -372 grep -rni vsz -373 grep -rni /bin -374 vim selected.txt -375 cat 8 selected.txt -376 echo 8 >> selected.txt -377 cat selected.txt -378 history -379 history | tail +23 -380 history | tail -381 history | tail +2 -382 history | tail-2 -383 history | tail -2 -384 history | tail -23 -385 history | tail -30 -386 history | tail -32 -387 history | tail -43 +MrPrincipal@HopeOfTheWorld:~$ history | tail -17 > commands.txt + 401 c test + 402 cd test + 403 touch processes.txt + 404 ps aux > processes.txt + 405 cp processes.txt copy.txt + 406 mkdir backup + 407 mv copy.txt backup/ + 408 touch selected.txt + 409 echo 50 selected.txt + 410 echo 50 > selected.txt + 411 grep -rni /bin + 412 grep -rni /bin >> selected.txt + 413 history + 414 history | tail -14 + 415 history | tail -16 + 416 touch commands.txt + 417 history | tail -17 > commands.txt From 4030ed56e9f93c0df943a610d4a76862c3b88fde Mon Sep 17 00:00:00 2001 From: MrPrincipal Date: Sun, 11 Oct 2026 23:53:25 +0200 Subject: [PATCH 3/3] Revise command history in linux.txt Updated command history in linux.txt to include new entries. --- homework/linux.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/homework/linux.txt b/homework/linux.txt index 22f967b2..07d3f273 100644 --- a/homework/linux.txt +++ b/homework/linux.txt @@ -16,3 +16,4 @@ MrPrincipal@HopeOfTheWorld:~$ history | tail -17 > commands.txt 415 history | tail -16 416 touch commands.txt 417 history | tail -17 > commands.txt +MrPrincipal@HopeOfTheWorld:~$ cat selected.txt commands.txt