From bb2029233d27c4d11a4dc609eb4c12bf11a77126 Mon Sep 17 00:00:00 2001 From: Marek <98259329+Pulsarnixx@users.noreply.github.com> Date: Tue, 25 Aug 2026 13:41:55 +0200 Subject: [PATCH 1/5] Add process list and command history to linux.txt --- homework/linux.txt | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/homework/linux.txt b/homework/linux.txt index e69de29b..1c9740c8 100644 --- a/homework/linux.txt +++ b/homework/linux.txt @@ -0,0 +1,31 @@ +heimdal@bifrost:~/Dev/coders-school/linux$ cat exercise/selected.txt commands.txt +309 +message+ 812 0.0 0.0 12048 7212 ? Ss Aug24 0:06 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only +root 928 0.0 0.3 2393208 51468 ? Ssl Aug24 0:23 /usr/bin/containerd +root 1009 0.0 0.5 2566180 84528 ? Ssl Aug24 0:03 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock +heimdal 1884 0.0 0.1 83660 17684 ? S exercise/processes.txt + 2052 cp exercise/processes.txt exercise/copy.txt + 2053 mkdir backup + 2054 mv exercise/copy.txt backup/ + 2055 wc -l exercise/processes.txt + 2056 echo 309 > exercise/selected.txt + 2057 grep "/bin" exercise/processes.txt >> exercise/selected.txt + 2058 history + 2059 history | tail -n 10 > commands.txt From a4d8dc552f403115cf564a3f2dfd23eaf45dab96 Mon Sep 17 00:00:00 2001 From: Marek <98259329+Pulsarnixx@users.noreply.github.com> Date: Tue, 25 Aug 2026 13:50:20 +0200 Subject: [PATCH 2/5] Update linux.txt with process command outputs --- homework/linux.txt | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/homework/linux.txt b/homework/linux.txt index 1c9740c8..bcddf23b 100644 --- a/homework/linux.txt +++ b/homework/linux.txt @@ -1,31 +1,31 @@ heimdal@bifrost:~/Dev/coders-school/linux$ cat exercise/selected.txt commands.txt -309 +309 exercise/processes.txt message+ 812 0.0 0.0 12048 7212 ? Ss Aug24 0:06 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only root 928 0.0 0.3 2393208 51468 ? Ssl Aug24 0:23 /usr/bin/containerd root 1009 0.0 0.5 2566180 84528 ? Ssl Aug24 0:03 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock heimdal 1884 0.0 0.1 83660 17684 ? S exercise/processes.txt - 2052 cp exercise/processes.txt exercise/copy.txt - 2053 mkdir backup - 2054 mv exercise/copy.txt backup/ - 2055 wc -l exercise/processes.txt - 2056 echo 309 > exercise/selected.txt - 2057 grep "/bin" exercise/processes.txt >> exercise/selected.txt - 2058 history - 2059 history | tail -n 10 > commands.txt + 2067 touch exercise/processes.txt + 2068 ps aux > exercise/processes.txt + 2069 cp exercise/processes.txt exercise/copy.txt + 2070 mkdir backup + 2071 mv exercise/copy.txt backup/copy.txt + 2072 wc -l exercise/processes.txt + 2073 wc -l exercise/processes.txt > exercise/selected.txt + 2074 grep /bin exercise/processes.txt >> exercise/selected.txt + 2075 history + 2076 history | tail -n 10 > commands.txt From e4280b441752b11cb98989610b18fcecdb28adbd Mon Sep 17 00:00:00 2001 From: Marek <98259329+Pulsarnixx@users.noreply.github.com> Date: Tue, 25 Aug 2026 13:53:28 +0200 Subject: [PATCH 3/5] Update linux.txt with process commands and history --- homework/linux.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homework/linux.txt b/homework/linux.txt index bcddf23b..d8cb2598 100644 --- a/homework/linux.txt +++ b/homework/linux.txt @@ -26,6 +26,6 @@ heimdal 18883 0.0 0.0 116000 8832 ? Ssl 10:28 0:00 /usr/bin/spee 2071 mv exercise/copy.txt backup/copy.txt 2072 wc -l exercise/processes.txt 2073 wc -l exercise/processes.txt > exercise/selected.txt - 2074 grep /bin exercise/processes.txt >> exercise/selected.txt + 2074 grep "/bin" exercise/processes.txt >> exercise/selected.txt 2075 history 2076 history | tail -n 10 > commands.txt From 427e37fb805c0ff8ca27dfeca8084ab1967c170f Mon Sep 17 00:00:00 2001 From: Marek <98259329+Pulsarnixx@users.noreply.github.com> Date: Tue, 25 Aug 2026 13:56:45 +0200 Subject: [PATCH 4/5] Update linux.txt --- homework/linux.txt | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/homework/linux.txt b/homework/linux.txt index d8cb2598..8e2d0fc2 100644 --- a/homework/linux.txt +++ b/homework/linux.txt @@ -1,24 +1,6 @@ heimdal@bifrost:~/Dev/coders-school/linux$ cat exercise/selected.txt commands.txt 309 exercise/processes.txt -message+ 812 0.0 0.0 12048 7212 ? Ss Aug24 0:06 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only -root 928 0.0 0.3 2393208 51468 ? Ssl Aug24 0:23 /usr/bin/containerd -root 1009 0.0 0.5 2566180 84528 ? Ssl Aug24 0:03 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock -heimdal 1884 0.0 0.1 83660 17684 ? S exercise/processes.txt 2069 cp exercise/processes.txt exercise/copy.txt @@ -26,6 +8,6 @@ heimdal 18883 0.0 0.0 116000 8832 ? Ssl 10:28 0:00 /usr/bin/spee 2071 mv exercise/copy.txt backup/copy.txt 2072 wc -l exercise/processes.txt 2073 wc -l exercise/processes.txt > exercise/selected.txt - 2074 grep "/bin" exercise/processes.txt >> exercise/selected.txt + 2074 grep -c "/bin" exercise/processes.txt >> exercise/selected.txt 2075 history 2076 history | tail -n 10 > commands.txt From bcb8dfa9381c74be9230202e865f5dbd66459b83 Mon Sep 17 00:00:00 2001 From: Marek <98259329+Pulsarnixx@users.noreply.github.com> Date: Tue, 25 Aug 2026 14:03:00 +0200 Subject: [PATCH 5/5] Update linux.txt with process command history --- homework/linux.txt | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/homework/linux.txt b/homework/linux.txt index 8e2d0fc2..7eee8ce5 100644 --- a/homework/linux.txt +++ b/homework/linux.txt @@ -1,6 +1,24 @@ heimdal@bifrost:~/Dev/coders-school/linux$ cat exercise/selected.txt commands.txt 309 exercise/processes.txt -19 +139:message+ 812 0.0 0.0 12048 7212 ? Ss Aug24 0:06 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only +152:root 928 0.0 0.3 2393208 51468 ? Ssl Aug24 0:23 /usr/bin/containerd +154:root 1009 0.0 0.5 2566180 84528 ? Ssl Aug24 0:03 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock +162:heimdal 1884 0.0 0.1 83660 17684 ? S exercise/processes.txt 2069 cp exercise/processes.txt exercise/copy.txt @@ -8,6 +26,6 @@ heimdal@bifrost:~/Dev/coders-school/linux$ cat exercise/selected.txt commands.tx 2071 mv exercise/copy.txt backup/copy.txt 2072 wc -l exercise/processes.txt 2073 wc -l exercise/processes.txt > exercise/selected.txt - 2074 grep -c "/bin" exercise/processes.txt >> exercise/selected.txt + 2074 grep -n "/bin" exercise/processes.txt >> exercise/selected.txt 2075 history 2076 history | tail -n 10 > commands.txt