From 80e2a0c32c5b14ed01686414a8b2f67577dd46e6 Mon Sep 17 00:00:00 2001 From: MichalG315 <163155321+MichalG315@users.noreply.github.com> Date: Fri, 11 Jul 2025 15:44:38 +0200 Subject: [PATCH 1/2] Update linux.txt --- homework/linux.txt | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/homework/linux.txt b/homework/linux.txt index e69de29b..47b5639b 100644 --- a/homework/linux.txt +++ b/homework/linux.txt @@ -0,0 +1,36 @@ +Michal@UbuntuMGr:~/LinuxHomework$ cat selected.txt commands.txt +226 processes.txt +root 1273 0.0 0.0 364316 2372 ? Sl 15:17 0:01 /usr/bin/VBoxDRMClient +root 1374 0.0 0.1 120924 22464 ? Ssl 15:17 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal +Michal 2056 0.0 0.0 123976 14124 ? S processes.txt + 269 cp processes.txt copy.txt + 270 mkdir backup + 271 mv copy.txt ./backup/ + 272 wc -l processes.txt > selected.txt + 273 grep /bin processes.txt >> selected.txt + 274 hisotry + 275 history + 276 history | tail -n12 > commands.txt From 8e1fc9d7a9ff32b31299522a394d2fc298d8a200 Mon Sep 17 00:00:00 2001 From: MichalG315 <163155321+MichalG315@users.noreply.github.com> Date: Fri, 11 Jul 2025 16:03:34 +0200 Subject: [PATCH 2/2] Update linux.txt --- homework/linux.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homework/linux.txt b/homework/linux.txt index 47b5639b..7a27eed1 100644 --- a/homework/linux.txt +++ b/homework/linux.txt @@ -30,7 +30,7 @@ Michal 3192 0.0 0.1 577356 30868 ? Sl 15:18 0:00 /usr/bin/upda 270 mkdir backup 271 mv copy.txt ./backup/ 272 wc -l processes.txt > selected.txt - 273 grep /bin processes.txt >> selected.txt + 273 grep -n "/bin" processes.txt >> selected.txt 274 hisotry 275 history 276 history | tail -n12 > commands.txt