Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update linux.txt #266

Closed
wants to merge 1 commit into from
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
56 changes: 56 additions & 0 deletions homework/linux.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
1126 mkdir linux
1127 cd linux
1128 touch processes.txt
1129 ps aux > processes.txt
1130 cp processes.txt copy.txt
1131 mkdir backup/
1132 mv copy.txt backup/
1133 wc -l processes.txt
1134 wc -l processes.txt > selected.txt
1135 grep -rni /bin processes.txt >> selected.txt
1136 history
jarek1992@Ubuntu:~/JAREK/linux$ history | tail -n11 > commands.txt
jarek1992@Ubuntu:~/JAREK/linux$ cat selected.txt commands.txt
192 processes.txt
69:root 520 0.0 0.3 50036 6904 ? Ss 15:38 0:00 /usr/bin/python3 /usr/bin/networkd-dispatcher --run-startup-triggers
81:root 635 0.0 0.4 127156 8940 ? Ssl 15:38 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal
85:root 1609 0.0 0.1 284092 2048 ? Sl 15:38 0:05 /usr/bin/VBoxDRMClient
96:jarek19+ 2511 0.0 0.1 48528 3584 ? S<sl 15:38 0:00 /usr/bin/pipewire
97:jarek19+ 2513 0.0 0.1 32556 3456 ? Ssl 15:38 0:00 /usr/bin/pipewire-media-session
98:jarek19+ 2514 0.0 0.7 1431512 15912 ? S<sl 15:38 0:00 /usr/bin/pulseaudio --daemonize=no --log-target=journal
99:jarek19+ 2515 0.0 0.3 76256 6912 ? Ss 15:38 0:00 /snap/snapd-desktop-integration/83/usr/bin/snapd-desktop-integration
100:jarek19+ 2517 0.0 0.3 249812 6684 ? Sl 15:38 0:00 /usr/bin/gnome-keyring-daemon --daemonize --login
101:jarek19+ 2524 0.0 0.1 1005488 3712 ? Ssl 15:38 0:00 /usr/bin/ubuntu-report service
102:jarek19+ 2527 0.0 0.2 171408 5760 tty2 Ssl+ 15:38 0:00 /usr/libexec/gdm-wayland-session env GNOME_SHELL_SESSION_MODE=ubuntu /usr/bin/gnome-session --session=ubuntu
103:jarek19+ 2529 0.0 0.3 12000 6792 ? Ss 15:38 0:00 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
118:jarek19+ 2676 2.6 18.2 4144896 365992 ? Rsl 15:39 4:51 /usr/bin/gnome-shell
120:jarek19+ 2691 0.0 0.2 8564 4352 ? S 15:39 0:00 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-address 11 --address=unix:path=/run/user/1000/at-spi/bus
125:jarek19+ 2767 0.0 0.7 306064 14552 ? Sl 15:39 0:00 /snap/snapd-desktop-integration/83/usr/bin/snapd-desktop-integration
133:jarek19+ 2823 0.0 1.1 2608396 22672 ? Sl 15:39 0:00 /usr/bin/gjs /usr/share/gnome-shell/org.gnome.Shell.Notifications
134:jarek19+ 2825 0.0 0.0 2892 1664 ? Ss 15:39 0:00 sh -c /usr/bin/ibus-daemon --panel disable $([ "$XDG_SESSION_TYPE" = "x11" ] && echo "--xim")
149:jarek19+ 2855 0.0 0.4 324100 8068 ? Sl 15:39 0:03 /usr/bin/ibus-daemon --panel disable
156:jarek19+ 2984 0.0 0.0 29036 1308 ? S 15:39 0:00 /usr/bin/VBoxClient --clipboard
157:jarek19+ 2985 0.0 0.1 227224 3100 ? Sl 15:39 0:00 /usr/bin/VBoxClient --clipboard
159:jarek19+ 2992 0.0 0.7 207452 15736 ? S 15:39 0:04 /usr/bin/Xwayland :0 -rootless -noreset -accessx -core -auth /run/user/1000/.mutter-Xwaylandauth.8F3RK2 -listen 4 -listen 5 -displayfd 6 -initfd 7
160:jarek19+ 2998 0.0 3.3 718016 67532 ? Sl 15:39 0:02 /snap/snap-store/959/usr/bin/snap-store --gapplication-service
161:jarek19+ 3037 0.0 1.2 2542944 24952 ? Sl 15:39 0:00 /usr/bin/gjs /usr/share/gnome-shell/org.gnome.ScreenSaver
165:jarek19+ 3201 0.0 0.0 29036 1308 ? S 15:39 0:00 /usr/bin/VBoxClient --seamless
166:jarek19+ 3202 0.0 0.1 227324 2844 ? Sl 15:39 0:09 /usr/bin/VBoxClient --seamless
167:jarek19+ 3209 0.0 0.0 29036 1280 ? S 15:39 0:00 /usr/bin/VBoxClient --draganddrop
168:jarek19+ 3210 0.5 0.1 227840 2560 ? Sl 15:39 0:55 /usr/bin/VBoxClient --draganddrop
169:jarek19+ 3218 0.0 0.0 29036 1284 ? S 15:39 0:00 /usr/bin/VBoxClient --vmsvga-session
170:jarek19+ 3219 0.0 0.0 161140 1924 ? Sl 15:39 0:02 /usr/bin/VBoxClient --vmsvga-session
175:jarek19+ 4431 0.0 3.4 755184 68472 ? Sl 15:57 0:09 /usr/bin/nautilus --gapplication-service
180:jarek19+ 4938 0.0 0.9 1163164 18816 ? Sl 16:23 0:00 /usr/bin/snap userd
1127 cd linux
1128 touch processes.txt
1129 ps aux > processes.txt
1130 cp processes.txt copy.txt
1131 mkdir backup/
1132 mv copy.txt backup/
1133 wc -l processes.txt
1134 wc -l processes.txt > selected.txt
1135 grep -rni /bin processes.txt >> selected.txt
1136 history
1137 history | tail -n11 > commands.txt
jarek1992@Ubuntu:~/JAREK/linux$