Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@server1 log]# history
- 1 dnf install git -y
- 2 vim countdown
- 3 chmod +x countdown
- 4 ./countdown 16
- 5 ./countdown 16 lab
- 6 ssh student@192.168.29.147
- 7 ip a
- 8 tar czvf /root/archive.tgx /etc
- 9 ls -l
- 10 mv archive.tgx archive.tgz
- 11 ls
- 12 grep -v '^$' /etc/dnsmasq.conf
- 13 grep -v '^$' /etc/dnsmasq.conf | sort
- 14 grep -v '^$' /etc/dnsmasq.conf
- 15 grep -v '^$' /etc/dnsmasq.conf | sort
- 16 grep -v '^$' /etc/dnsmasq.conf | sort > /var/tmp/dnslines.txt
- 17 useradd bob
- 18 mkdir userfiles
- 19 find / -user bob -type f
- 20 find / -user bob -type f -exec cp -a {} userfiles/ \;
- 21 man sort
- 22 grep -v '^$' /etc/dnsmasq.conf | sort -d
- 23 history
- 24 ./countdown 13 break
- 25 history
- 26 exit
- 27 su - bob
- 28 passwd bob
- 29 su - bob
- 30 id student
- 31 id bob
- 32 visudo
- 33 su - bob
- 34 visudo
- 35 su - bob
- 36 visudo
- 37 ./countdown 1
- 38 ls -l /etc/skel
- 39 ls -a /etc/skel
- 40 ls -a /home/linda
- 41 vim /etc/login.defs
- 42 useradd --help | less
- 43 cat /etc/passwd
- 44 cat /etc/shadow
- 45 vim /etc/shadow
- 46 su - linda
- 47 ssh linda@localhost
- 48 vim /etc/shadow
- 49 less /etc/passwd
- 50 lid -g wheel
- 51 groupadd sales
- 52 id bob
- 53 usermod -aG sales bob
- 54 id bob
- 55 usermod -G wheel bob
- 56 id bob
- 57 usermod --help | less
- 58 usermod -G sales bob
- 59 ./countdown 16 lab and break
- 60 ./countdown 16 "lab and break"
- 61 vim /etc/login.defs
- 62 touch /etc/skel/newfile
- 63 groupadd profs
- 64 groupadd student
- 65 groupadd students
- 66 useradd anna -G profs
- 67 useradd anouk -G profs
- 68 useradd lisa -G students
- 69 useradd linda -G students
- 70 for i in linda lisa anna anouk; do echo password | passwd --stdin $i; done
- 71 tail -4 /etc/shadow
- 72 history
- 73 ls -l /etc/hosts
- 74 touch testfile
- 75 ls -l
- 76 chown linda testfile
- 77 ls -l
- 78 chown linda:profs testfile
- 79 ls -l
- 80 chgrp students testfile
- 81 ls -l
- 82 mkdir -p /data/profs /data/students
- 83 ls -l /data
- 84 chown :profs /data/profs
- 85 chgrp students /data/students
- 86 ls -l
- 87 ls -l /data
- 88 chmod 770 /data/students
- 89 chmod g+w,o-rx /data/profs
- 90 ls -l /data
- 91 history
- 92 cd /home/linda
- 93 touch rootfile
- 94 su - linda
- 95 touch rootfile2
- 96 su - linda
- 97 su - anna
- 98 chmod g+s /data/profs
- 99 ls -l /data/
- 100 su - anna
- 101 su - anouk
- 102 chmod +t /data/profs
- 103 ls -ld /data/profs
- 104 su - anouk
- 105 cd
- 106 ./countdown 1 questions
- 107 cd /home/linda
- 108 touch roofile
- 109 ls -l rootfile2
- 110 ls -l rootfile
- 111 ls -l rootfile2
- 112 rm rootfile2
- 113 touch newfile
- 114 ls -l newfile
- 115 su - linda
- 116 history
- 117 mkdir -p /files/profs /files/students
- 118 cd /files
- 119 ls -l
- 120 chgrp profs profs
- 121 chgrp students students
- 122 chmod 770 *
- 123 ls -l
- 124 umask
- 125 umask 002
- 126 umask
- 127 umask 022
- 128 exit
- 129 ./countdown 15 "lab and break"
- 130 lsblk
- 131 poweroff
- 132 fdisk /dev/nvme0n1
- 133 lsblk
- 134 mkfs.xfs /dev/nvme0n1p3
- 135 mount /dev/nvme0n1p3 /mnt
- 136 lsblk
- 137 mount
- 138 lsblk
- 139 findmnt
- 140 vim /etc/fstab
- 141 mount -a
- 142 reboot
- 143 fdisk /dev/nvme0n1
- 144 vim /etc/fstab
- 145 mkfs.xfs /dev/nvme0n1p5
- 146 mkfs.ext4 /dev/nvme0n1p6
- 147 mkdir /part5 /part6
- 148 mount -a
- 149 touch /part5/part_5_file
- 150 touch /part6/part6_file
- 151 vim /etc/fstab
- 152 fdisk /dev/nvme0n1
- 153 history
- 154 reboot
- 155 journalctl -xb
- 156 vim /etc/fstab
- 157 lsblk
- 158 blkid
- 159 blkid | grep p5
- 160 blkid | grep p5 | awk '{ print $2 }'
- 161 blkid | grep p5 | awk '{ print $2 }' >> /etc/fstab
- 162 vim /etc/fstab
- 163 mount -a
- 164 ls /part6
- 165 top
- 166 ps aux | grep zombie
- 167 kill -9 38339
- 168 ps aux | grep zombie
- 169 kill -SIGCHLD 38338
- 170 kill -9 38338
- 171 ps aux | grep zombie
- 172 dd if=/dev/zero of=/dev/null &
- 173 top
- 174 echo 0 > /sys/bus/cpu/devices/cpu1/online
- 175 top
- 176 nice --help | less
- 177 nice -20 sleep 100
- 178 echo 1 > /sys/bus/cpu/devices/cpu1/online
- 179 history
- 180 mount | grep proc
- 181 cd proc
- 182 cd /proc
- 183 ls
- 184 cd sys
- 185 ls
- 186 cd vm/
- 187 ls
- 188 sysctl -a
- 189 sysctl -a | wc
- 190 tuned-adm list
- 191 dnf install -y tuned
- 192 dnf install -y tuned-adm
- 193 tuned-adm --list
- 194 tuned-adm list
- 195 tuned-amd profile virtual-guest
- 196 tuned-adm profile virtual-guest
- 197 tuned-adm list
- 198 systemctl status tuned
- 199 cd /usr/lib/tuned/
- 200 ls
- 201 cd virtual-
- 202 cd virtual-guest/
- 203 ls
- 204 vim tuned.conf
- 205 pwd
- 206 ls -ld /etc/tuned
- 207 cd /etc/tuned
- 208 ls
- 209 mkdir sander
- 210 cp /usr/lib/tuned/latency-performance/tuned.conf sander/
- 211 tuned-adm list
- 212 tuned-adm profile sander
- 213 tuned-adm recommend
- 214 history
- 215 cd
- 216 history
- 217 ip link show
- 218 ip addr show
- 219 hostnamectl status
- 220 hostnamectl hostname server1.example.local
- 221 hostnamectl status
- 222 cat /etc/hostname
- 223 exit
- 224 vim /etc/hosts
- 225 ping google.com
- 226 vim /etc/nsswitch.conf
- 227 ping google.com
- 228 cat /etc/resolv.conf
- 229 nmtui
- 230 cd /etc/NetworkManager/
- 231 ls
- 232 cd system-connections/
- 233 ls
- 234 vim ens160.nmconnection
- 235 ip a
- 236 cd
- 237 systemctl -t help
- 238 systemctl list-unit-files
- 239 systemctl list-units
- 240 systemctl list-units -t timer
- 241 systemctl cat logrotate.timer
- 242 systemctl cat logrotate.service
- 243 systemctl cat logrotate.timer
- 244 systemctl status logrotate.timer
- 245 systemctl cat sshd.service
- 246 systemctl status sshd.service
- 247 kill -9 4660
- 248 systemctl status sshd.service
- 249 systemctl status sshd
- 250 dnf install -y httpd
- 251 service sshd status
- 252 systemctl status httpd
- 253 systemctl enable --now httpd
- 254 exit
- 255 history
- 256 fdisk /dev/nvme0n1
- 257 lslbk
- 258 lsblk
- 259 cat /proc/partitions
- 260 fdisk -l /dev/nvme0n1
- 261 mkfs.xfs /dev/nvme0n1p4
- 262 cd /boot
- 263 umount /dev/sda1
- 264 umount /boot
- 265 lsof /boot
- 266 findmnt
- 267 lsblk
- 268 blkid
- 269 mount | grep part6
- 270 tune2fs -L cow /dev/nvme0n1p5
- 271 mount LABEL=cow /mnt
- 272 vim /etc/fstab
- 273 fdisk /dev/nvme0n1
- 274 mkswap /dev/nvme0n1p6
- 275 free -m
- 276 vim /etc/fstab
- 277 swapon -a
- 278 free -m
- 279 history
- 280 dd if=/dev/zero of=/swapfile bs=1M count=1024
- 281 mkswap /swapfile
- 282 chmod 0600 /swapfile
- 283 vim /etc/fstab
- 284 swapon -a
- 285 free -m
- 286 cd
- 287 ./countdown 1
- 288 df -h
- 289 dd if=/dev/sr0 of=/rhel9.iso bs=1M
- 290 mkdir /repo
- 291 vim /etc/fstab
- 292 mount -a
- 293 ls /rhel9
- 294 ls /repo/
- 295 dnf install nmap
- 296 dnf config-manager -h | less
- 297 dnf config-manager --add-repo="file:///repo/BaseOS"
- 298 dnf config-manager --add-repo="file:///repo/AppStream"
- 299 dnf install nmap -y
- 300 cd /etc/yum.repos.d/
- 301 ls
- 302 vim repo_BaseOS.repo
- 303 vim repo_AppStream.repo
- 304 dnf install nmap -y
- 305 ssh student@192.168.29.147
- 306 history
- 307 cat repo_BaseOS.repo
- 308 cd
- 309 cat /etc/fstab
- 310 dnf list 'selinux*'
- 311 dnf search selinux
- 312 dnf provides */Containerfile
- 313 ls -l $(which dnf) $(which yum)
- 314 dnf groups list
- 315 dnf groups install "Virtualization Host"
- 316 dnf groups list hidden
- 317 history
- 318 dd if=/dev/nvme0n1 of=/dev/zero &
- 319 kill -USR1 37341
- 320 fg
- 321 dnf install -y git
- 322 git clone https://github.com/sandervanvugt/rhcsa
- 323 cd rhcsa/
- 324 ls
- 325 ./zombie
- 326 systemctl status httpd
- 327 exit
- 328 systemctl cat httpd.service
- 329 systemctl show httpd.service
- 330 systemctl edit httpd.service
- 331 export EDITOR=/usr/bin/vim
- 332 systemctl edit httpd.service
- 333 systemctl cat httpd.service
- 334 systemctl daemon-reload
- 335 systemctl status httpd
- 336 kill -9 40478
- 337 systemctl status httpd
- 338 man -k systemd | less
- 339 man systemd.directives
- 340 man systemd.unit
- 341 ./countdown 13 "break and practice"
- 342 history
- 343 top
- 344 killall dd
- 345 top
- 346 dnf install nginx -y
- 347 systemctl mask httpd
- 348 systemctl unmask httpd
- 349 systemctl mask nginx
- 350 systemctl start nginx
- 351 systemctl status sshd
- 352 journalctl
- 353 journalctl -p err
- 354 journalctl -f
- 355 journalctl -u sshd.service
- 356 cd /var/log
- 357 ls
- 358 ls -l
- 359 grep 'Storage' /etc/systemd/journald.conf
- 360 ls -l /var/log/journal
- 361 mkdir /var/log/journal
- 362 ls /var/log/journal/
- 363 systemctl restart systemd-journal-flush.service
- 364 ls
- 365 ls journal/
- 366 lsblk
- 367 gdisk /dev/nvme0n2
- 368 pvcreate /dev/nvme0n2p1
- 369 pvs
- 370 vgcreate vgdata /dev/nvme0n2p1
- 371 pvs
- 372 vgs
- 373 vgdisplay
- 374 lvcreate -n lvdata -L 2G vgdata
- 375 lvcreate -n lvdata -l 100%FREE vgdata
- 376 lvs
- 377 mkfs.ext4 /dev/vgdata/lvdata
- 378 mkdir /lvdata
- 379 vim /etc/fstab
- 380 mount -a
- 381 mount
- 382 ls -l /dev/mapper/vgdata-lvdata /dev/vgdata/lvdata
- 383 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement