Skip to content
Open
Show file tree
Hide file tree
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
Binary file added 1.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 1.2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 1.3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 2.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 2.2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 2.3.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 2.3.2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 2.4.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 2.4.2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions java-log.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Script started on 2024-05-07 09:54:06+03:00 [TERM="xterm-256color" TTY="/dev/pts/1" COLUMNS="80" LINES="24"]
[?2004h]0;nik@nikkin: ~/downloadsnik@nikkin:~/downloads$ sudo shutdown nowip -br asush user@remote-server-ipapt install sshd-[11@sudo systemctl restartnano /etc/mybannerssh/sshd_configjava -version
[?2004ljava version "21.0.3" 2024-04-16 LTS
Java(TM) SE Runtime Environment (build 21.0.3+7-LTS-152)
Java HotSpot(TM) 64-Bit Server VM (build 21.0.3+7-LTS-152, mixed mode, sharing)
[?2004h]0;nik@nikkin: ~/downloadsnik@nikkin:~/downloads$ update a--altrenatives --config java[1@s[1@u[1@d[1@o[1@ [1@e
[?2004lsudo: unable to resolve host nikkin: Неизвестное имя или служба
[sudo] пароль для nik:
Есть 2 варианта для альтернативы java (предоставляет /usr/bin/java).

Выбор Путь Приор Состояние
------------------------------------------------------------
* 0 /usr/lib/jvm/jdk-21-oracle-x64/bin/java 352346112 автоматический режим
1 /usr/lib/jvm/java-17-openjdk-amd64/bin/java 1711 ручной режим
2 /usr/lib/jvm/jdk-21-oracle-x64/bin/java 352346112 ручной режим

Нажмите «enter», чтобы не менять текущий выбор[*], или введите нужное число: 1
update-alternatives: используется /usr/lib/jvm/java-17-openjdk-amd64/bin/java для предоставления /usr/bin/java (java) в ручном режиме
[?2004h]0;nik@nikkin: ~/downloadsnik@nikkin:~/downloads$ sudo update-alternatives --config javajava -version
[?2004lopenjdk version "17.0.11" 2024-04-16
OpenJDK Runtime Environment (build 17.0.11+9-Debian-1deb12u1)
OpenJDK 64-Bit Server VM (build 17.0.11+9-Debian-1deb12u1, mixed mode, sharing)
[?2004h]0;nik@nikkin: ~/downloadsnik@nikkin:~/downloads$ exit
[?2004lexit

Script done on 2024-05-07 09:56:27+03:00 [COMMAND_EXIT_CODE="0"]
Expand Down
1 change: 0 additions & 1 deletion lesson3/common_file

This file was deleted.

27 changes: 27 additions & 0 deletions nginx-log.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Script started on 2024-05-07 10:44:39+03:00 [TERM="xterm-256color" TTY="/dev/pts/1" COLUMNS="179" LINES="44"]
[?2004h]0;nik@nikkin: ~/downloadsnik@nikkin:~/downloads$ exitkill 4187top &ps -usystemctl enabelle nginx.seervivrvice
[?2004lSynchronizing state of nginx.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable nginx
[?2004h]0;nik@nikkin: ~/downloadsnik@nikkin:~/downloads$ sudo service nginx status
[?2004lsudo: unable to resolve host nikkin: Неизвестное имя или служба
[sudo] пароль для nik:
Попробуйте ещё раз.
[sudo] пароль для nik:
[?1h=● nginx.service - nginx
Loaded: loaded (]8;;file://nikkin/etc/systemd/system/nginx.service/etc/systemd/system/nginx.service]8;;; enabled; preset: enabled)
Active: active (running) since Tue 2024-05-07 10:12:43 MSK; 33min ago
Main PID: 4912 (nginx)
Tasks: 3 (limit: 4587)
Memory: 2.2M
CPU: 26ms
CGroup: /system.slice/nginx.service
├─4912 "nginx: master process /usr/sbin/nginx -g daemon on; master_process on;"
├─4914 "nginx: worker process"
└─4915 "nginx: worker process"

мая 07 10:12:43 nikkin systemd[1]: Starting nginx.service - A high performance web server and a reverse proxy server...
мая 07 10:12:43 nikkin systemd[1]: Started nginx.service - A high performance web server and a reverse proxy server.
[?1l>[?2004h]0;nik@nikkin: ~/downloadsnik@nikkin:~/downloads$ exit
[?2004lexit

Script done on 2024-05-07 10:47:51+03:00 [COMMAND_EXIT_CODE="0"]
Expand Down
177 changes: 177 additions & 0 deletions ps-log.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,177 @@
Script started on 2024-05-07 10:08:07+03:00 [TERM="xterm-256color" TTY="/dev/pts/1" COLUMNS="179" LINES="44"]
[?2004h]0;nik@nikkin: ~/downloadsnik@nikkin:~/downloads$ ps -Aps -A
[?2004l PID TTY TIME CMD
1 ? 00:00:00 systemd
2 ? 00:00:00 kthreadd
3 ? 00:00:00 rcu_gp
4 ? 00:00:00 rcu_par_gp
5 ? 00:00:00 slub_flushwq
6 ? 00:00:00 netns
8 ? 00:00:00 kworker/0:0H-events_highpri
11 ? 00:00:00 mm_percpu_wq
12 ? 00:00:00 rcu_tasks_kthread
13 ? 00:00:00 rcu_tasks_rude_kthread
14 ? 00:00:00 rcu_tasks_trace_kthread
15 ? 00:00:00 ksoftirqd/0
16 ? 00:00:00 rcu_preempt
17 ? 00:00:00 migration/0
18 ? 00:00:00 idle_inject/0
19 ? 00:00:00 cpuhp/0
20 ? 00:00:00 cpuhp/1
21 ? 00:00:00 idle_inject/1
22 ? 00:00:00 migration/1
23 ? 00:00:00 ksoftirqd/1
28 ? 00:00:00 kdevtmpfs
29 ? 00:00:00 inet_frag_wq
30 ? 00:00:00 kauditd
31 ? 00:00:00 khungtaskd
32 ? 00:00:00 oom_reaper
33 ? 00:00:00 writeback
34 ? 00:00:00 kcompactd0
35 ? 00:00:00 ksmd
36 ? 00:00:00 khugepaged
37 ? 00:00:00 kintegrityd
38 ? 00:00:00 kblockd
39 ? 00:00:00 blkcg_punt_bio
40 ? 00:00:00 tpm_dev_wq
41 ? 00:00:00 edac-poller
42 ? 00:00:00 devfreq_wq
43 ? 00:00:00 kworker/0:1H-kblockd
44 ? 00:00:00 kswapd0
48 ? 00:00:00 kworker/u4:3-flush-8:0
53 ? 00:00:00 kthrotld
55 ? 00:00:00 acpi_thermal_pm
56 ? 00:00:00 mld
57 ? 00:00:00 ipv6_addrconf
58 ? 00:00:00 kworker/1:1H-kblockd
63 ? 00:00:00 kstrp
67 ? 00:00:00 kworker/u5:0
135 ? 00:00:00 ata_sff
136 ? 00:00:00 scsi_eh_0
137 ? 00:00:00 scsi_tmf_0
138 ? 00:00:00 scsi_eh_1
139 ? 00:00:00 scsi_tmf_1
140 ? 00:00:00 scsi_eh_2
141 ? 00:00:00 scsi_tmf_2
151 ? 00:00:00 irq/18-vmwgfx
152 ? 00:00:00 ttm
191 ? 00:00:00 jbd2/sda1-8
192 ? 00:00:00 ext4-rsv-conver
241 ? 00:00:00 systemd-journal
287 ? 00:00:00 systemd-udevd
316 ? 00:00:00 psimon
378 ? 00:00:04 avahi-daemon
379 ? 00:00:00 cron
380 ? 00:00:00 dbus-daemon
387 ? 00:00:00 avahi-daemon
392 ? 00:00:00 polkitd
394 ? 00:00:00 systemd-logind
399 ? 00:00:00 udisksd
405 ? 00:00:00 cryptd
431 ? 00:00:02 NetworkManager
435 ? 00:00:00 wpa_supplicant
455 ? 00:00:00 ModemManager
608 ? 00:00:00 sshd
986 ? 00:00:01 VBoxDRMClient
989 ? 00:00:00 VBoxService
1193 ? 00:00:00 ntpd
1384 ? 00:00:00 lxdm-binary
1394 tty1 00:00:00 agetty
1395 tty7 00:00:33 Xorg
1433 ? 00:00:00 lxdm-session
1435 ? 00:00:00 psimon
1437 ? 00:00:00 systemd
1438 ? 00:00:00 (sd-pam)
1454 ? 00:00:00 pulseaudio
1456 ? 00:00:00 gnome-keyring-d
1457 ? 00:00:00 rtkit-daemon
1463 ? 00:00:00 dbus-daemon
1467 ? 00:00:00 openbox
1534 ? 00:00:00 VBoxClient
1535 ? 00:00:00 VBoxClient
1549 ? 00:00:00 VBoxClient
1550 ? 00:00:01 VBoxClient
1557 ? 00:00:00 VBoxClient
1558 ? 00:00:06 VBoxClient
1564 ? 00:00:00 VBoxClient
1567 ? 00:00:00 VBoxClient
1572 ? 00:00:00 ssh-agent
1589 ? 00:00:01 ibus-daemon
1593 ? 00:00:00 gvfsd
1604 ? 00:00:00 gvfsd-fuse
1607 ? 00:00:00 ibus-memconf
1608 ? 00:00:00 ibus-ui-gtk3
1615 ? 00:00:01 ibus-extension-
1621 ? 00:00:00 ibus-x11
1625 ? 00:00:00 ibus-portal
1631 ? 00:00:00 lxpolkit
1635 ? 00:00:00 tint2
1636 ? 00:00:00 nm-applet
1637 ? 00:00:00 mate-volume-con
1638 ? 00:00:00 mate-power-mana
1639 ? 00:00:05 thunar
1640 ? 00:00:00 xscreensaver
1641 ? 00:00:02 parcellite
1646 ? 00:00:00 xfce4-notifyd
1651 ? 00:00:00 xscreensaver-sy
1676 ? 00:00:00 at-spi-bus-laun
1684 ? 00:00:00 dbus-daemon
1690 ? 00:00:00 xdg-desktop-por
1701 ? 00:00:00 xdg-document-po
1702 ? 00:00:12 conky
1709 ? 00:00:00 xdg-permission-
1719 ? 00:00:00 fusermount3
1723 ? 00:00:00 xdg-desktop-por
1730 ? 00:00:02 compton
1734 ? 00:00:00 at-spi2-registr
1758 ? 00:00:00 upowerd
1763 ? 00:00:00 ibus-engine-sim
1866 ? 00:00:00 kworker/1:2H-kblockd
2019 ? 00:00:00 kworker/u4:2-flush-8:0
2025 ? 00:00:00 kworker/1:1-events
2039 ? 00:00:00 kworker/0:0-events
2828 ? 00:00:00 gvfs-udisks2-vo
2833 ? 00:00:00 gvfs-mtp-volume
2837 ? 00:00:00 gvfs-afc-volume
2842 ? 00:00:00 gvfs-gphoto2-vo
2846 ? 00:00:00 gvfs-goa-volume
2850 ? 00:00:00 gvfsd-metadata
2853 ? 00:00:00 gvfsd-trash
2883 ? 00:00:00 kworker/u4:1-events_unbound
2893 ? 00:00:00 scsi_eh_3
2894 ? 00:00:00 scsi_tmf_3
2895 ? 00:00:00 usb-storage
2899 ? 00:00:00 uas
2900 ? 00:00:00 kworker/0:1-events
2947 ? 00:00:00 mount.ntfs
3612 ? 00:00:02 terminator
3655 pts/1 00:00:00 bash
4023 ? 00:00:00 kworker/1:2-ata_sff
4167 ? 00:00:00 kworker/1:0-ata_sff
4177 pts/1 00:00:00 top
4178 ? 00:00:00 kworker/1:3-events_freezable_power_
4179 pts/1 00:00:00 top
4182 pts/1 00:00:00 script
4183 pts/0 00:00:00 bash
4185 pts/0 00:00:00 ps
[?2004h]0;nik@nikkin: ~/downloadsnik@nikkin:~/downloads$ ps -u
[?2004lUSER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
nik 3655 0.0 0.1 8552 5120 pts/1 Ss 09:45 0:00 /bin/bash
nik 4177 0.0 0.0 9852 3584 pts/1 T 10:03 0:00 top
nik 4179 0.0 0.0 9852 3712 pts/1 T 10:07 0:00 top
nik 4182 0.0 0.0 5496 2176 pts/1 S+ 10:08 0:00 script
nik 4183 0.0 0.1 8244 4992 pts/0 Ss 10:08 0:00 bash -i
nik 4186 0.0 0.1 11276 4736 pts/0 R+ 10:08 0:00 ps -u
[?2004h]0;nik@nikkin: ~/downloadsnik@nikkin:~/downloads$ top& &
[?2004l[1] 4187
[?2004h]0;nik@nikkin: ~/downloadsnik@nikkin:~/downloads$ [?1l>kill 4187
[?2004l
[1]+ Остановлен top
[?2004h]0;nik@nikkin: ~/downloadsnik@nikkin:~/downloads$ exit
[?2004lexit
Есть остановленные задания.
[?2004h]0;nik@nikkin: ~/downloadsnik@nikkin:~/downloads$ exit
[?2004lexit
[?1l>

Script done on 2024-05-07 10:08:50+03:00 [COMMAND_EXIT_CODE="1"]
Expand Down