Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@localhost ~]# history
- 1 tar -cvzf /root/archive.tgz /etc
- 2 ls -l
- 3 tar -tvf archive.tgz
- 4 cat /etc/dnsmasq.conf | sed '/^$/d' | sort
- 5 cat /etc/dnsmasq.conf | sed '/^$/d' | sort > /var/tmp/dnslines.txt
- 6 useradd bob
- 7 mkdir /root/usersfiles; find / -user bob -exec cp {} /root/userfiles/ \;
- 8 mkdir /root/userfiles; find / -user bob -exec cp {} /root/userfiles/ \;
- 9 ls userfiles/
- 10 ls -Ra userfiles/
- 11 dnf install -y git
- 12 vim countdown
- 13 ./countdown 12
- 14 ls -l
- 15 chmod +x countdown
- 16 ./countdown 12
- 17 less /etc/passwd
- 18 id bob
- 19 su - bob
- 20 id student
- 21 visudo
- 22 vim /etc/login.defs
- 23 passwd bob
- 24 grep bob /etc/shadow
- 25 vim /etc/login.defs
- 26 useradd whoeve3r
- 27 passwd whoeve3r
- 28 tail -5 /etc/shadow
- 29 ls /etc/skel
- 30 ls -a /etc/skel
- 31 ls -a /home/bob
- 32 passwd --help | less
- 33 passwd -l bob
- 34 tail -5 /etc/shadow
- 35 chage --help
- 36 chage -l bob
- 37 groupadd dudes
- 38 usermod -aG dudes bob
- 39 id bob
- 40 grep bob /etc/passwd
- 41 grep bob /etc/group
- 42 id bob
- 43 passwd -S
- 44 passwd -S bob
- 45 vim /etc/ssh/sshd_config
- 46 ls -l /home
- 47 ls -l /etc/hosts
- 48 mkdir -p /data/sales
- 49 cd /data
- 50 ls -l
- 51 groupadd sales
- 52 usermod -aG sales bob
- 53 id
- 54 chgrp sales /data/sales
- 55 ls -l
- 56 chmod 770 sales
- 57 ls -l
- 58 history
- 59 cd
- 60 useradd linda
- 61 cd /home/linda
- 62 vim runme
- 63 chmod +x runme
- 64 su - linda
- 65 chmod u+s runme
- 66 ls -l
- 67 find / -perm /4000 2>/dev/null
- 68 find / -perm /4000 -exec ls -l {} \; 2>/dev/null
- 69 ls -l /etc/shadow
- 70 #find / -perm /4000 -exec ls -l {} \; 2>/dev/null
- 71 pwd
- 72 touch removeme
- 73 su - linda
- 74 touch writeme
- 75 su - linda
- 76 cd
- 77 ./countdown 12
- 78 man find
- 79 find / -perm /6000 -exec ls {} \;
- 80 find / -perm /6000 -exec ls -l {} \;
- 81 for i in find / -perm /4000;
- 82 find / -perm /6000 -exec ls -l {} \;
- 83 find / -perm /6000
- 84 for i in find / -perm /4000 2>/dev/null; do ls -l $i; done
- 85 for i in $(find / -perm /4000); do ls -l $i; done
- 86 strace -c for i in $(find / -perm /4000); do ls -l $i; done
- 87 strace -c "for i in $(find / -perm /4000); do ls -l $i; done"
- 88 vim countdown
- 89 ./countdown 1
- 90 vim countdown
- 91 ./countdown 5
- 92 vim countdown
- 93 history
- 94 strace -f /bin/bash -c 'for i in $(find / -perm /4000); do ls -l $i; done'
- 95 strace -c -f /bin/bash -c 'for i in $(find / -perm /4000); do ls -l $i; done'
- 96 strace -c find / -perm /6000 -exec ls -l {} \;
- 97 strace -c -f /bin/bash -c 'for i in $(find / -perm /4000); do ls -l $i; done'
- 98 strace -c -f find / -perm /6000 -exec ls -l {} \;
- 99 grep sales /etc/group
- 100 useradd -aG sales linda
- 101 usermod -aG sales linda
- 102 grep sales /etc/group
- 103 cd /data
- 104 ls -l
- 105 su - bob
- 106 su - linda
- 107 chmod g+s sales
- 108 ls -l
- 109 su - bob
- 110 su - linda
- 111 chmod +t /data/sales
- 112 ls -l
- 113 su - linda
- 114 chown linda sales
- 115 ls -l
- 116 su - linda
- 117 history
- 118 cd
- 119 ./countdown 10
- 120 vim countdown
- 121 ./countdown 10
- 122 groupadd students
- 123 groupadd profs
- 124 vim /etc/login.defs
- 125 groupadd -G students lisa
- 126 useradd -G students lisa
- 127 usermod -aG students linda
- 128 useradd -G profs anna
- 129 useradd -G profs anouk
- 130 mkdir -p /data/profs /data/students
- 131 cd /data
- 132 chgrp students students
- 133 chgrp profs profs
- 134 chmod 3770 profs
- 135 chmod 3770 students/
- 136 ls -l
- 137 chown anna students/
- 138 chown anna profs
- 139 ls -l
- 140 cd
- 141 ./countdown 13
- 142 lsblk
- 143 poweroff
- 144 man find
- 145 useradd --help
- 146 passwd --help
- 147 lsblk
- 148 fdisk /dev/sda
- 149 lsblk
- 150 mkfs.xfs /dev/sda3
- 151 mkdir /files
- 152 vim /etc/fstab
- 153 mount -a
- 154 vim /etc/fstab
- 155 mount -a
- 156 lsblk
- 157 mount
- 158 mount | wc
- 159 mount | grep '^/'
- 160 lsblk
- 161 history
- 162 man test
- 163 vim hintscript.sh
- 164 chmod +x hintscript.sh
- 165 ./hintscript.sh
- 166 vim hintscript.sh
- 167 lsblk
- 168 df -h
- 169 dd if=/dev/zero of=/root/diskfile.img bs=1M count=8192
- 170 du -h diskfile.img
- 171 losetup -fP diskfile.img
- 172 losetup -a
- 173 fdisk -l /dev/loop0
- 174 lsblk
- 175 xxd -l 512 /dev/sda | less
- 176 fdisk /dev/sda
- 177 fdisk -l /dev/sda
- 178 cat /proc/partitions
- 179 reboot
- 180 cat /proc/partitions
- 181 mkdir /xfsfiles
- 182 mkdir /ext4files
- 183 mkfs.xfs /dev/sda5
- 184 mkfs.ext4 /dev/sda6
- 185 vim /etc/fstab
- 186 mount -a
- 187 lsblk
- 188 fdisk /dev/sda
- 189 vim /etc/fstab
- 190 reboot
- 191 fdisk -l /dev/sda
- 192 touch aa
- 193 mount -o remount,rw /
- 194 history
- 195 vim /etc/fstab
- 196 reboot
- 197 blkid
- 198 vim /etc/fstab
- 199 tune2fs -L cow /dev/sda5
- 200 blkid
- 201 vim /etc/fstab
- 202 reboot
- 203 xxd -l 512 /dev/sda
- 204 cat /dev/sda | less
- 205 mkfs.ext4 --help | less
- 206 xfs_admin --help
- 207 tune2fs --help
- 208 cd /data
- 209 ls -l
- 210 su - anna
- 211 man setfacl
- 212 setfacl -R -m g:profs:rX students
- 213 ls students/
- 214 ls students/ -l
- 215 ls -l
- 216 getfacl students/
- 217 getfacl students/student1
- 218 su - anna
- 219 getfacl students/newfile
- 220 ls -lZ
- 221 setfacl -m d:g:profs:rx students
- 222 getfacl students/
- 223 su - anna
- 224 getfacl students/newfile2
- 225 history
- 226 sleep 180; /root/countdown 12
- 227 history
- 228 df -h
- 229 poweroff
- 230 lsblk
- 231 fdisk /dev/sdb
- 232 lsblk
- 233 pvcreate --help
- 234 pvcreate /dev/sdb1
- 235 pvs
- 236 vgcreate --help | less
- 237 vgcreate -s 8M vgdata /dev/sdb1
- 238 man lvcreate
- 239 lvcreate -L 1G -n lvdata vgdata
- 240 pvs
- 241 vgs
- 242 lvs
- 243 mkfs.xfs /dev/vgdata/lvdata
- 244 mkdir /lvdata
- 245 vim /etc/fstab
- 246 mount -a
- 247 mount
- 248 tail -1 /etc/fstab
- 249 ls -l /dev/vgdata/lvdata /dev/mapper/vgdata-lvdata
- 250 history
- 251 df -h
- 252 lvs
- 253 vgs
- 254 vgextend --help | less
- 255 vgextend rhel /dev/sdb2
- 256 vgs
- 257 lvextend --help | less
- 258 lvextend -r -l +100%FREE /dev/rhel
- 259 lvextend -r -l +100%FREE /dev/rhel/root
- 260 df -h
- 261 lvs
- 262 vgs
- 263 pvs
- 264 lvdisplay
- 265 lvs
- 266 history
- 267 ./countdown 15
- 268 dd if=/dev/sr0 of=/rhel8.iso bs=1M
- 269 df -h
- 270 mkdir /repo
- 271 vim /etc/fstab
- 272 mount -a
- 273 mount
- 274 cd /repo
- 275 ls
- 276 cd BaseOS/
- 277 ls
- 278 ls Packages/
- 279 cd /
- 280 lsblk
- 281 yum repolist
- 282 cd /etc/yum.repos.d/
- 283 ls
- 284 cat redhat.repo
- 285 rm -f *.repo
- 286 vim base.repo
- 287 vim appstream.repo
- 288 yum repolist
- 289 yum search nmap
- 290 yum install nmap-ncat
- 291 yum provides */yum-config-manager
- 292 man yum.conf
- 293 yum module list
- 294 yum module provides podman
- 295 yum module info container-tools
- 296 yum module info postgress
- 297 yum module info postgres
- 298 yum module info postgresql | less
- 299 yum module list postgresql
- 300 yum module install postgresql:9.6/client
- 301 yum install httpd
- 302 ls -l $(which yum) $(which dnf)
- 303 cd
- 304 ./countdown 15
- 305 lslbk
- 306 lsblk
- 307 history
- 308 ip a
- 309 ip route
- 310 cat /etc/resolv.conf
- 311 ping 8.8.8.8
- 312 ping nu.nl
- 313 man ifconfig
- 314 ip addr add dev ens160 10.0.0.10/24
- 315 ip a
- 316 ifconfig
- 317 ifconfig --all
- 318 ifconfig -a
- 319 ifconfig /all
- 320 rpm -qf $(which ifconfig)
- 321 yum remove net-tools
- 322 ip route del default via 192.168.29.2
- 323 ip route show
- 324 ping 8.8.8.8
- 325 ip route add default via 192.168.29.1
- 326 ping 8.8.8.8
- 327 ip route
- 328 ip route del default via 192.168.29.
- 329 ip route add default via 192.168.29.2
- 330 ping 8.8.8.8
- 331 ip a
- 332 systemctl status NetworkManager
- 333 cd /etc/sysconfig/network-scripts/
- 334 ls
- 335 vim ifcfg-ens160
- 336 nmtui
- 337 ip a
- 338 ping 8.8.8.8
- 339 ping nu.nl
- 340 nmtui
- 341 nmcli connection show
- 342 nmcli connection add ipv4.addresses 10.0.0.10/24
- 343 nmcli connection add ipv4.addresses 10.0.0.10/24 type ethernet
- 344 nmcli con show
- 345 mount /dev/sr0 /mnt
- 346 ls /mnt/
- 347 history
- 348 su --help
- 349 su linda -c touch /tmp/linda
- 350 su linda -c "touch /tmp/linda"
- 351 ls -l /tmp/linda
- 352 systemctl status tuned
- 353 tuned-adm --help
- 354 tuned-adm list
- 355 tuned-adm profile latency-performance
- 356 tuned-adm list
- 357 sysctl -a
- 358 sysctl -a | wc
- 359 free -m
- 360 swapon -a
- 361 swapon -s
- 362 fdisk /dev/sda
- 363 lsblk
- 364 free -m
- 365 mkswap --help | less
- 366 mkswap -L SWAP /dev/sda7
- 367 vim /etc/fstab
- 368 systemctl isolate multi-user.target
- 369 blkid
- 370 blkid | grep SWAP
- 371 blkid | grep SWAP | awk '{ print $3 }'
- 372 blkid | grep SWAP | awk '{ print $3 }' >> /etc/fstab
- 373 vim /etc/fstab
- 374 reboot
- 375 mount -o remount,rw /
- 376 mount -o remount,rw /
- 377 systemctl list-units
- 378 cd /boot
- 379 ls
- 380 cd ..
- 381 systemctl start rescue.target
- 382 systemctl list-units
- 383 cd /boot
- 384 ls
- 385 cd ..
- 386 mount -a
- 387 systemctl start default.target
- 388 cat /etc/fstab
- 389 systemctl list-units -t mount
- 390 cd /run/systemd/generator
- 391 ls
- 392 cat files.mount
- 393 cd /etc/systemd/system/
- 394 vim files.mount
- 395 systemctl list-dependencies
- 396 vim files.mount
- 397 vim /etc/fstab
- 398 vim files.mount
- 399 systemctl enable files.mount
- 400 reboot
- 401 mount
- 402 systemctl status files.mount
- 403 lsblk
- 404 df -h
- 405 journalctl
- 406 cd /var/log
- 407 ls
- 408 mkdir journal
- 409 ls journal
- 410 systemctl daemon-reload
- 411 ls journal
- 412 vim dglab.txt
- 413 poweroff
- 414 yum install vdo kmod-kvdo
- 415 man vdo
- 416 vdo create --name=vdo1 --device=/dev/sde --vdoLogicalSize=1T
- 417 mkfs.xfs -K /dev/mapper/vdo1
- 418 cat /etc/fstab
- 419 cd /usr/share/doc/vdo/examples/
- 420 ls
- 421 cd systemd/
- 422 ls
- 423 mkdir /myvdo
- 424 cp VDO.mount.example /etc/systemd/system/myvdo.mount
- 425 cd /etc/systemd/system/
- 426 vim myvdo.mount
- 427 systemctl enable --now myvdo.mount
- 428 systemctl status myvdo.mount
- 429 mount | grep vdo
- 430 reboot
- 431 mount | grep vdo
- 432 man lvmvdo
- 433 vdostats --human-readable
- 434 history 424 cp VDO.mount.example /etc/systemd/system/myvdo.mount
- 425 cd /etc/systemd/system/
- 426 vim myvdo.mount
- 427 systemctl enable --now myvdo.mount
- 428 systemctl status myvdo.mount
- 429 mount | grep vdo
- 430 reboot
- 431 mount | grep vdo
- 432 man lvmvdo
- 433 vdostats --human-readable
- 434 history
- 435 reboot
- 436 vim /etc/default/grub
- 437 grub2-mkconfig -o /boot/grub2/grub.cfg
- 438 reboot
- 439 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement