From df158d6d4307cefb458c44f4cebd73dff4426ebb Mon Sep 17 00:00:00 2001 From: schlumphi Date: Sat, 31 Jan 2026 18:17:09 +0100 Subject: [PATCH 1/2] feat: submitted homework from linux chapter --- homework/linux.txt | 62 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/homework/linux.txt b/homework/linux.txt index e69de29b..61b5c0c3 100644 --- a/homework/linux.txt +++ b/homework/linux.txt @@ -0,0 +1,62 @@ +cat selected.txt commands.txt +579 processes.txt +233:nvidia-+ 1297 0.0 0.0 3328 1920 ? Ss 15:18 0:00 /usr/bin/nvidia-persistenced --user nvidia-persistenced --no-persistence-mode --verbose +240:root 1546 0.0 0.0 114780 22880 ? Ssl 15:18 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal +241:root 1557 0.0 0.1 2542956 49236 ? Ssl 15:18 0:03 /usr/bin/containerd +246:root 1868 0.0 0.2 3157384 79772 ? Ssl 15:18 0:03 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock +252:root 2504 0.0 0.0 1239212 14312 ? Sl 15:18 0:00 /usr/bin/containerd-shim-runc-v2 -namespace moby -id e0611043538dcb0594332826506082cc8a5bc6180ce572abc6860d1b87533d9f -address /run/containerd/containerd.sock +253:root 2505 0.0 0.0 1238892 14216 ? Sl 15:18 0:01 /usr/bin/containerd-shim-runc-v2 -namespace moby -id 7f917234cbcf542fe1108d81dd2c6b9919f67573f3cb274ed10f9aa938ce2107 -address /run/containerd/containerd.sock +254:root 2551 0.0 0.0 7460 3520 ? Ss 15:18 0:00 /bin/bash /assets/init-container +255:root 2553 0.0 0.0 224 0 ? Ss 15:18 0:00 /usr/bin/dumb-init /entrypoint run --user=gitlab-runner --working-directory=/home/gitlab-runner +257:root 2652 0.0 0.0 1746984 4480 ? Sl 15:18 0:00 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 2222 -container-ip 172.18.0.2 -container-port 22 -use-listen-fd +258:root 2658 0.0 0.0 1673252 4640 ? Sl 15:18 0:00 /usr/bin/docker-proxy -proto tcp -host-ip :: -host-port 2222 -container-ip 172.18.0.2 -container-port 22 -use-listen-fd +259:root 2667 0.0 0.0 1746984 4640 ? Sl 15:18 0:00 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 8080 -container-ip 172.18.0.2 -container-port 80 -use-listen-fd +260:root 2674 0.0 0.0 1746984 4640 ? Sl 15:18 0:00 /usr/bin/docker-proxy -proto tcp -host-ip :: -host-port 8080 -container-ip 172.18.0.2 -container-port 80 -use-listen-fd +261:root 2682 0.0 0.0 1746728 4480 ? Sl 15:18 0:00 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 8443 -container-ip 172.18.0.2 -container-port 443 -use-listen-fd +262:root 2690 0.0 0.0 1746984 4640 ? Sl 15:18 0:00 /usr/bin/docker-proxy -proto tcp -host-ip :: -host-port 8443 -container-ip 172.18.0.2 -container-port 443 -use-listen-fd +270:jz 2887 0.0 0.0 125832 17452 ? S processes.txt + 2027 cp processes.txt copy.txt + 2028 ls + 2029 man wc + 2030 wc -l > selected.txt + 2031 rm selected.txt + 2032 wc -l processes.txt > selected.txt + 2033 cat selected.txt + 2034 grep -n processes.txt "/bin" + 2035 grep -n "/bin" processes.txt + 2036 grep -n "/bin" processes.txt >> selected.txt + 2037 history + 2038 history | tail -n15 > commands.txt From 1fdefbe57c1e92160f7f535f64fba04e0607d9a0 Mon Sep 17 00:00:00 2001 From: schlumphi Date: Sat, 31 Jan 2026 18:44:20 +0100 Subject: [PATCH 2/2] fix: homework from linux chapter --- homework/linux.txt | 121 ++++++++++++++++++++++----------------------- 1 file changed, 60 insertions(+), 61 deletions(-) diff --git a/homework/linux.txt b/homework/linux.txt index 61b5c0c3..ee82516a 100644 --- a/homework/linux.txt +++ b/homework/linux.txt @@ -1,62 +1,61 @@ cat selected.txt commands.txt -579 processes.txt -233:nvidia-+ 1297 0.0 0.0 3328 1920 ? Ss 15:18 0:00 /usr/bin/nvidia-persistenced --user nvidia-persistenced --no-persistence-mode --verbose -240:root 1546 0.0 0.0 114780 22880 ? Ssl 15:18 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal -241:root 1557 0.0 0.1 2542956 49236 ? Ssl 15:18 0:03 /usr/bin/containerd -246:root 1868 0.0 0.2 3157384 79772 ? Ssl 15:18 0:03 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock -252:root 2504 0.0 0.0 1239212 14312 ? Sl 15:18 0:00 /usr/bin/containerd-shim-runc-v2 -namespace moby -id e0611043538dcb0594332826506082cc8a5bc6180ce572abc6860d1b87533d9f -address /run/containerd/containerd.sock -253:root 2505 0.0 0.0 1238892 14216 ? Sl 15:18 0:01 /usr/bin/containerd-shim-runc-v2 -namespace moby -id 7f917234cbcf542fe1108d81dd2c6b9919f67573f3cb274ed10f9aa938ce2107 -address /run/containerd/containerd.sock -254:root 2551 0.0 0.0 7460 3520 ? Ss 15:18 0:00 /bin/bash /assets/init-container -255:root 2553 0.0 0.0 224 0 ? Ss 15:18 0:00 /usr/bin/dumb-init /entrypoint run --user=gitlab-runner --working-directory=/home/gitlab-runner -257:root 2652 0.0 0.0 1746984 4480 ? Sl 15:18 0:00 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 2222 -container-ip 172.18.0.2 -container-port 22 -use-listen-fd -258:root 2658 0.0 0.0 1673252 4640 ? Sl 15:18 0:00 /usr/bin/docker-proxy -proto tcp -host-ip :: -host-port 2222 -container-ip 172.18.0.2 -container-port 22 -use-listen-fd -259:root 2667 0.0 0.0 1746984 4640 ? Sl 15:18 0:00 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 8080 -container-ip 172.18.0.2 -container-port 80 -use-listen-fd -260:root 2674 0.0 0.0 1746984 4640 ? Sl 15:18 0:00 /usr/bin/docker-proxy -proto tcp -host-ip :: -host-port 8080 -container-ip 172.18.0.2 -container-port 80 -use-listen-fd -261:root 2682 0.0 0.0 1746728 4480 ? Sl 15:18 0:00 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 8443 -container-ip 172.18.0.2 -container-port 443 -use-listen-fd -262:root 2690 0.0 0.0 1746984 4640 ? Sl 15:18 0:00 /usr/bin/docker-proxy -proto tcp -host-ip :: -host-port 8443 -container-ip 172.18.0.2 -container-port 443 -use-listen-fd -270:jz 2887 0.0 0.0 125832 17452 ? S processes.txt - 2027 cp processes.txt copy.txt - 2028 ls - 2029 man wc - 2030 wc -l > selected.txt - 2031 rm selected.txt - 2032 wc -l processes.txt > selected.txt - 2033 cat selected.txt - 2034 grep -n processes.txt "/bin" - 2035 grep -n "/bin" processes.txt - 2036 grep -n "/bin" processes.txt >> selected.txt - 2037 history - 2038 history | tail -n15 > commands.txt +588 processes.txt +230:nvidia-+ 1297 0.0 0.0 3328 1920 ? Ss 15:18 0:00 /usr/bin/nvidia-persistenced --user nvidia-persistenced --no-persistence-mode --verbose +237:root 1546 0.0 0.0 114780 22880 ? Ssl 15:18 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal +238:root 1557 0.0 0.1 2542956 49236 ? Ssl 15:18 0:06 /usr/bin/containerd +243:root 1868 0.0 0.2 3157384 80064 ? Ssl 15:18 0:05 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock +248:root 2504 0.0 0.0 1239212 14472 ? Sl 15:18 0:00 /usr/bin/containerd-shim-runc-v2 -namespace moby -id e0611043538dcb0594332826506082cc8a5bc6180ce572abc6860d1b87533d9f -address /run/containerd/containerd.sock +249:root 2505 0.0 0.0 1238892 14620 ? Sl 15:18 0:01 /usr/bin/containerd-shim-runc-v2 -namespace moby -id 7f917234cbcf542fe1108d81dd2c6b9919f67573f3cb274ed10f9aa938ce2107 -address /run/containerd/containerd.sock +250:root 2551 0.0 0.0 7460 3520 ? Ss 15:18 0:00 /bin/bash /assets/init-container +251:root 2553 0.0 0.0 224 0 ? Ss 15:18 0:00 /usr/bin/dumb-init /entrypoint run --user=gitlab-runner --working-directory=/home/gitlab-runner +253:root 2652 0.0 0.0 1746984 4480 ? Sl 15:18 0:00 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 2222 -container-ip 172.18.0.2 -container-port 22 -use-listen-fd +254:root 2658 0.0 0.0 1673252 4640 ? Sl 15:18 0:00 /usr/bin/docker-proxy -proto tcp -host-ip :: -host-port 2222 -container-ip 172.18.0.2 -container-port 22 -use-listen-fd +255:root 2667 0.0 0.0 1746984 4640 ? Sl 15:18 0:00 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 8080 -container-ip 172.18.0.2 -container-port 80 -use-listen-fd +256:root 2674 0.0 0.0 1746984 4640 ? Sl 15:18 0:00 /usr/bin/docker-proxy -proto tcp -host-ip :: -host-port 8080 -container-ip 172.18.0.2 -container-port 80 -use-listen-fd +257:root 2682 0.0 0.0 1746728 4480 ? Sl 15:18 0:00 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 8443 -container-ip 172.18.0.2 -container-port 443 -use-listen-fd +258:root 2690 0.0 0.0 1746984 4640 ? Sl 15:18 0:00 /usr/bin/docker-proxy -proto tcp -host-ip :: -host-port 8443 -container-ip 172.18.0.2 -container-port 443 -use-listen-fd +266:jz 2887 0.0 0.0 127732 18728 ? S processes.txt + 2048 cp processes.txt copy.txt + 2049 mkdir backup + 2050 mv copy.txt backup/ + 2051 wc -l processes.txt + 2052 wc -l processes.txt > selected.txt + 2053 grep -n "/bin" processes.txt >> selected.txt + 2054 history + 2055 history | tail -n12 > commands.txt