sandervanvugt

systemd march 21

Mar 24th, 2021
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.39 KB | None | 0 0
  1. [root@server1 generator]# history
  2. 1 systemctl -t help
  3. 2 systemctl cat sshd.service
  4. 3 systemctl status sshd
  5. 4 kill -9 1184
  6. 5 systemctl status sshd
  7. 6 systemctl cat sshd.service
  8. 7 cd /usr/lib/systemd/system
  9. 8 ls
  10. 9 pwd
  11. 10 cd /etc/systemd/system/
  12. 11 ls
  13. 12 cd /run/systemd/system/
  14. 13 ls
  15. 14 cd ..
  16. 15 ls
  17. 16 cd generator/
  18. 17 ls
  19. 18 cd
  20. 19 man -k systemd
  21. 20 mandb
  22. 21 man -k systemd
  23. 22 man -k systemd | wc
  24. 23 man -k systemd | grep user
  25. 24 systemctl cat sshd.service
  26. 25 man 7 systemd.directives
  27. 26 man systemd.service
  28. 27 man systemd.exec
  29. 28 systemctl edit sshd.service
  30. 29 export SYSTEMD_EDITOR=vim
  31. 30 systemctl edit sshd.service
  32. 31 vim /etc/bashrc
  33. 32 yum install -y httpd
  34. 33 systemctl cat httpd
  35. 34 systemctl cat sshd
  36. 35 systemctl edit httpd
  37. 36 systemctl cat httpd
  38. 37 yum install -y vsftpd
  39. 38 cp /usr/lib/systemd/system/vsftpd.service /etc/systemd/system/
  40. 39 vim edit /etc/systemd/system/vsftpd.service
  41. 40 vim /etc/systemd/system/vsftpd.service
  42. 41 systemctl cat vsftpd.service
  43. 42 systemctl show httpd
  44. 43 systemctl edit httpd.service
  45. 44 systemctl show httpd
  46. 45 systemctl show --all httpd
  47. 46 systemctl status httpd --no-pager -l
  48. 47 systemctl status httpd
  49. 48 systemctl list-units -t target
  50. 49 systemctl list-units-files -t target
  51. 50 systemctl list-unit-files -t target
  52. 51 systemctl cat vsftpd.service
  53. 52 systemctl status vsftpd
  54. 53 systemctl enable --now vsftpd
  55. 54 systemctl status vsftpd
  56. 55 systemctl cat multi-user.target
  57. 56 systemctl cat vsftpd.service
  58. 57 cd /etc/systemd/system/
  59. 58 ls
  60. 59 cd multi-user.target.wants/
  61. 60 ls
  62. 61 ls -l
  63. 62 systemctl disable vsftpd.service
  64. 63 systemctl mask vsftpd.service
  65. 64 rm /etc/systemd/system/vsftpd.service
  66. 65 systemctl mask vsftpd.service
  67. 66 systemctl daemon-reload
  68. 67 cd
  69. 68 systemctl mask vsftpd.service
  70. 69 yum install -y git
  71. 70 cd /etc/systemd/system/multi-user.target.wants/
  72. 71 ls
  73. 72 rm vdo.serivce
  74. 73 rm vdo.service
  75. 74 systemctl status vdo.service
  76. 75 ls
  77. 76 history
  78. 77 systemctl status vsftpd.service
  79. 78 systemctl stop vsftpd.service
  80. 79 systemctl status vsftpd.service
  81. 80 systemctl start vsftpd
  82. 81 systemctl enable vsftpd
  83. 82 systemctl unmask vsftpd.service
  84. 83 systemctl status vsftpd.service
  85. 84 cd
  86. 85 git clone https://github.com/sandervanvugt/systemd
  87. 86 cd systemd/
  88. 87 ls
  89. 88 ./countdown 12
  90. 89 systemctl get-default
  91. 90 systemctl list-dependencies
  92. 91 systemctl restart
  93. 92 reboot
  94. 93 systemctl list-units
  95. 94 systemctl isolate graphical.target
  96. 95 journalctl
  97. 96 journalctl -u sshd
  98. 97 cd /etc/systemd/
  99. 98 ls
  100. 99 vim journald.conf
  101. 100 mkdir /var/log/journal
  102. 101 ls -l /var/log/journal
  103. 102 systemctl daemon-reload
  104. 103 ls -l /var/log/journal
  105. 104 udevadm monitor
  106. 106 ip a
  107. 107 loginctl list-users
  108. 108 loginctl list-sessions
  109. 109 loginctl kill-session 4
  110. 110 loginctl list-sessions
  111. 111 systemctl list-dependencies
  112. 112 systemctl list-dependencies sshd.service
  113. 113 pwd
  114. 114 ls
  115. 115 systemctl cat httpd.service
  116. 116 systemctl edit httpd.service
  117. 117 systemctl disable --now httpd.service
  118. 118 systemctl disable --now vsftpd.service
  119. 119 ps aux | grep http
  120. 120 ps aux | grep ftp
  121. 121 systemctl start httpd.service
  122. 122 ps aux | grep ftp
  123. 123 ps aux | grep http
  124. 124 ps aux | grep ftp
  125. 125 systemctl status vsftpd
  126. 126 systemctl edit httpd.service
  127. 127 systemctl stop httpd.service
  128. 128 systemctl start httpd.service
  129. 129 ps aux | grep ftp
  130. 130 systemctl status httpd
  131. 131 systemctl status vsftpd
  132. 132 systemctl stop vsftpd
  133. 133 systemctl status httpd
  134. 134 man -k systemd.unit
  135. 135 man systemd.unit
  136. 136 systemctl cat tmp.mount
  137. 137 ls
  138. 138 cd system/
  139. 139 ls
  140. 140 pwd
  141. 141 cd
  142. 142 cd systemd/
  143. 143 ls
  144. 144 vim sleep.service
  145. 145 pwd
  146. 146 cp sleep.service /etc/systemd/system/
  147. 147 systemctl start sleep.service
  148. 148 systemctl status sleep.service
  149. 149 systemctl edit sleep.service
  150. 150 systemctl cat sshd.service
  151. 151 systemctl edit sleep.service
  152. 152 systemctl restart sleep.service
  153. 153 systemctl cat sleep.service
  154. 154 systemctl status sleep
  155. 155 kill -9 4165
  156. 156 systemctl status sleep
  157. 157 systemctl show sleep.service
  158. 158 pwd
  159. 159 cd /etc/systemd/system/sleep.service.d/sander.conf
  160. 160 vim /etc/systemd/system/sleep.service.d/sander.conf
  161. 161 systemctl daemon-reload
  162. 162 systemctl status sleep.service
  163. 163 pwd
  164. 164 ./countdown 12
  165. 165 systemd-analyze security sshd.service
  166. 166 systemd-analyze blame
  167. 167 top
  168. 168 pwd
  169. 169 ls
  170. 170 history | grep git
  171. 171 cp *service /etc/systemd/system/
  172. 172 systemctl daemon-reload
  173. 173 systemctl status stress1.service
  174. 174 systemctl cat stress1.service
  175. 175 systemctl cat stress2.service
  176. 176 systemctl start stress1
  177. 177 systemctl start stress2
  178. 178 top
  179. 179 cd /sys
  180. 180 ls
  181. 181 cd bus/cpu/devices/
  182. 182 pwd
  183. 183 ls
  184. 184 ls cpu1/
  185. 185 cat cpu1/online
  186. 186 echo 0 > cpu1/online
  187. 187 lscpu
  188. 188 top
  189. 189 kill -9 5496
  190. 190 kill -9 5493
  191. 191 kill -9 5540
  192. 192 top
  193. 193 systemd-cgls
  194. 194 systemd-cgtop
  195. 195 yum install systemd-network systemd-resolved -y
  196. 196 yum provides */systemd-networkd
  197. 197 yum provides */systemd-resolved
  198. 198 systemctl disable NetworkManager
  199. 199 systemctl enable systemd-networkd
  200. 200 pwd
  201. 201 /root/systemd/countdown 12
  202. 202 yum install -y epel-release
  203. 203 history
  204. 204 systemctl enable systemd-networkd
  205. 205 yum provides */systemd-networkd
  206. 206 yum install systemd-networkd
  207. 207 systemctl enable systemd-networkd
  208. 208 systemctl status systemd-resolved
  209. 209 cat /etc/resolv.conf
  210. 210 rm /etc/resolv.conf
  211. 211 ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
  212. 212 mkdir /etc/systemd/network
  213. 213 cd /etc/systemd/network/
  214. 214 ls
  215. 215 pwd
  216. 216 ip a
  217. 217 vim 10-static-ens33.network
  218. 218 reboot
  219. 219 ip a
  220. 220 ping nu.nl
  221. 221 cat /etc/resolv.conf
  222. 222 systemctl restart resolved.conf
  223. 223 systemctl restart systemd-resolved
  224. 224 cat /etc/resolv.conf
  225. 225 systemctl edit systemd-resolved
  226. 226 ping nu.nl
  227. 227 cd systemd/
  228. 228 ls
  229. 229 vim nfsdata.mount
  230. 230 systemctl enable --now nfs-server
  231. 231 vim /etc/exports
  232. 232 vim nfsdata.mount
  233. 233 vim /etc/exports
  234. 234 systemctl restart nfs-server
  235. 235 yum install -y nfs-utils
  236. 236 systemctl start nfsdata.mount
  237. 237 pwd
  238. 238 cp nfsdata.mount /etc/systemd/system
  239. 239 systemctl start nfsdata.mount
  240. 240 systemctl status nfsdata
  241. 241 systemctl status nfsdata.mount
  242. 242 cat /etc/fstab
  243. 243 cd /run/systemd/generator/
  244. 244 ls
  245. 245 vim boot.mount
  246. 246 systemctl status boot.mount
  247. 247 systemctl cat tmp.mount
  248. 248 systemctl enable --now tmp.mount
  249. 249 systemctl status tmp.mount
  250. 250 yum install tftp-server
  251. 251 systemctl cat tftp.socket
  252. 252 systemctl cat tftp.service
  253. 253 systemctl enable --now tftp.sockets
  254. 254 systemctl enable --now tftp.socket
  255. 255 loginctl enable-linger student
  256. 256 history
  257.  
  258.  
  259.  
Advertisement
Add Comment
Please, Sign In to add comment