Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@system-what ~]# history
- 1 dnf update -y
- 2 reboot
- 3 ps aux | less
- 4 systemctl list-dependencies
- 5 systemctl list-units -t path
- 6 systemctl cat cups.path
- 7 systemctl cat cups.service
- 8 history
- 9 systemctl -t help
- 10 systemctl cat sshd.service
- 11 systemctl show sshd.service
- 12 systemctl cat sshd.service
- 13 man systemd.directives
- 14 man systemd.kill
- 15 man -k systemd
- 16 man -k systemd | wc -l
- 17 man systemd.unit
- 18 man systemd.timer
- 19 systemctl edit sshd.service
- 20 export SYSTEMD_EDITOR=vim
- 21 systemctl edit sshd.service
- 22 echo 'export SYSTEMD_EDITOR=vim' >> .bashrc
- 23 systemctl edit sshd.service
- 24 systemctl cat sshd.service
- 25 systemctl status sshd
- 26 kill -9 918
- 27 systemctl status sshd
- 28 history
- 29 systemctl list-units -t target
- 30 systemctl cat sound.target
- 31 ls /etc/systemd/system
- 32 systemctl cat printer.target
- 33 ls /etc/systemd/system/printer.target.wants/
- 34 systemctl cat cups.service
- 35 cd /etc/systemd/system/
- 36 cp /usr/lib/systemd/system/sshd.service .
- 37 mv sshd.service sleep.unit
- 38 vim sleep.unit
- 39 systemctl daemon-reload
- 40 systemctl status sleep.unit
- 41 systemctl status sleep.service
- 42 mv sleep.unit sleep.service
- 43 systemctl daemon-reload
- 44 systemctl status sleep.service
- 45 systemctl enable --now sleep.service
- 46 systemctl status sleep.service
- 47 cp /usr/lib/systemd/system/graphical.target sander.target
- 48 pwd
- 49 vim sander.target
- 50 systemctl daemon-reload
- 51 systemctl list-unit-files -t target
- 52 systemctl disable --now sleep.service
- 53 vim sleep.service
- 54 systemctl enable --now sleep.service
- 55 systemctl get-default
- 56 systemctl set-default sander.target
- 57 systemctl cat sander.target
- 58 reboot
- 59 systemctl get-default
- 60 systemctl list-dependencies
- 61 systemctl set-default graphical.target
- 62 reboot
- 63 cd systemd/
- 64 ./countdown 12
- 65 dnf install -y git
- 66 git clone https://github.com/sandervanvugt/systemd
- 67 cd systemd/
- 68 ls
- 69 history
- 70 systemctl status rsyslog.service
- 71 less /etc/rsyslog.conf
- 72 journalctl
- 73 journalctl -f
- 74 systemctl status chrony
- 75 systemctl status chronyd.service
- 76 vim /etc/systemd/journald.conf
- 77 cd /var/log
- 78 ls
- 79 mkdir journal
- 80 ls journal/
- 81 cd /usr/lib/systemd/system
- 82 systemctl start systemd-journal-flush.service
- 83 ls /var/log/journal/
- 84 systemctl restart systemd-journal-flush.service
- 85 ls /var/log/journal/
- 86 systemctl status systemd-journal-flush.service
- 87 history
- 88 systemctl status systemd-journal-flush.service
- 89 systemctl cat systemd-journal-flush.service
- 90 systemctl list-dependencies
- 91 dnf install -y httpd vsftpd
- 92 systemctl disable --now vsftpd
- 93 systemctl cat httpd
- 94 systemctl edit httpd
- 95 systemctl status httpd
- 96 systemctl edit httpd
- 97 systemctl status httpd
- 98 systemctl edit httpd
- 99 ps aux | grep ftp
- 100 systemctl start httpd
- 101 ps aux | grep ftp
- 102 systemctl cat httpd.service
- 103 systemctl status httpd.service
- 104 systemctl status vsftpd.service
- 105 systemctl enable httpd
- 106 pwd
- 107 cd /etc/systemd//system/
- 108 ls
- 109 cat sleep.service
- 110 man systemd.service
- 111 systemctl cat sshd.service
- 112 systemctl status sshd.service
- 113 systemctl status default.target
- 114 systemctl cat sshd.service
- 115 systemctl cat httpd.service
- 116 systemctl --reverse --recursive
- 117 systemctl --reverse --recursive list-dependencies
- 118 systemctl list-dependencies
- 119 systemctl kill multi-user.target
- 120 ps faux | less
- 121 cd
- 122 cd systemd/
- 123 ls
- 124 cp *service /etc/systemd/system
- 125 systemctl daemon-reload
- 126 systemctl cat dynamicuser.service
- 127 systemctl start dynamicuser.service
- 128 ls -l /var/lib/private/
- 129 systemd-analyze sleep.service
- 130 systemd-analyze security sleep.service
- 131 systemd-analyze blame
- 132 history
- 133 poweroff
- 134 cat /etc/fstab
- 135 fdisk /dev/sda
- 136 mkfs.ext4 /dev/sda3
- 137 mkdir /files
- 138 cd /run/
- 139 ls
- 140 cd systemd/
- 141 ls
- 142 cd generator/
- 143 ls
- 144 cp boot.mount /etc/systemd/system/files.mount
- 145 cd /etc/systemd/system/
- 146 vim files.mount
- 147 mount | grep files
- 148 systemctl start files.mount
- 149 mount | grep files
- 150 systemctl cat files.mount
- 151 systemctl status files.mount
- 152 systemctl enable files.mount
- 153 systemctl list-dependencies
- 154 vim files.mount
- 155 systemctl enable files.mount
- 156 reboot
- 157 mount
- 158 mount -o remount,rw /
- 159 systemctl start default.target
- 160 vim /boot/grub2/grub.cfg
- 161 vim /etc/default/grub
- 162 grub2-mkconfig -o /boot/grub2/grub.cfg
- 163 reboot
- 164 cd systemd/
- 165 ./countdown 1
- 166 ./countdown 20
- 167 ./countdown 1
- 168 ./countdown 12
- 169 exit
- 170 history
- 171 cat /etc/mtab
- 172 cat /proc/mounts
- 173 cd /etc/systemd/system/
- 174 ls
- 175 vim files.mount
- 176 systemctl disable files.mount
- 177 vim files.mount
- 178 cd /usr/lib/systemd/system
- 179 ls *automount
- 180 cat proc-sys-fs-binfmt_misc.
- 181 cat proc-sys-fs-binfmt_misc.automount
- 182 cd
- 183 ls
- 184 cd systemd/
- 185 ls
- 186 vim nfsdata.mount
- 187 vim nfsdata.automount
- 188 cp nfsdata.automount /etc/systemd/system/files.automount
- 189 vim /etc/systemd/system/files.automount
- 190 systemctl cat files.mount
- 191 systemctl cat files.automount
- 192 systemctl status files.mount
- 193 systemctl stop files.mount
- 194 systemctl status files.mount
- 195 systemctl daemon-reload
- 196 systemctl enable --now files.automount
- 197 mount | grep files
- 198 cd /files
- 199 mount | grep files
- 200 cd /
- 201 mount
- 202 sleep 10
- 203 mount
- 204 systemctl cat files.mount
- 205 systemctl cat files.automount
- 206 history
- 207 ls /etc/cron.*/*
- 208 systemctl
- 209 systemctl list-unit-files -t timer
- 210 systemctl list-unit-files | grep fstrim*
- 211 systemctl cat fstrim.service
- 212 systemctl cat fstrim.timer
- 213 systemctl enable fstrim.timer
- 214 systemctl status fstrim.service
- 215 man systemd.time
- 216 cd
- 217 cd systemd/
- 218 ls *timer
- 219 cp monitor.timer /etc/systemd/system/
- 220 systemctl daemon-reload
- 221 systemctl cat monitor.timer
- 222 systemctl cat monitor.service
- 223 systemctl start monitor.timer
- 224 journalctl -S today -f -u monitor.service
- 225 systemctl stop monitor.timer
- 226 systemctl list-unit-files -t socket
- 227 systemctl list-unit-files | grep sshd*
- 228 systemctl cat sshd.socket
- 229 systemctl disable --now sshd
- 230 ps aux | grep ssh
- 231 systemctl enable --now sshd.socket
- 232 systemctl status sshd.socket
- 233 ps aux | grep sshd
- 234 ssh localhost
- 235 ssh student@localhost
- 236 ps aux | grep ssh
- 237 ss -tl
- 238 ip a
- 239 systemctl show httpd.service
- 240 man systemd.directives
- 241 systemctl edit httpd.service
- 242 systemctl status httpd.service
- 243 systemctl stop httpd
- 244 systemctl edit httpd.service
- 245 systemctl start httpd
- 246 systemctl status httpd
- 247 journalctl
- 248 history
- 249 pwwd
- 250 pwd
- 251 cd /etc/systemd/system/
- 252 ls
- 253 vim stress1.service
- 254 vim stress2.service
- 255 systemctl start stress1.service
- 256 systemctl start stress2.service
- 257 top
- 258 echo 0 > /sys/bus/cpu/devices/cpu1/online
- 259 top
- 260 systemctl set-property CPUShares=8192 system.slice
- 261 systemctl set-property system.slice CPUShares=8192
- 262 top
- 263 killall dd
- 264 echo 1 > /sys/bus/cpu/devices/cpu1/online
- 265 systemctl list-unit-files -t slice
- 266 systemctl cat system.slice
- 267 udevadm monitor
- 268 cd sysinit.target.wants/
- 269 cd
- 270 cd systemd/
- 271 ls
- 272 cp 50-custom.rules /etc/udev/rules.d/
- 273 cd /etc/udev/rules.d/
- 274 ls
- 275 vim 50-custom.rules
- 276 ls /dev/usb
- 277 journalctl
- 278 ls /dev/usb/
- 279 cd /usr/lib/udev/rules.d/
- 280 ls
- 281 vim 40-redhat.rules
- 282 cd
- 283 history
- 284 loginctl enable-linger student
- 285 exit
- 286 history
- #### student commands 3 sudo -i
- 4 sip a
- 5 ip a
- 6 sudo vim /etc/hosts
- 7 sudo -i
- 8 ps aux | grep ssh
- 9 systemctl status sshd
- 10 exit
- 11 mkdir -p .config/systemd/user
- 12 cd .config/systemd/user
- 13 cp /etc/systemd/system/sleep.service .
- 14 vim sleep.service
- 15 systemctl --user enable --now sleep.service
- 16 ps aux | grep sleep
- 17 systemctl --user status sleep.service
- 18 sudo -i
- 19 podman run -d --name mynginx -p 8080:80 nginx
- 20 cd .config
- 21 pwd
- 22 podman generate systemd --name mynginx --files
- 23 vim container-mynginx.service
- 24 systemctl --user enable container-mynginx.service
- 25 exit
- 26 while true; do true; done
- 27 exit
- 28 sudo -i
- 29 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement