From fe1ff94e8f93a664691994bbfdac4839bd13a53c Mon Sep 17 00:00:00 2001 From: _flow_ <134788528+skarAdev@users.noreply.github.com> Date: Tue, 5 Aug 2025 01:26:51 +0200 Subject: [PATCH 1/2] Update linux.txt --- homework/linux.txt | 48 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/homework/linux.txt b/homework/linux.txt index e69de29b..5dfa4c08 100644 --- a/homework/linux.txt +++ b/homework/linux.txt @@ -0,0 +1,48 @@ +linux@[main ?]> cat selected.txt commands.txt +30 processes.txt +14:root 221 0.0 0.4 30140 18048 ? Ss Aug04 0:00 /usr/bin/python3 /usr/bin/networkd-dispatcher --run-startup-triggers +20:root 260 0.0 0.5 107164 21376 ? Ssl Aug04 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal +24:root 371 0.0 0.1 7524 4608 pts/1 Ss Aug04 0:00 /bin/login -f + 292 mkdir nowy_katalog + 293 touch processes.txt + 294 ps aux + 295 ps aux > processes.txt + 296 cat processes.txt + 297 clear + 298 cp processes.txt copy.txt + 299 mkdir backup + 300 mv copy.txt backup/ + 301 wc --help + 302 clear + 303 cat processes.txt + 304 wc -l processes.txt + 305 wc processes.txt + 306 wc -l processes.txt > selected.txt + 307 cat selected.txt + 308 grep --help + 309 grep -n '/bin' processes.txt + 310 grep -qn '/bin' processes.txt + 311 grep -on '/bin' processes.txt + 312 grep -c '/bin' processes.txt + 313 grep -nc '/bin' processes.txt + 314 grep -cn '/bin' processes.txt + 315 grep -n '/bin' processes.txt + 316 grep -no '/bin' processes.txt + 317 cat selected.txt + 318 cat processes.txt + 319 grep -no '/bin' processes.txt + 320 grep -n '/bin' processes.txt + 321 grep -n '/bin' processes.txt > selected.txt + 322 cat selected.txt + 323 wc -l processes.txt > selected.txt + 324 grep -n '/bin' processes.txt >> selected.txt + 325 cat selected.txt + 326 history + 327 tail --help + 328 man tail + 329 man tail --line + 330 history > tail --lines=+34 + 331 history | tail --lines=+34 + 332 history + 333 history | tail -38 +linux@[main ?]> From 12978eea1848e6ecb51365c2c83cde58c42046fb Mon Sep 17 00:00:00 2001 From: _flow_ <134788528+skarAdev@users.noreply.github.com> Date: Tue, 5 Aug 2025 22:57:37 +0200 Subject: [PATCH 2/2] Update linux.txt Fixed job issue: tail -n --- homework/linux.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/homework/linux.txt b/homework/linux.txt index 5dfa4c08..f18739e1 100644 --- a/homework/linux.txt +++ b/homework/linux.txt @@ -45,4 +45,6 @@ linux@[main ?]> cat selected.txt commands.txt 331 history | tail --lines=+34 332 history 333 history | tail -38 + 334 history | tail -n 39 > commands.txt linux@[main ?]> +