Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions homework/linux.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
mikss@DESKTOP-ENMK206:~/Katalog$ cat selected.txt commands.txt
26
root 104 0.0 0.0 2888 1948 ? Ss 13:08 0:00 /bin/sh /usr/lib/systemd/scripts/chronyd-starter.sh -n -F 1
root 133 0.0 0.1 44096 29780 ? Ss 13:08 0:00 /usr/bin/python3 /usr/bin/networkd-dispatcher --run-startup-triggers
root 234 0.0 0.2 123460 32684 ? Ssl 13:08 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal
258 mkdir Katalog
259 cd Katalog
260 touch processes.txt
261 ps aux > processes.txt
262 cp processes.txt copy.txt
263 mkdir backup
264 mv copy.txt backup
265 wc -l processes.txt > selected.txt
266 grep -n "/bin" processes.txt >> selected.txt
267 history | tail -10 > commands.txt