View difference between Paste ID: WQ84HRwn and TN6MEt69
SHOW: | | - or go back to the newest paste.
1
[root@localhost ~]# history
2
    1  ps aux | less
3
    2  systemctl list-units | less
4
    3  systemctl -t help
5
    4  systemctl list-dependencies 
6
    5  history
7
    6  systemctl list-dependencies 
8
    7  cd /usr/lib/systemd/system
9
    8  ls
10
    9  vim sshd.service 
11
   10  reset
12
   11  man systemd.service
13
   12  vim sshd.service 
14
   13  ps aux | grep sshd
15
   14  systemctl start sshd
16
   15  systemctl status sshd
17
   16  kill -9 31286
18
   17  systemctl status sshd
19
   18  pwd
20
   19  cd /etc/systemd/system/
21
   20  ls
22
   21  cd
23
   22  yum install -y git
24
   23  git clone https://github.com/sandervanvugt/systemd
25
   24  ls
26
   25  cd systemd/
27
   26  ls
28
   27  cp "*.*" /etc/systemd/system
29
   28  cp *.* /etc/systemd/system
30
   29  cd /etc/systemd/system/
31
   30  ls
32
   31  systemctl status sleep.services
33
   32  systemctl status sleep.service
34
   33  cd /usr/lib/firewalld/services/
35
   34  ls
36
   35  cd /etc/firewalld/
37
   36  ls
38
   37  cd services/
39
   38  ls
40
   39  cd /run/systemd/system/
41
   40  ls
42
   41  cd ..
43
   42  ls
44
   43  pwd
45
   44  cd generator
46
   45  ls
47
   46  vim /etc/fstab
48
   47  ls
49
   48  vim boot.mount 
50
   49  vim -.mount 
51
   50  vim '-.mount' 
52
   51  vim -- -.mount 
53
   52  history
54
   53  systemctl cat sshd.service
55
   54  grep CRYPTO /etc/crypto-policies/back-ends/opensshserver.config 
56
   55  vim /etc/sysconfig/sshd 
57
   56  ps aux | grep syslo 
58
   57  systemctl status rsyslog
59
   58  cd /usr/lib/systemd/system
60
   59  ls rsys*
61
   60  dnf search rsyslog
62
   61  journalctl 
63
   62  pwd
64
   63  cd /etc/systemd/
65
   64  ls
66
   65  vim journald.conf 
67
   66  mkdir /var/log/journal
68
   67  cd /var/log/journal/
69
   68  ls
70
   69  systemctl cat sshd.service
71
   70  man -k systemd
72
   71  man -k systemd | wc
73
   72  man 7 systemd.directives
74
   73  systemctl show sshd.service
75
   74  man systemd.path
76
   75  man systemd.exec
77
   76  cd
78
   77  cd systemd/
79
   78  ./countdown 12
80
   79  history
81
   80  systemctl edit sshd.service
82
   81  export SYSTEMD_EDITOR=vim
83
   82  systemctl edit sshd.service
84
   83  systemctl show sshd.service
85
   84  systemctl cat sshd.service
86
   85  systemctl edit sshd.service
87
   86  systemctl cat sshd.service
88
   87  systemctl restart sshd
89
   88  systemctl status sshd
90
   89  pwd
91
   90  systemctl status sshd.service
92
   91  systemctl enable sshd.service
93
   92  systemctl edit --full sshd
94
   93  systemctl cat multi-user.target
95
   94  cd /etc/systemd/system/
96
   95  ls
97
   96  cd multi-user.target.wants/
98
   97  ls
99
   98  \ls -l
100
   99  cd
101
  100  dnf install network-scripts
102
  101  rpm ql network-scripts
103
  102  rpm -ql network-scripts
104
  103  systemctl disable --now NetworkManager
105
  104  systemctl mask NetworkManager
106
  105  systemctl enable --now network
107
  106  cd /etc/systemd/system/
108
  107  ls -l | grep net
109
  108  ls -lrt
110
  109  cd multi-user.target.wants/
111
  110  ls -lrt
112
  111  cd /etc/rc.d/init.d/
113
  112  ls
114
  113  vim network 
115
  114  systemctl status network
116
  115  systemctl start network
117
  116  systemctl status network
118
  117  pwd
119
  118  cd /etc/systemd/system/
120
  119  ls
121
  120  cd /usr/lib/systemd/system
122
  121  ls runlevel5.target
123
  122  ls -l runlevel5.target
124
  123  ls -l run*target
125
  124  systemctl start reboot.target
126
  125  vim /etc/default/grub 
127
  126  reboot
128
  127  vim /etc/default/grub 
129
  128  grub2-editenv
130
  129  cd /usr/lib/systemd/system
131
  130  ls *target
132
  131  systemctl list-unit-files -t target
133
  132  grep isolate *target
134
  133  grep -i isolate *target
135
  134  systemctl list-units | wc
136
  135  systemctl isolate emergency.target
137
  136  reboot
138
  137  udevadm monitor
139
  138  dnf install httpd vsftpd
140
  139  ip a
141
  140  ifup ens33
142
  141  systemctl disable --now network
143
  142  systemctl unmask NetworkManager
144
  143  systemctl enable --now NetworkManager
145
  144  ip a
146
  145  dnf install httpd vsftpd
147
  146  systemctl cat httpd.service
148
  147  systemctl edit httpd.service
149
  148  systemctl cat httpd.service
150
  149  ps aux | grep vsftp
151
  150  systemctl enable --now httpd
152
  151  ps aux | grep vsftp
153
  152  systemctl cat httpd.service
154
  153  cd systemd/
155
  154  ls
156
  155  vim sleep.service 
157
  156  systemctl enable --now sleep.service
158
  157  systemctl start sleep.service
159
  158  systemctl status sleep.service
160
  159  systemctl cat stress1.service
161
  160  cd
162
  161  systemd-run sleep 3600
163
  162  journalctl -u run-r13fec86409e849e994d75c4391594c63.service
164
  163  systemctl-analyze --help
165
  164  systemd-analyze --help
166
  165  systemd-analyze security
167
  166  systemd-analyze blame
168
  167  dnf install -y nfs-utils
169
  168  vim /etc/exports
170
  169  systemctl enable --now nfs-server
171
  170  showmount -e localhost
172
  171  systemctl cat nfsdata.mount
173
  172  mkdir /nfsdata
174
  173  mount 
175
  174  mount | grep '^/'
176
  175  systemctl start nfsdata.mount 
177
  176  mount | grep '^/'
178
  177  mount
179
  178  systemctl stop nfsdata.mount
180
  179  systemctl cat nfsdata.automount
181
  180  systemctl enable --now nfsdata.automount
182
  181  mount
183
  182  cd /nfsdata
184
  183  mount
185
  184  cd ..
186
  185  sleep 10
187
  186  mount
188
  187  systemctl cat nfsdata.automount
189
  188  systemctl cat fstrim.timer
190
  189  systemctl cat fstrim.service
191
  190  systemctl cat fstrim.timer
192
  191  man systemd.timer
193
  192  systemctl cat fstrim.timer
194
  193  systemctl cat monitor.timer
195
  194  systemctl enable --now monitor.timer
196
  195  journalctl -S today -f -u monitor.service
197
  196  systemctl list-unit-files -t timer
198
  197  cd /etc/cron.d
199
  198  ls
200
  199  cd ../cron.daily/
201
  200  ls
202
  201  cd ../cron.weekly/
203
  202  ls
204
  203  cd
205
  204  systemctl status *timer
206
  205  yum install tftp-server
207
  206  systemctl cat tftp.service
208
  207  systemctl cat tftp.socket
209
  208  systemctl enable --now tftp.socket
210
  209  cd systemd/
211
  210  ./countdown 12
212
  211  rpm -qa | grep container
213
  212  machinectl pull-raw --verify=no https://download.fedoraproject.org/pub/fedora/linux/releases/31/Cloud/x86_64/images/Fedora-Cloud-Base-31-1.9.x86_64.raw.xz FC
214
  213  machinectl list-images
215
  214  systemd-nspawn -M FC
216
  215  dnf -y --releasever=31 --installroot=/var/lib/machines/f31 --disablerepo='*' --enablerepo=fedora --enablerepo=updates install systemd passwd dnf fedora-release vim-minimal glibc-minimal-langpack
217
  216  cd /var/lib/machines/
218
  217  ls
219
  218  ls -l
220
  219  cd f31
221
  220  ls
222
  221  du -hs
223
  222  systemd-nspawn -a f31 passwd root
224
  223  cd ..
225
  224  systemd-nspawn -a f31 passwd root
226
  225  cd f31
227
  226  systemd-nspawn -bD /var/lib/machines/f31
228
  227  machinectl list
229
  228  machinectl list -a
230
  229  machinectl list-images
231
  230  machinectl status f31
232
  231  systemctl disable --now NetworkManager
233
  232  systemctl enable systemd-networkd
234
  233  systemctl enable systemd-resolved
235
  234  cd
236
  235  rm /etc/resolv.conf 
237
  236  ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
238
  237  mkdir /etc/systemd/network
239
  238  cd /etc/systemd/network/
240
  239  ls
241
  240  vim 10-static-ens33.network
242
  241  systemctl start systemd-networkd
243
  242  systemctl start systemd-resolved
244
  243  systemctl status systemd-networkd
245
  244  ip a
246
  245  ping nu.nl
247
  246  cat /etc/resolv.conf 
248
  247  vim 10-static-ens33.network
249
  248  cat /etc/resolv.conf 
250
  249  systemctl restart systemd-resolved
251
  250  cat /etc/resolv.conf 
252
  251  man systemd-resolved
253
  252  cd
254
  253  systemctl cat stress1.services
255
  254  systemctl cat stress1.service
256
  255  systemctl cat stress2.service
257
  256  systemctl start stress1
258
  257  systemctl start stress2
259
  258  lscpu
260
  259  cd /sys/devices/cpu/
261
  260  ls
262
  261  cd ../..
263
  262  ls
264
  263  cd bus
265
  264  ls
266
  265  cd cpu/
267
  266  ls
268
  267  cd devices/
269
  268  pwd
270
  269  ls
271
  270  cat cpu1/online 
272
  271  echo 0 > cpu1/online
273
  272  lscpu | less
274
  273  top
275
  274  systemctl show system.slice
276
  275  systemctl set-property system.slice CPUShares=8192
277
  276  top
278
  277  systemd-run -p CPUQuota=1% dd if=/dev/zero of=/dev/null &
279
  278  top
280
  279  systemctl show stress1.service
281
  280  top
282
  281  ps aux | grep httpd
283
  282  systemctl set-property --runtime httpd MemoryLimit=1m
284
  283  systemctl set-property --runtime httpd MemoryLimit=1M
285
  284  ps aux | grep httpd
286
  285  systemctl status httpd.service
287
  286  systemd-cgtop
288
  287  systemd-cgls
289
  288  loginctl
290
  289  loginctl --help
291
  290  loginctl kill-session 1
292
  291  loginctl list-sessions
293
  292  loginctl kill-session 2
294
  293  history