From 8fa3a50ff704d29f5e1f165af34d7df74f5a8ac1 Mon Sep 17 00:00:00 2001 From: Bartekr100 Date: Fri, 31 Jul 2026 16:06:12 +0200 Subject: [PATCH 1/3] Add Linux command history and process list --- homework/linux.txt | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/homework/linux.txt b/homework/linux.txt index e69de29b..18fe83c3 100644 --- a/homework/linux.txt +++ b/homework/linux.txt @@ -0,0 +1,24 @@ +bartek@LAPTOP-64B3IS3E:~$ cat selected.txt commands.txt +36 +15:root 228 0.0 0.2 38888 21664 ? Ss 15:50 0:00 /usr/bin/python3 /usr/bin/networkd-dispatcher --run-startup-triggers +24:root 280 0.0 0.2 115916 23660 ? Ssl 15:50 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal +28:root 395 0.0 0.0 7524 5032 pts/1 Ss 15:50 0:00 /bin/login -f +31:bartek 455 0.0 0.0 37156 6620 ? Ssl 15:50 0:00 /usr/bin/pipewire +32:bartek 457 0.0 0.0 21184 7032 ? Ssl 15:50 0:00 /usr/bin/pipewire-media-session +35:bartek 483 0.0 0.0 8300 4596 ? Ss 15:50 0:00 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only + 1999 ps aux > directory/processes.txt + 2000 cp directory/processes.txt directory/copy.txt + 2001 mkdir backup + 2002 mv directory/copy.txt backup + 2003 wc -n directory/processes.txt + 2004 man wc + 2005 wc -l directory/processes.txt + 2006 echo 36 > selected.txt + 2007 grep "/bin" directory/processes.txt + 2008 man grep + 2009 grep "/bin" directory/processes.txt -n + 2010 grep "/bin" directory/processes.txt -n >> selected.txt + 2011 history + 2012 hisotry | tail -n14 > commands.txt + 2013 history + 2014 history | tail -n16 > commands.txt From 231381fdf07698e9742d5d12d6a73369bbf04bf2 Mon Sep 17 00:00:00 2001 From: Bartekr100 Date: Fri, 31 Jul 2026 16:53:27 +0200 Subject: [PATCH 2/3] Modify linux.txt with updated process list Updated the list of processes and commands in linux.txt. --- homework/linux.txt | 46 ++++++++++++++++++++++------------------------ 1 file changed, 22 insertions(+), 24 deletions(-) diff --git a/homework/linux.txt b/homework/linux.txt index 18fe83c3..69d7fe5f 100644 --- a/homework/linux.txt +++ b/homework/linux.txt @@ -1,24 +1,22 @@ -bartek@LAPTOP-64B3IS3E:~$ cat selected.txt commands.txt -36 -15:root 228 0.0 0.2 38888 21664 ? Ss 15:50 0:00 /usr/bin/python3 /usr/bin/networkd-dispatcher --run-startup-triggers -24:root 280 0.0 0.2 115916 23660 ? Ssl 15:50 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal -28:root 395 0.0 0.0 7524 5032 pts/1 Ss 15:50 0:00 /bin/login -f -31:bartek 455 0.0 0.0 37156 6620 ? Ssl 15:50 0:00 /usr/bin/pipewire -32:bartek 457 0.0 0.0 21184 7032 ? Ssl 15:50 0:00 /usr/bin/pipewire-media-session -35:bartek 483 0.0 0.0 8300 4596 ? Ss 15:50 0:00 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only - 1999 ps aux > directory/processes.txt - 2000 cp directory/processes.txt directory/copy.txt - 2001 mkdir backup - 2002 mv directory/copy.txt backup - 2003 wc -n directory/processes.txt - 2004 man wc - 2005 wc -l directory/processes.txt - 2006 echo 36 > selected.txt - 2007 grep "/bin" directory/processes.txt - 2008 man grep - 2009 grep "/bin" directory/processes.txt -n - 2010 grep "/bin" directory/processes.txt -n >> selected.txt - 2011 history - 2012 hisotry | tail -n14 > commands.txt - 2013 history - 2014 history | tail -n16 > commands.txt +36 processes.txt +15:root 228 0.0 0.2 38888 21664 ? Ss 15:54 0:00 /usr/bin/python3 /usr/bin/networkd-dispatcher --run-startup-triggers +23:root 280 0.0 0.2 115916 23660 ? Ssl 15:54 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal +27:root 395 0.0 0.0 7524 5032 pts/1 Ss 15:54 0:00 /bin/login -f +30:bartek 455 0.0 0.0 37156 6620 ? Ssl 15:54 0:00 /usr/bin/pipewire +31:bartek 457 0.0 0.0 21184 7032 ? Ssl 15:54 0:00 /usr/bin/pipewire-media-session +34:bartek 483 0.0 0.0 8300 4596 ? Ss 15:54 0:00 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only + 2057 touch processes.txt + 2058 ps aux > processes.txt + 2059 cp processes.txt copy.txt + 2060 mkdir backup + 2061 mv copy.txt backup/ + 2062 cd backup + 2063 ls + 2064 cd .. + 2065 wc -l processes.txt + 2066 man wc + 2067 wc -l processes.txt > selected.txt + 2068 grep -n "/bin" processes.txt >> selected.txt + 2069 cat selected.txt + 2070 history + 2071 history | tail -n15 > commands.txt From 9cc29a9378e20e45e4834c7872233f324506f637 Mon Sep 17 00:00:00 2001 From: Bartekr100 Date: Fri, 31 Jul 2026 16:59:39 +0200 Subject: [PATCH 3/3] Update processes.txt content and command history --- homework/linux.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homework/linux.txt b/homework/linux.txt index 69d7fe5f..e1c308a9 100644 --- a/homework/linux.txt +++ b/homework/linux.txt @@ -17,6 +17,6 @@ 2066 man wc 2067 wc -l processes.txt > selected.txt 2068 grep -n "/bin" processes.txt >> selected.txt - 2069 cat selected.txt + 2069 cat selected.txt commands.txt 2070 history 2071 history | tail -n15 > commands.txt