sandervanvugt

systemd April 22

Apr 20th, 2022
336
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.00 KB | None | 0 0
  1. [root@localhost ~]# history
  2. 1 poweroff
  3. 2 dnf install -y network-scripts
  4. 3 cd /usr/lib/systemd/system
  5. 4 pwd
  6. 5 ls
  7. 6 vim sshd.service
  8. 7 systemctl status sshd
  9. 8 kill -9 961
  10. 9 systemctl status sshd
  11. 10 systemctl -t help
  12. 11 man -k systemd
  13. 12 mandb
  14. 13 man -k systemd
  15. 14 man -k systemd | wc
  16. 15 man systemd.directives
  17. 16 systemctl cat sshd.service
  18. 17 man systemd.directives
  19. 18 man systemd.kill
  20. 19 dnf install httpd
  21. 20 systemctl status httpd
  22. 21 systemctl enable httpd
  23. 22 cd /etc/systemd/system/
  24. 23 ls
  25. 24 cd multi-user.target.wants/
  26. 25 ls
  27. 26 ls -l
  28. 27 cd
  29. 28 systemctl list-units -t target
  30. 29 systemctl list-dependencies
  31. 30 history
  32. 31 systemctl list-unit-files
  33. 32 systemctl list-unit-files -t socket
  34. 33 systemctl cat iscsid.socket
  35. 34 systemctl cat cups.socket
  36. 35 systemctl list-units
  37. 36 systemctl list-dependencies
  38. 37 cd /usr/lib/systemd/system
  39. 38 ls
  40. 39 cat sshd.service
  41. 40 vim crond.service
  42. 41 pwd
  43. 42 systemctl edit sshd.service
  44. 43 systemctl cat sshd.service
  45. 44 systemctl status sshd.service
  46. 45 export SYSTEMD_EDITOR=vim
  47. 46 systemctl edit sshd.service
  48. 47 cd
  49. 48 git clone https://github.com/sandervanvugt/systemd
  50. 49 cd systemd/
  51. 50 ls
  52. 51 ./countdown 12
  53. 52 systemctl show httpd
  54. 53 man systemd.directives
  55. 54 man org.freedesktop.systemd1
  56. 55 systemctl list-dependencies
  57. 56 systemctl get-default
  58. 57 systemctl cat graphical.target
  59. 58 pwd
  60. 59 cd /etc/systemd/system/
  61. 60 cd graphical.target.wants/
  62. 61 ls -l
  63. 62 systemctl cat upower.service
  64. 63 systemctl --version
  65. 64 systemctl list-dependencies
  66. 65 cd
  67. 66 systemctl isolate multi-user.target
  68. 67 systemctl list-dependencies
  69. 68 systemctl start reboot.target
  70. 69 systemctl list-units
  71. 70 systemctl start graphical.target
  72. 71 ls /var/log/journal/
  73. 72 cd systemd/
  74. 73 ls
  75. 74 vim sleep.service
  76. 75 systemctl enable --now sleep.service
  77. 76 pwd
  78. 77 cp sleep.service /etc/systemd/system/
  79. 78 systemctl enable --now sleep.service
  80. 79 systemctl status sleep.service
  81. 80 man -k systemd | grep journal
  82. 81 systemd-run sleep 3600
  83. 82 systemctl cat run-r87da59c1d2df4921b7578529061063d6.service
  84. 83 history | grep clone
  85. 84 pwd
  86. 85 ./countdown 13
  87. 86 pwd
  88. 87 ls
  89. 88 cat dynamicuser.service
  90. 89 vim dynamicuser.service
  91. 90 cp dynamicuser.service /etc/systemd/system
  92. 91 systemctl start dynamicuser.service
  93. 92 ps aux | grep sleep
  94. 93 ls -l /var/lib/private/
  95. 94 ls -l /var/lib/private/dynamic/
  96. 95 systemd-analyze security sshd.service
  97. 96 systemd-analyze blame
  98. 97 cd
  99. 98 vim /etc/fstab
  100. 99 cd /run/systemd/generator/
  101. 100 ls
  102. 101 vim boot.mount
  103. 102 blkid
  104. 103 cd /dev/disk
  105. 104 ls -l
  106. 105 cd by-uuid/
  107. 106 ls -l
  108. 107 pwd
  109. 108 cd
  110. 109 cd systemd/
  111. 110 ls
  112. 111 cp nfsda* /etc/systemd/system
  113. 112 cd /etc/systemd/system/
  114. 113 cat nfsdata.mount
  115. 114 dnf install -y nfs-utils
  116. 115 cat nfsdata.mount
  117. 116 vim /etc/exports
  118. 117 systemctl enable --now nfs-server
  119. 118 showmount -e localhost
  120. 119 cat nfsdata.mount
  121. 120 cat nfsdata.automount
  122. 121 systemctl enable nfsdata.automount
  123. 122 cd /
  124. 123 ls
  125. 124 cd nfsdata
  126. 125 mkdir /nfsdata
  127. 126 ls /nfsdata
  128. 127 systemctl restart nfsdata.automount
  129. 128 systemctl status nfsdata.automount
  130. 129 cd /nfsdata
  131. 130 ls
  132. 131 mount | takil -5
  133. 132 mount | tail -5
  134. 133 cd /
  135. 134 systemctl status nfsdata.mount
  136. 135 systemctl list-units -t timer
  137. 136 systemctl list-unit-files -t timer
  138. 137 systemctl enable logrotate.timer
  139. 138 systemctl list-unit-files | greo logrotate
  140. 139 systemctl list-unit-files | grep logrotate
  141. 140 systemctl cat logrotate.timer
  142. 141 cd /etc/logrotate.d/
  143. 142 ls
  144. 143 cd ..
  145. 144 cd cron.d
  146. 145 ls
  147. 146 cd ..
  148. 147 ls -l cron*
  149. 148 systemctl cat fstrim.timer
  150. 149 systemctl cat fstrim.service
  151. 150 systemctl status *timer
  152. 151 systemctl list-unit-files | grep sshd*
  153. 152 systemctl stop sshd.service
  154. 153 systemctl cat sshd.socket
  155. 154 systemctl enable sshd.socket
  156. 155 systemctl status sshd.socket
  157. 156 systemctl start sshd.socket
  158. 157 systemctl status sshd.service
  159. 158 ssh localhost
  160. 159 ps aux | grep sshd
  161. 160 systemctl list-unit-files -t path
  162. 161 systemctl cat cups.path
  163. 162 cd
  164. 163 systemd/countdown 12
  165. 164 cd systemd/
  166. 165 ls
  167. 166 cp monitor.timer /etc/systemd/system
  168. 167 systemctl start monitor.timer
  169. 168 systemctl list-unit-files monitor*
  170. 169 find / -name "monitor.service"
  171. 170 systemctl list-unit-files -t scope
  172. 171 ls
  173. 172 cp stress* /etc/systemd/system
  174. 173 systemctl cat stress1.service
  175. 174 systemctl cat stress2.service
  176. 175 systemctl start stress1
  177. 176 systemctl start stress2
  178. 177 top
  179. 178 cd /sys
  180. 179 ls
  181. 180 cd devices/
  182. 181 ls
  183. 182 cd cpu/
  184. 183 ls
  185. 184 cd ../../bus/
  186. 185 ls
  187. 186 cd cpu/
  188. 187 ls
  189. 188 cd device
  190. 189 cd devices
  191. 190 ls
  192. 191 ls *
  193. 192 cat */online
  194. 193 echo 0 > cpu1/online
  195. 194 cat */online
  196. 195 pwd
  197. 196 top
  198. 197 cd
  199. 198 history
  200. 199 systemctl set-property system.slice CPUShares=8192
  201. 200 systemctl cat system.slice
  202. 201 top
  203. 202 systemctl show sshd.service
  204. 203 systemctl set-property --runtime sshd.service MemoryMax=1M
  205. 204 systemctl status sshd
  206. 205 systemctl stop sshd.socket
  207. 206 systemctl daemon-reload
  208. 207 systemctl start sshd.service
  209. 208 systemctl status sshd.service
  210. 209 systemctl start httpd.service
  211. 210 systemctl status httpd.service
  212. 211 systemctl set-property --runtime httpd.service MemoryMax=1M
  213. 212 systemctl status httpd.service
  214. 213 systemd-cgls
  215. 214 systemd-cgtop
  216. 216 ps aux | grep -i net
  217. 217 systemctl show sshd.service
  218. 218 history
  219.  
Advertisement
Add Comment
Please, Sign In to add comment