sandervanvugt

Linux Under the Hood Feb23

Feb 10th, 2023
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.67 KB | None | 0 0
  1. [root@localhost system]# history
  2. 1 dnf update -y
  3. 2 cat /etc/os-release
  4. 3 ls /proc
  5. 4 history
  6. 5 mount
  7. 6 history
  8. 7 mount | grep proc
  9. 8 mount | grep sys
  10. 9 cd /proc
  11. 10 ls
  12. 11 ps aux | grep 666
  13. 12 cat cpuinfo
  14. 13 ls
  15. 14 less meminfo
  16. 15 cd sys
  17. 16 ls
  18. 17 cd vm
  19. 18 ls
  20. 19 cat dirty_expire_centisecs
  21. 20 echo 6000 > dirty_expire_centisecs
  22. 21 cat dirty_expire_centisecs
  23. 22 pwd
  24. 23 sysctl -a
  25. 24 sysctl -a | wc
  26. 25 sysctl -a | grep centi
  27. 26 pwd
  28. 27 history
  29. 28 vim /etc/sysctl.conf
  30. 29 vim /etc/sysctl.d/50-dirty.conf
  31. 30 cd /usr/lib/sysctl.d/
  32. 31 ls
  33. 32 pwd
  34. 33 cd /sys
  35. 34 ls
  36. 35 cd bus
  37. 36 ls
  38. 37 cd cpu/devices/cpu1
  39. 38 ls
  40. 39 cat online
  41. 40 lscpu | less
  42. 41 echo 0 > online
  43. 42 lscpu | less
  44. 43 echo 1 > online
  45. 44 cd /proc
  46. 45 history
  47. 46 ls
  48. 47 less cpuinfo
  49. 48 less meminfo
  50. 49 ls
  51. 50 echo h > sysrq-trigger
  52. 51 dmesg
  53. 52 #echo c > /proc/sysrq-trigger
  54. 53 history -w
  55. 54 pwd
  56. 55 ls
  57. 56 cd /root
  58. 57 ls
  59. 58 touch hello
  60. 59 ls -l
  61. 60 exit
  62. 61 history
  63. 62 cd /proc/sys/kernel/
  64. 63 ls
  65. 64 cat sysrq
  66. 65 man proc
  67. 66 cd
  68. 67 dnf install -y git
  69. 68 git clone https://github.com/sandervanvugt/luth
  70. 69 history
  71. 70 dnf install kernel-docs
  72. 71 dnf install kernel-doc
  73. 72 podman search ubuntu
  74. 73 podman run -it ubuntu
  75. 74 history
  76. 75 uname -r
  77. 76 #Ctrl-p, Ctrl-q
  78. 77 podman ps
  79. 78 history
  80. 79 cd /proc
  81. 80 ls
  82. 81 cd 606
  83. 82 cd 6060
  84. 83 ls
  85. 84 cat status
  86. 85 ls
  87. 86 cat cmdline
  88. 87 podman run -d nginx
  89. 88 podman ps
  90. 89 podman exec -it kind_galois /bin/bash
  91. 90 ls
  92. 91 cd ns
  93. 92 ls
  94. 93 ls -l
  95. 94 lsns
  96. 95 man lsns
  97. 96 lsns | wc
  98. 97 lsns
  99. 98 ps faux | less
  100. 99 history
  101. 100 man unshare
  102. 101 echo test > /tmp/test
  103. 102 chmod 600 /tmp/test
  104. 103 ls -l /tmp/test
  105. 104 podman run -it -v /tmp/test:/tmp/test:Z --uidmap 0:100000:5000 docker.io/library/fedora sh
  106. 105 podman top --latest user huser
  107. 106 ps aux
  108. 107 cd
  109. 108 luth/countdown 13
  110. 109 podman run -it --name boos --privileged -v /:/host:Z ubi8 chroot /host
  111. 110 podman run -it --name boos --privileged -v /:/host ubi8 chroot /host
  112. 111 podman run -it --name boos2 --privileged -v /:/host ubi8 chroot /host
  113. 112 exit
  114. 113 cd luth/
  115. 114 ls
  116. 115 ./countdown 13
  117. 116 dnf install zsh
  118. 117 unshare --fork --pid --mount-proc zsh
  119. 118 exit
  120. 119 history
  121. 121 ps faux | less
  122. 122 cd luth/
  123. 123 ls
  124. 124 cd ..
  125. 125 git clone https://github.com/sandervanvugt/performance
  126. 126 cd performance/
  127. 127 ls
  128. 128 systemctl cat stress1.service
  129. 129 systemctl cat stress2.service
  130. 130 systemctl start stress1
  131. 131 systemctl start stress2
  132. 132 top
  133. 133 echo 0 > /sys/bus/cpu/devices/cpu1/online
  134. 134 toop
  135. 135 top
  136. 136 systemctl set-property system.slice CPUShares=1024
  137. 137 top
  138. 138 systemctl set-property sshd.service MemoryLimit=4M
  139. 139 systemctl status sshd.service
  140. 140 systemctl set-property sshd.service MemoryLimit=2M
  141. 141 systemctl status sshd.service
  142. 142 systemctl set-property sshd.service MemoryLimit=1M
  143. 143 systemctl status sshd.service
  144. 144 systemctl restart sshd.service
  145. 145 systemctl status sshd.service
  146. 146 cd
  147. 147 cd /etc/systemd/system
  148. 148 ls
  149. 149 history
  150. 150 podman generate -h | less
  151. 151 podman ps
  152. 152 podman generate systemd -h
  153. 153 podman ps
  154. 154 podman generate systemd --new --files --name kind_galois
  155. 155 vim container-kind_galois.service
  156. 156 podman stop kind_galois
  157. 157 systemctl start container-kind_galois.service
  158. 158 history
  159. 159 systemctl status container-kind_galois.service
  160. 160 journalctl
  161. 161 top
  162. 162 echo 1 > /sys/bus/cpu/devices/cpu1/online
  163. 163 history
  164. 164 ps faux | less
  165. 165 systemctl status container-kind_galois.service
  166. 166 sysctl -a
  167. 167 sysctl -a | grep oom
  168. 168 systemctl stop container-kind_galois.service
  169. 169 echo 1 > /proc/sys/vm/oom_kill_allocating_task
  170. 170 systemctl start container-kind_galois.service
  171. 171 vim /etc/sysctl.d/99-i-hate-my-uncle.conf
  172. 172 systemctl show sshd.service
  173. 173 systemd-cgls
  174. 174 systemctl set-property machine.slice CPUShares=2048
  175. 175 systemctl set-property system.slice MemoryLimit=1024M
  176. 176 systemctl set-property user.slice MemoryLimit=1024M
  177. 177 pwd
  178. 178 ls
  179. 179 vim /etc/systemd/system.con
  180. 180 vim /etc/systemd/system.control
  181. 181 history
  182.  
Advertisement
Add Comment
Please, Sign In to add comment