Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@rhcsalabs ~]# history
- 1 dnf install nmap -y
- 2 vim countdown.sh
- 3 chmod +x countdown.sh
- 4 ./countdown.sh 19
- 5 tar zcvf /root/archive.tgz /etc
- 6 ls -l
- 7 tar tvf archive.tgz
- 8 tar zcvf /root/archive.tgz -C /etc
- 9 tar zcvf /root/archive.tgz -C /etc .
- 10 tar tvf archive.tgz
- 11 cd /etc
- 12 tar -cvzf /root/archive.tgz .
- 13 history
- 14 cut -d : -f 1 /etc/passwd
- 15 cat /etc/passwd
- 16 cut -d : -f 1 /etc/passwd | sort
- 17 cut -d : -f 1 /etc/passwd | sort | grep -v '^$'
- 18 cut -d : -f 1 /etc/passwd | sort | grep -v '^$' >/var/tmp/users
- 19 cat /var/tmp/users
- 20 man cut
- 21 man sort
- 22 sort -b /etc/passwd
- 23 sort -b /etc/passwd | cut -d : -f 1
- 24 cd
- 25 useradd bob
- 26 mkdir userfiles
- 27 find / -user "bob" -type f
- 28 find / -user "bob" -type f -exec cp {} /root/userfiles \; 2>/dev/null
- 29 ls -al /root/userfiles/
- 30 history
- 31 ls -l $(which yum) $(which dnf)
- 32 DNF
- 33 dnf install nmap
- 34 df -h
- 35 dd if=/dev/sr0 of=/rhel9.iso bs=1M
- 36 mkdir /repo
- 37 vim /etc/fstab
- 38 mount -a
- 39 ls /repo
- 40 cd /repo
- 41 ls BaseOS/
- 42 ls BaseOS/Packages/
- 43 cd
- 44 history
- 45 lsblk
- 46 dnf config-manager --add-repo="file:///repo/AppStream"
- 47 dnf config-manager --add-repo="file:///repo/BaseOS"
- 48 dnf repolist
- 49 dnf search nmap
- 50 dnf install nmap
- 51 cd /etc/yum.repos.d/
- 52 ls
- 53 vim repo_BaseOS.repo
- 54 vim repo_AppStream.repo
- 55 history
- 56 dnf install nmap
- 57 history
- 58 tail -1 /etc/fstab
- 59 cd /repo/AppStream/Packages/
- 60 ls
- 61 cd
- 62 dnf install -y git
- 63 git clone https://github.com/sandervanvugt/rhcsa9
- 64 cd rhcsa9/
- 65 ls
- 66 cd labs/
- 67 ls
- 68 ./live-lab1-grade.sh
- 69 vim live-lab1-grade.sh
- 70 history
- 71 dnf groups list
- 72 dnf groups install "Development Tools"
- 73 history
- 74 cd
- 75 ./countdown.sh 13
- 76 history
- 77 lsblk
- 78 exit
- 79 ./countdown.sh 12
- 80 ./countdown.sh 1
- 81 ./countdown.sh 13
- 82 ./countdown.sh 15
- 83 visudo
- 84 tail -1 /etc/passwd
- 85 id bob
- 86 su - bob
- 87 passwd bob
- 88 su - bob
- 89 journalctl
- 90 usermod -aG wheel bob
- 91 su - bob
- 92 visudo
- 93 useradd linda
- 94 echo password | passwd --stdin linda
- 95 su - linda
- 96 visudo
- 97 su - linda
- 98 history
- 99 #find / -name ".bash_history" -type f -exec rm -f {} \;
- 100 dnf repolist
- 101 ps aux | less
- 102 less /etc/passwd
- 103 usermod --help
- 104 vim /etc/login.defs
- 105 cd /etc/skel
- 106 ls
- 107 ls -a
- 108 touch hello
- 109 ls -a
- 110 useradd sander
- 111 ls -al /home/sander
- 112 cd
- 113 less /etc/passwd
- 114 id bob
- 115 grep bob /etc/passwd
- 116 grep bob /etc/group
- 117 lid wheel
- 118 lid -g wheel
- 119 useradd -g wheel baduser
- 120 id baduser
- 121 grep wheel /etc/group
- 122 grep baduser /etc/passwd
- 123 lid -g wheel
- 124 chage bob
- 125 history
- 126 cd rhcsa9/labs/
- 127 ls
- 128 vim live-lab2-grade.sh
- 129 ./live-lab2-grade.sh
- 130 vim /etc/login.defs
- 131 touch /etc/skel/newfile
- 132 groupadd profs
- 133 groupadd students
- 134 useradd -G students linda
- 135 useradd -G students lisa
- 136 usermod -aG students linda
- 137 useradd -G profs anna
- 138 useradd -G profs anouk
- 139 history | grep git
- 140 ./live-lab2-grade.sh
- 141 ls -l
- 142 cd /home/linda
- 143 echo linda > lindafile
- 144 ls -l lindafile
- 145 chmod u-rw
- 146 chmod u-rw linda
- 147 chmod u-rw lindafile
- 148 chown linda lindafile
- 149 ls -l lindafile
- 150 su - linda
- 151 cd
- 152 cd /etc/skel
- 153 mkdir tryme
- 154 chmod 2770 tryme
- 155 useradd pablo
- 156 ls -l pabl
- 157 ls -l /home/pablo
- 158 mkdir -p /data/profs /data/students
- 159 cd /data
- 160 ls -l
- 161 id
- 162 chown :profs profs
- 163 ls -l
- 164 chgrp students students
- 165 ls -l
- 166 chmod 770 students
- 167 ls -l
- 168 chmod g+w,o-rx profs
- 169 ls -l
- 170 su - anna
- 171 chmod g+s /data/profs
- 172 ls -ld /data/profs
- 173 su - anna
- 174 su - anouk
- 175 chmod +t /data/profs
- 176 su - anouk
- 177 chmod g-x,o+x /data/profs
- 178 ls -ld /data/profs
- 179 chmod g+x,o-x /data/profs
- 180 cd /profs
- 181 cd profs
- 182 mkdir one two three
- 183 for i in one two three; do touch $i/four; done
- 184 for i in one two three; do touch $i/five; done
- 185 tree
- 186 ls -lR
- 187 chmod -R g+s .
- 188 ls -lR
- 189 chmod -R g-s .
- 190 find . -type d
- 191 find . -type d -exec chmod g+s {} \;
- 192 ls -lR
- 193 history
- 194 who; find . -exec ls -l {} \;
- 195 umask
- 196 touch '-'
- 197 ls -l
- 198 echo hello > \-
- 199 ls
- 200 rm \-
- 201 rm -- \-
- 202 cd
- 203 history
- 204 poweroff
- 205 echo h > /proc/sysrq-trigger
- 206 dmesg
- 207 ls -l /data
- 208 rm -rf /data
- 209 mkdir -p /data/profs /data/students
- 210 cd /data
- 211 chgrp students students
- 212 chgrp profs profs
- 213 ls -l
- 214 chmod 770 *
- 215 ls -l
- 216 umask
- 217 cd /etc/
- 218 vim bashrc
- 219 cd /etc/profile.d/
- 220 ls
- 221 echo $UID
- 222 exit
- 223 vim umask.sh
- 224 grep 1005 /etc/passwd
- 225 grep 1004 /etc/passwd
- 226 cat /etc/passwd
- 227 su - lisa
- 228 lsblk
- 229 cat /proc/partitions
- 230 df -h
- 231 lsblk
- 232 poweroff
- 233 lsblk
- 234 blkid
- 235 cat /etc/fstab
- 236 touch ff
- 237 mount -o remount,rw /
- 238 touch ff
- 239 blkid | awk '/sda5/ { print $2 }'
- 240 blkid | awk '/sda5/ { print $2 }' >> /etc/fstab
- 241 vim /etc/fstab
- 242 mount -a
- 243 lsblk
- 244 reboot
- 245 #systemd.unit=emergency.target
- 246 history
- 247 ls /dev/disk/
- 248 ls /dev/disk/by-uuid/
- 249 ls /dev/disk/by-uuid/ -l
- 250 free -m
- 251 fdisk /dev/sda
- 252 mkswap -L myswap /dev/sda7
- 253 free -m
- 254 vim /etc/fstab
- 255 swapon -a
- 256 free -m
- 257 history
- 258 cd rhcsa9/
- 259 git pull
- 260 cd labs/
- 261 ls
- 262 ls -l
- 263 systemctl list-units
- 264 systemctl status vmtoolsd.service
- 265 systemctl status sshd.service
- 266 cd
- 267 dnf install -yn httpd
- 268 dnf install -y httpd
- 269 systemctl status httpd.service
- 270 systemctl enable --now httpd
- 271 systemctl status httpd.service
- 272 systemctl -t help
- 273 systemctl list-units -t mounts
- 274 systemctl list-units -t mount
- 275 systemctl cat ext4.mount
- 276 systemctl cat -.mount
- 277 systemctl cat -- -.mount
- 278 systemctl status sshd
- 279 kill -9 1080
- 280 systemctl status sshd
- 281 systemctl cat sshd.service
- 282 systemctl edit httpd.service
- 283 export EDITOR=/usr/bin/vim
- 284 systemctl cat httpd.service
- 285 systemctl cat sshd.service
- 286 systemctl cat httpd.service
- 287 systemctl show httpd.service
- 288 man systemd.directives
- 289 man systemd.resource-control
- 290 systemctl daemon-reload
- 291 systemctl disable --now httpd
- 292 systemctl mask httpd
- 293 systemctl start httpd.service
- 294 systemctl unmask httpd.service
- 295 systemctl start httpd.service
- 296 systemctl stop httpd.service
- 297 systemctl status httpd
- 298 journalctl
- 299 journalctl -x
- 300 journalctl -xb
- 301 journalctl -p err
- 302 grep 'Storage=' /etc/systemd/journald.conf
- 303 mkdir /var/log/journal
- 304 ls -l /var/log/journal/
- 305 systemctl daemon-reload
- 306 ls -l /var/log/journal/
- 307 systemctl restart systemd-journal-flush
- 308 ls -l /var/log/journal/
- 309 history
- 310 cd rhcsa9/
- 311 ls
- 312 cd
- 313 dd if=/dev/zero of=/dev/null &
- 314 top
- 315 echo 0 > /sys/bus/cpu/devices/cpu1/online
- 316 lscpu | less
- 317 top
- 318 renice --help | less
- 319 renice -n 5 -p 9944
- 320 top
- 321 nice --help
- 322 nice -n -5 dd if=/dev/zero of=/dev/null &
- 323 top
- 324 killall dd
- 325 history
- 326 echo 1 > /sys/bus/cpu/devices/cpu1/online
- 327 tuned-adm list
- 328 tuned-adm active
- 329 tuned-adm recommend
- 330 tuned-adm profile balanced
- 331 tuned-adm active
- 332 history
- 333 systemctl status tuned
- 334 echo vm.swappiness = 33 > /etc/sysctl.d/swappiness.conf
- 335 sysctl -a
- 336 sysctl -a | wc -l
- 337 sysctl -a | grep swappi
- 338 sysctl -p /etc/sysctl.d/swappiness.conf
- 339 sysctl -a | grep swappi
- 340 ls -l /usr/lib/tuned/
- 341 less /usr/lib/tuned/desktop/tuned.conf
- 342 mkdir /etc/tuned/myprofile
- 343 vim /etc/tuned/myprofile/tuned.conf
- 344 tuned-adm list
- 345 tuned-adm profile myprofile
- 346 tuned-adm active
- 347 sysctl -a | grep swappi
- 348 vim /etc/tuned/tuned-main.conf
- 349 ip a
- 350 systemctl status NetworkManager
- 351 nmtui
- 352 ip a
- 353 exit
- 354 ./countdown.sh 16
- 355 ./countdown.sh 14
- 356 cd /etc/NetworkManager/system-connections/
- 357 ls
- 358 cat ens160.nmconnection
- 359 cd
- 360 reboot
- 361 exit
- 362 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement