Skip to content
Open
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
22 changes: 22 additions & 0 deletions homework/linux.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
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 commands.txt
2070 history
2071 history | tail -n15 > commands.txt