Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##### SYSTEMD NSPAWN ON UBUNTUroot@ubuserver:~# history
- 1 hostnamectl set-hostname ubuserver
- 2 reboot
- 3 systemctl status systemd-networkd
- 4 systemctl status systemd-timesyncd.service
- 5 cd /etc/netplan/
- 6 ls
- 7 vim 00-installer-config.yaml
- 8 man networkctl
- 9 networkctl status
- 10 networkctl list
- 11 exit
- 12 apt install debootstrap systemd-container bridge-utils
- 13 mkdir -p /var/lib/machines/helloworld
- 14 debootstrap stable /var/lib/machines/helloworld http://deb.debian.org/debian/
- 15 chown root:root /var/lib/machines
- 16 chown 700 /var/lib/machines/
- 17 ls -l /var/lib/machines/helloworld/
- 18 du -hs /var/lib/machines/helloworld/
- 19 systemd-nspawn -UM hello-world
- 20 systemd-nspawn -UbM hello-world
- 21 machinectl list-images
- 22 machinectl status helloworld
- 23 #machinectl start helloworld
- 24 systemd-nswap -UM hello-world
- 25 systemd-nspawn -UM hello-world
- 26 machinectl start helloworld
- 27 machinectl status helloworld
- 28 systemd-nspawn -UM hello-world
- 29 systemd-nspawn -UM helloworld
- 30 machinectl stop helloworld
- 31 systemd-nspawn -UM helloworld
- 32 systemd-nspawn -UbM helloworld
- 33 machinectl start helloworld
- 34 machinectl login helloworld
- 35 machinectl list
- 36 ls /
- 37 ls -l /var/lib/machines/helloworld/
- 38 exit
- 39 history
- ###### ALL COMMANDS ON RHEL9 1 dnf update -y
- 2 uname -r
- 3 reboot
- 4 cd /usr/lib/systemd/system
- 5 ls
- 6 vim tuned.service
- 7 systemctl -t help
- 8 systemctl cat tuned.service
- 9 man 7 systemd.directives
- 10 man systemd.services
- 11 man systemd.service
- 12 man systemd.exec
- 13 man -k systemd
- 14 man -k systemd | wc
- 15 systemctl edit sshd.service
- 16 export SYSTEMD_EDITOR=vim
- 17 systemctl edit sshd.service
- 18 systemctl cat sshd.service
- 19 systemctl restart sshd
- 20 systemctl status sshd
- 21 systemctl edit sshd.service
- 22 systemctl restart sshd.service
- 23 systemctl status sshd
- 24 systemctl edit sshd.service
- 25 systemctl show sshd.services
- 26 man systemd.directives
- 27 man systemd.resource-control
- 28 systemctl show sshd.services | wc
- 29 systemctl show --all sshd.services | wc
- 30 systemctl -t target show-unit-files
- 31 systemctl -t target list-unit-files
- 32 systemctl cat multi-user.target
- 33 systemctl cat network.target
- 34 cd /etc/systemd/system/
- 35 ls
- 36 cd multi-user.target.wants/
- 37 ls -l
- 38 systemctl disable --now crond.service
- 39 ls -l
- 40 systemctl enable --now crond.service
- 41 dnf install httpd
- 42 systemctl status httpd.service
- 43 systemctl cat httpd.service
- 44 ls -l
- 45 systemctl enable httpd.service
- 46 ls -l
- 47 systemctl status httpd.service
- 48 systemctl start httpd
- 49 systemctl status httpd.service
- 50 systemctl list-dependencies
- 51 systemctl get-default
- 52 systemctl set-default multi-user.target
- 53 which reboot
- 54 file /sbin/reboot
- 55 systemctl reboot
- 56 vim /etc/default/grub
- 57 grub2-mkconfig -o /boot/grub2/grub.cfg
- 58 reboot
- 59 systemctl list-units
- 60 systemctl set-default graphical.target
- 61 reboot
- 62 systemctl status sshd.socket
- 63 systemctl status sshd.service
- 64 ps aux | grep ssh
- 65 exit
- 66 journalctl
- 67 systemctl status rsyslog
- 68 cd /etc/systemd/
- 69 ls
- 70 vim journald.conf
- 71 mkdir /var/log/journal
- 72 systemd-cd /var/log/journal/
- 73 ls
- 74 cd /var/log/journal/
- 75 ls
- 76 cd
- 77 journalctl -u sshd
- 78 systemctl status sshd
- 79 journalctl -xb
- 80 dnf install -y git
- 81 git clone https://github.com/sandervanvugt/systemd
- 82 cd systemd/
- 83 ls
- 84 ./countdown 12
- 85 systemctl restart systemd-journal-flush.service
- 86 ls /var/log/journal/
- 87 ls /var/log/journal/215e3b9ed06f417bb105eaba3fc231ec/
- 88 dnf install -y vsftpd
- 89 systemctl stop httpd
- 90 systemctl edit httpd
- 91 EDITOR=/usr/bin/vim
- 92 systemctl edit httpd
- 93 export SYSTEMD_EDITOR=/usr/bin/vim
- 94 systemctl edit httpd
- 95 systemctl cat httpd
- 96 ps aux | grep ftp
- 97 systemctl start httpd
- 98 ps aux | grep ftp
- 99 systemctl status vsftpd
- 100 kill -9 5128
- 101 systemctl status httpd
- 102 ps aux | grep ftp
- 103 systemctl cat sshd
- 104 systemctl status sshd
- 105 kill -9 946
- 106 systemctl status sshd
- 107 systemctl cat sshd
- 108 cd
- 109 cd systemd/
- 110 ls
- 111 cat sleep.service
- 112 cp sleep.service /etc/systemd/system
- 113 systemctl start sleep
- 114 systemctl status sleep
- 115 cat securesleep.service
- 116 systemctl daemon-reload
- 117 rpm -qa | grep systemd
- 118 vim /etc/nsswitch.conf
- 119 pwd
- 120 ls
- 121 cat dynamicuser.service
- 122 vim dynamicuser.service
- 123 cp dynamicuser.service /etc/systemd/system
- 124 systemctl start dynamicuser.service
- 125 ps aux | grep sleep
- 126 getent passwd
- 127 cat /etc/passwd
- 128 getent passwd
- 129 ls -l /var/lib/private/
- 130 ls -l /var/lib/private/dynamic/
- 131 systemd-analyze
- 132 systemd-analyze blame
- 133 systemd-analyze verify sshd.service
- 134 systemctl edit sleep.service
- 135 systemd-analyze verify sleep.service
- 136 systemd-analyze security
- 137 systemd-analyze security chronyd.service
- 138 systemd-analyze security
- 139 systemd-analyze plot
- 140 systemd-analyze plot --help
- 141 systemd-analyze plot > whatever.svg
- 142 pwd
- 143 cp whatever.svg /tmp
- 144 ls -l /tmp/whatever.svg
- 145 cd
- 146 vim /etc/fstab
- 147 cd /run/systemd/generator/
- 148 ls
- 149 vim -.mount
- 150 vim -- -.mount
- 151 vim boot.mount
- 152 cat /etc/fstab
- 153 vim boot.mount
- 154 ls /dev/disk/
- 155 ls -l /dev/disk/by-uuid/
- 156 cat /etc/default/grub
- 157 cd
- 158 systemd/countdown 12
- 159 vim /etc/exports
- 160 dnf install nfs-utils
- 161 systemctl enable --now nfs-server
- 162 cd systemd/
- 163 ls
- 164 vim nfsdata.mount
- 165 vim nfsdata.automount
- 166 cp nfsdata.* /etc/systemd/system
- 167 systemctl enable --now nfsdata.automount
- 168 ls /
- 169 systemctl status nfsdata.automount
- 170 systemctl status nfsdata.mount
- 171 cd /var
- 172 cd /nfsdata/
- 173 ls
- 174 systemctl status nfsdata.automount
- 175 systemctl status nfsdata.mount
- 176 mount
- 177 cd
- 178 sleep 10
- 179 mount
- 180 systemctl status nfsdata.mount
- 181 systemctl -t mount list-unit-files
- 182 systemctl cat tmp.mount
- 183 systemctl list-unit-files fstrim*
- 184 systemctl cat fstrim.timer
- 185 systemctl cat fstrim.service
- 186 systemctl enable --now fstrim.timer
- 187 systemctl status crond
- 188 ls -l /etc/cron*/
- 189 systemctl list-units -t timer
- 190 systemctl cat logrotate.timer
- 191 man systemd.timer
- 192 cd systemd/
- 193 ls
- 194 vim monitor.service
- 195 vim monitor.timer
- 196 cp moni* /etc/systemd/
- 197 systemctl enable --now monitor.timer
- 198 cp moni* /etc/systemd/system/
- 199 systemctl enable --now monitor.timer
- 200 journalclt -S today -f -u monitor.service
- 201 journalctl -S today -f -u monitor.service
- 202 systemctl disable monitor.timer --now
- 203 ls
- 204 systemctl -t socket list-unit-files
- 205 systemctl cat sshd.socket
- 206 systemctl disable --now sshd
- 207 systemctl enable --now sshd.socket
- 208 ps aux | grep ssh
- 209 ssh localhost
- 210 systemctl -t socket list-unit-files
- 211 systemctl cat podman.socket
- 212 cd
- 213 cd systemd/
- 214 systemctl -t path list-unit-files
- 215 systemctl cat cups.path
- 216 ls -l /var/cache/cups/
- 217 pwd
- 218 top
- 219 ls /sys/bus/cpu/devices/
- 220 echo 0 > /sys/bus/cpu/devices/cpu1/online
- 221 lscpu
- 222 vim stress1.service
- 223 vim stress2.service
- 224 cp stress* /etc/systemd/system
- 225 systemctl start stress1
- 226 systemctl start stress2
- 227 top
- 228 systemctl set-property --runtime system.slice CPUShares=8192
- 229 top
- 230 systemctl set-property system.slice CPUShares=8192
- 231 top
- 232 systemctl show system.slice
- 233 systemctl show user.slice
- 234 top
- 235 systemctl set-property user.slice CPUShare=1024
- 236 systemctl set-property user.slice CPUShares=1024
- 237 top
- 238 killall dd
- 239 top
- 240 pwd
- 241 ./countdown 18
- 242 systemd-cgls
- 243 systemd-cgtop
- 244 loginctl list-sessions
- 245 loginctl list-seats
- 246 loginctl list-users
- 247 ip a
- 248 loginctl list-users
- 249 loginctl list-seats
- 250 loginctl list-sessions
- 251 loginctl kill-sessions 6
- 252 loginctl kill-session 6
- 253 loginctl list-sessions
- 254 useradd lisa
- 255 passwd lisa
- 256 loginctl enable-linger lisa
- 257 ssh lisa@localhost
- 258 reboot
- 259 ps faxu | grep nginx
- 260 systemd-cgls --help
- 261 systemd-cgls
- 262 chvt 3
- 263 systemd-cgls
- 264 ssh student@192.168.29.33
- 265 cd systemd/
- 266 ./countdown 12
- 267 udevadm monitor
- 268 exit
- 269 udevadm monitor
- 270 ssh student@192.168.52.136
- 271 ping 192.168.52.136
- 272 ssh student@192.168.52.136
- 273 ssh sander@192.168.52.136
- 274 history
- 275 ssh student@192.168.29.33
- 276 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement