Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- USER COMMANDS
- 135 sudo cp /root/performance/stress1.service .
- 136 sudo chown student stress1.service
- 137 cp stress1.service demo.service
- 138 vim demo.service
- 139 systemctl enable demo.service
- 140 systemctl --user enable demo.service
- 141 vim demo.service
- 142 systemctl --user enable demo.service
- 143 systemctl --user start demo.service
- 144 systemctl --user status demo.service
- 145 sudo loginctl status student
- 146 sudo loginctl -h
- 147 sudo loginctl show-user student
- 148 sudo loginctl enable-linger student
- 149 sudo loginctl disable-linger student
- 150 sudo loginctl enable-linger student
- 151 podman run -d name mynginx -p 8080:80 nginx
- 152 podman run -d name mynginx2 -p 8080:80 nginx
- 153 podman run -d --name mynginx2 -p 8080:80 nginx
- 154 id
- 155 podman ps
- 156 podman generate systemd --name mynginx2 --files
- 157 vim container-mynginx2.service
- 158 systemctl --user enable container-mynginx2.service
- 159 systemctl --user status container-mynginx2.service
- 160 history
- UNIT FILES
- [student@podman user]$ cat demo.service
- [Unit]
- Description=demo user functionality
- [Service]
- Type=simple
- ExecStart=sleep 3600
- [Install]
- WantedBy=multi-user.target
- ROOT COMMANDS
- [root@podman systemd]# history
- 1 ip a
- 2 exit
- 3 ls -lZd /webfiles/
- 4 exit
- 5 cd /var/lib/containers/
- 6 ls
- 7 cd sigstore/
- 8 ls
- 9 cd ../..
- 10 systemctl -t help
- 11 systemctl list-units -t target
- 12 systemctl -t help
- 13 cd /usr/lib/systemd/system
- 14 ls
- 15 systemctl cat sshd.service
- 16 kill -9 $(pidof sshd)
- 17 systemctl status sshd.service
- 18 pwd
- 19 cd /etc/systemd/system/
- 20 ls
- 21 cd /run/systemd/system/
- 22 ls
- 23 man -k systemd
- 24 man systemd.service
- 25 systemctl status sshd.service
- 26 systemctl cat sshd
- 27 history
- 28 man 7 systemd.directives
- 29 systemctl -t help
- 30 man systemd.swap
- 31 man -k systemd
- 32 systemctl cat sshd.service
- 33 systemctl edit sshd.service
- 34 export SYSTEMD_EDITOR=vim
- 35 systemctl edit sshd.service
- 36 vim /etc/bashrc
- 37 systemctl cat sshd.service
- 38 systemctl show --all sshd.service
- 39 history
- 40 systemctl -t target list-unit-files
- 41 systemctl get-default
- 42 systemctl cat multi-user.target
- 43 systemctl cat bluetooth.target
- 44 grep AllowIsolate=yes *
- 45 grep 'AllowIsolate=yes' *
- 46 grep 'AllowIsolate=yes' -- *
- 47 pwd
- 48 cd /usr/lib/systemd/system
- 49 grep 'AllowIsolate=yes' *
- 50 grep 'AllowIsolate=yes' * 2>/dev/null
- 51 systemctl isolate emergency.target
- 52 systemctl list-units
- 53 systemctl isolate rescue.target
- 54 systemctl list-units
- 55 mount
- 56 systemctl isolate reboot
- 57 systemctl start graphical.target
- 58 yum install -y httpd vsftpd
- 59 systemctl status httpd
- 60 systemctl enable httpd
- 61 cd /etc/systemd/system/
- 62 ls
- 63 cd multi-user.target.wants/
- 64 \ls -l
- 65 systemctl cat multi-user.target
- 66 pwd
- 67 cd ..
- 68 ls
- 69 cd basic.target.wants/
- 70 ls
- 71 cd
- 72 systemctl list-dependencies
- 73 history
- 74 yum install -y git
- 75 git clone https://github.com/sandervanvugt/luth
- 76 cd luth
- 77 ./countdown 12
- 78 cd ..
- 79 journalctl
- 80 cd /etc/systemd/
- 81 ls
- 82 vim journald.conf
- 83 mkdir /var/log/journal
- 84 systemctl daemon-reload
- 85 cd /var/log/journal/
- 86 ls
- 87 cd f45519db5ca9497dbcb080d9152e8454/
- 88 ls
- 89 cd
- 90 cat /etc/hosts | systemd-cat
- 91 journalctl -F
- 92 journalctl -f
- 93 journalctl UNIT=sshd.service
- 94 systemctl status sshd.service
- 95 loginctl -h
- 96 loginctl list-sessions
- 97 ip a
- 98 loginctl list-sessions
- 99 loginctl kill-session 6
- 100 loginctl list-sessions
- 101 history
- 102 systemctl cat httpd.service
- 103 systemctl edit httpd.service
- 104 systemctl cat httpd.service
- 105 ps aux | grep ftp
- 106 ps aux | grep http
- 107 systemctl status httpd.service
- 108 systemctl status vsftpd.service
- 109 systemctl start httpd
- 110 systemctl status httpd
- 111 systemctl status vsftpd
- 112 git clone https://github.com/sandervanvugt/linperf
- 113 git clone https://github.com/sandervanvugt/performance
- 114 cd performance/
- 115 ls
- 116 vim stress1.service
- 117 vim stress2.service
- 118 pwd
- 119 cp stress* /etc/systemd/system/
- 120 systemctl status stress1.service
- 121 systemctl start stress1.service
- 122 systemctl start stress2.service
- 123 systemctl cat stress1.service
- 124 systemctl cat stress2.service
- 125 lscpu
- 126 top
- 127 cd /sys/
- 128 ls
- 129 cd bus
- 130 ls
- 131 cd cpu/
- 132 ls
- 133 cd devices/
- 134 ls
- 135 ls cpu0/
- 136 pwd
- 137 echo 0 > cpu1/online
- 138 lscpu
- 139 top
- 140 systemctl stop stress*
- 141 systemctl status stress*
- 142 systemctl status stress1
- 143 top
- 144 pwd
- 145 echo 1 > cpu1/online
- 146 history
- 147 exit
- 148 systemd-analyze security httpd.service
- 149 systemd-analyze security sshd.service
- 150 systemd-analyze blame
- 151 history
- 152 luth/countdown 12
- 153 cat /etc/fstab
- 154 poweroff
- 155 cat /etc/fstab
- 156 cd /run/systemd/
- 157 ls
- 158 cd generator/
- 159 ls
- 160 systemctl cat boot.mount
- 161 vim '-.mount'
- 162 vim -- '-.mount'
- 163 mkfs.xfs /dev/sdb
- 164 mkdir /files
- 165 vim files.mount
- 166 systemctl start files.mount
- 167 systemctl status files.mount
- 168 pwd
- 169 lls
- 170 ls
- 171 systemctl stop files.mount
- 172 mv files.mount /etc/systemd/system/
- 173 systemctl daemon-reload
- 174 systemctl enable --now filesmount
- 175 systemctl enable --now files.mount
- 176 systemctl status files.mount
- 177 cd
- 178 git clone https://github.com/sandervanvugt/systemd
- 179 cd systemd/
- 180 ls
- 181 vim nfsdata.mount
- 182 vim /etc/exports
- 183 systemctl start nfs-server
- 184 vim /etc/exports
- 185 systemctl start nfs-server
- 186 systemctl status nfs-server
- 187 systemctl stop nfs-server
- 188 vim /etc/exports
- 189 systemctl start nfs-server
- 190 systemctl status nfs-server
- 191 cat nfsdata.mount
- 192 cat nfsdata.automount
- 193 pwd
- 194 cp nfs* /etc/systemd/system/
- 195 mkdir /nfsdata
- 196 systemctl enable nfsdata.automount
- 197 systemctl start nfsdata.automount
- 198 systemctl status nfsdata.automount
- 199 cd /nfsdata
- 200 ls
- 201 systemctl status nfsdata.automount
- 202 cd /etc/systemd/system/
- 203 cat nfsdata.mount
- 204 cat nfsdata.automount
- 205 systemctl cat fstrim.timer
- 206 systemctl cat fstrim.service
- 207 systemctl enable fstrim.timer
- 208 cd
- 209 cd systemd/
- 210 cat monitor.service
- 211 cat monitor.timer
- 212 cp monitor.* /etc/systemd/system
- 213 systemctl daemon-reload
- 214 systemctl enable --now monitor.timer
- 215 date
- 216 journalctl -S today -f -u monitor.service
- 217 systemctl status *timer
- 218 ls
- 219 yum install -y tftp-server
- 220 systemctl status *socket
- 221 systemctl cat tftp.socket
- 222 systemctl cat tftp.service
- 223 systemctl set-property --runtime MemoryLimit=4M sshd.service
- 224 systemctl set-property --runtime MemoryLimit=4 sshd.service
- 225 systemctl set-property --runtime MemoryMax=4 sshd.service
- 226 systemctl show sshd.service | grep emory
- 227 man -k systemd | grep resource
- 228 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement