Advertisement
sandervanvugt

Linux Under the Hood Feb23

Feb 10th, 2023
172
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. 120 ssh student@192.168.29.144
  122. 121 ps faux | less
  123. 122 cd luth/
  124. 123 ls
  125. 124 cd ..
  126. 125 git clone https://github.com/sandervanvugt/performance
  127. 126 cd performance/
  128. 127 ls
  129. 128 systemctl cat stress1.service
  130. 129 systemctl cat stress2.service
  131. 130 systemctl start stress1
  132. 131 systemctl start stress2
  133. 132 top
  134. 133 echo 0 > /sys/bus/cpu/devices/cpu1/online
  135. 134 toop
  136. 135 top
  137. 136 systemctl set-property system.slice CPUShares=1024
  138. 137 top
  139. 138 systemctl set-property sshd.service MemoryLimit=4M
  140. 139 systemctl status sshd.service
  141. 140 systemctl set-property sshd.service MemoryLimit=2M
  142. 141 systemctl status sshd.service
  143. 142 systemctl set-property sshd.service MemoryLimit=1M
  144. 143 systemctl status sshd.service
  145. 144 systemctl restart sshd.service
  146. 145 systemctl status sshd.service
  147. 146 cd
  148. 147 cd /etc/systemd/system
  149. 148 ls
  150. 149 history
  151. 150 podman generate -h | less
  152. 151 podman ps
  153. 152 podman generate systemd -h
  154. 153 podman ps
  155. 154 podman generate systemd --new --files --name kind_galois
  156. 155 vim container-kind_galois.service
  157. 156 podman stop kind_galois
  158. 157 systemctl start container-kind_galois.service
  159. 158 history
  160. 159 systemctl status container-kind_galois.service
  161. 160 journalctl
  162. 161 top
  163. 162 echo 1 > /sys/bus/cpu/devices/cpu1/online
  164. 163 history
  165. 164 ps faux | less
  166. 165 systemctl status container-kind_galois.service
  167. 166 sysctl -a
  168. 167 sysctl -a | grep oom
  169. 168 systemctl stop container-kind_galois.service
  170. 169 echo 1 > /proc/sys/vm/oom_kill_allocating_task
  171. 170 systemctl start container-kind_galois.service
  172. 171 vim /etc/sysctl.d/99-i-hate-my-uncle.conf
  173. 172 systemctl show sshd.service
  174. 173 systemd-cgls
  175. 174 systemctl set-property machine.slice CPUShares=2048
  176. 175 systemctl set-property system.slice MemoryLimit=1024M
  177. 176 systemctl set-property user.slice MemoryLimit=1024M
  178. 177 pwd
  179. 178 ls
  180. 179 vim /etc/systemd/system.con
  181. 180 vim /etc/systemd/system.control
  182. 181 history
  183.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement