Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@localhost ~]# xxd /dev/sda8 | less
- [root@localhost ~]# history
- 1 vim countdown
- 2 chmod +x countdown
- 3 ./countdown 14
- 4 vim countdown
- 5 ./countdown 14
- 6 tar -czf /root/archive.tgz /etc
- 7 ls -l archive.tgz
- 8 file archive.tgz
- 9 tar tvf archive.tgz
- 10 history
- 11 grep -v '^$' /etc/dnsmasq.conf | sort > /var/tmp/dnslines.txt
- 12 echo $USER
- 13 useradd bob
- 14 find / -user bob
- 15 mkdir /root/userfiles ; find / -user bob -exec cp {} /root/userfiles/ \;
- 16 find / -user bob
- 17 find / -user bob -t file
- 18 find / -user bob
- 19 find / -user bob -type f
- 20 visudo
- 21 useradd lisa
- 22 passwd lisa
- 23 visudo
- 24 su - lisa
- 25 visudo
- 26 su - lisa
- 27 ls -ld /etc/sudoers.d/
- 28 ls -l /etc/sudoers.d/
- 29 vim /etc/sudoers.d/bob
- 30 visudo
- 31 man visudo
- 32 visudo
- 33 ./countdown 12
- 34 tail /etc/shadow
- 35 usermod -L bob
- 36 tail /etc/shadow
- 37 passwd --help
- 38 passwd -u bob
- 39 tail /etc/shadow
- 40 vim /etc/passwd
- 41 vim /etc/login.defs
- 42 echo $(( 99999 / 365 ))
- 43 vim /etc/login.defs
- 44 useradd --help | less
- 45 groupadd sales
- 46 usermod -aG sales student
- 47 exit
- 48 lid -g wheel
- 49 lid sales
- 50 lid -g sales
- 51 chage bob
- 52 vim /etc/login.defs
- 53 cd /etc/skel/
- 54 ls -a
- 55 echo hidem > .hiddenfile
- 56 echo hello > hellofile
- 57 ls -a
- 58 for i in anna anouk linda lisa; do useradd $i; done
- 59 tail /etc/shadow
- 60 usermod --help
- 61 usermod -s /sbin/nologin linda
- 62 usermod -s /sbin/nologin lisa
- 63 groupadd students
- 64 groupadd profs
- 65 usermod -aG profs anna
- 66 usermod -aG profs anouk
- 67 id anna
- 68 usermod -aG wheel anna
- 69 id anna
- 70 usermod -G wheel anna
- 71 id anna
- 72 history
- 73 usermod -s /bin/bash linda
- 74 usermod -s /bin/bash lisa
- 75 usermod -aG students linda
- 76 usermod -aG students lisa
- 77 cd
- 78 ./countdown 12
- 79 tail /etc/group
- 80 usermod -aG profs anna
- 81 tail /etc/group
- 82 cd
- 83 mkdir /data/profs /data/students
- 84 mkdir -p /data/profs /data/students
- 85 cd /data
- 86 ls -l
- 87 chown anna:profs profs
- 88 chgrp student students/
- 89 ls -l
- 90 chmod 770 profs
- 91 ls -l
- 92 chmod g+w,o-rx students/
- 93 ls -l
- 94 cd
- 95 chmod -x countdown
- 96 cat countdown
- 97 ./countdown
- 98 ls -l countdown
- 99 chmod +x countdown
- 100 ls -l countdown
- 101 history
- 102 cd /data/profs/
- 103 su - anna
- 104 chmod g+s .
- 105 ls -ld .
- 106 su - anna
- 107 su - anouk
- 108 chmod +t .
- 109 ls -ld .
- 110 su - anouk
- 111 su - anna
- 112 history
- 113 cd
- 114 cd /home/linda
- 115 touch rootfile
- 116 ls -l
- 117 su - linda
- 118 umask
- 119 vim /etc/bashrc
- 120 pwd
- 121 vim .bashrc
- 122 ls -a
- 123 vim .bash_profile
- 124 cd
- 125 lsblk
- 126 poweroff
- 127 lsblk
- 128 cat /proc/partitions
- 129 ./countdown 12
- 130 lsblk
- 131 fdisk /dev/sda
- 132 lsblk
- 133 mkfs.xfs /dev/sda3
- 134 mount /dev/sda3 /mnt
- 135 lsblk
- 136 mount
- 137 df -h
- 138 cd /mnt
- 139 touch hellofile
- 140 umount /mnt
- 141 lsof /mnt
- 142 cd
- 143 umount /mnt
- 144 mount /dev/sda3 /mnt
- 145 mount
- 146 mount | grep '^/'
- 147 mkdir /mountpoint
- 148 vim /etc/fstab
- 149 mount -a
- 150 findmnt --verify
- 151 reboot
- 152 fdisk /dev/sda
- 153 lsblk
- 154 mkdir /ext4 /xfs
- 155 mkfs.ext4 /dev/sda5
- 156 mkfs.xfs /dev/sda6
- 157 vim /etc/fstab
- 158 fdisk /dev/sda
- 159 reboot
- 160 cat /etc/fstab
- 161 lsblk
- 162 blkid
- 163 blkid | grep sda5 | awk '{ print $2 }'
- 164 blkid | grep sda5 | awk '{ print $2 }' >> /etc/fstab
- 165 vim fstab
- 166 vim /etc/fstab
- 167 reboot
- 168 history
- 169 cat /etc/fstab
- 170 blkid
- 171 mount | grep '^/'
- 172 xfs_admin --help
- 173 xfs_admin -L koeien /dev/sda5
- 174 umount /dev/sda5
- 175 xfs_admin -L koeien /dev/sda5
- 176 vim /etc/fstab
- 177 lsblk
- 178 fdisk /dev/sda
- 179 mkswap /dev/sda6
- 180 vim /etc/fstab
- 181 free -m
- 182 swapon -a
- 183 free -m
- 184 history
- 185 swapon -s
- 186 fdisk /dev/sda
- 187 reboot
- 188 lsblk
- 189 fdisk -l /dev/sda
- 190 echo $(( 62914559 - 54530047 ))
- 191 echo $(( 8384512 / 2 ))
- 192 df -h
- 193 ls
- 194 vim /etc/systemd/system/stress1.service
- 195 cp /etc/systemd/system/stress1.service /etc/systemd/system/stress2.service
- 196 systemctl daemon-reload
- 197 systemctl start stress1.service
- 198 systemctl start stress2.service
- 199 top
- 200 echo 0 > /sys/bus/cpu/devices/cpu1/online
- 201 top
- 202 nice --help
- 203 nice -n 10 dd if=/dev/zero of=/dev/null
- 204 nice -n 10 dd if=/dev/zero of=/dev/null &
- 205 nice -n -5 dd if=/dev/zero of=/dev/null &
- 206 top
- 207 history
- 208 sysctl -a
- 209 sysctl -a | wc
- 210 systemctl status tuned
- 211 ip a
- 212 ip addr add dev ens160 10.0.0.24/16
- 213 ip a
- 214 ifconfig
- 215 man ifconfig
- 216 ip route show
- 217 nmtui
- 218 ip a
- 219 ping nu.nl
- 220 ./countdown 12
- 221 vim /etc/bashrc
- 222 rpm -qa
- 223 rpm -qf /etc/dnsmasq.conf
- 224 rpm -qc dnsmasq
- 225 df -h
- 226 dd if=/dev/sr0 of=/rhel9.iso bs=1M
- 227 mkdir /repo
- 228 echo "/rhel9.iso /repo iso9660 defaults 0 0" >> /etc/fstab
- 229 mount -a
- 230 ls /repo
- 231 cd /repo/BaseOS/
- 232 ls
- 233 ls Packages/
- 234 ls
- 235 ls repodata/
- 236 cd ../AppStream/
- 237 ls
- 238 cd
- 239 cd /etc/yum.repos.d/
- 240 ls
- 241 vim baseos.repo
- 242 dnf repolist
- 243 vim appstream.repo
- 244 dnf repolist
- 245 vim appstream.repo
- 246 pwd
- 247 cat baseos.repo
- 248 cat appstream.repo
- 249 history | tail -15
- 250 vim baseos.repo
- 251 vim appstream.repo
- 252 dnf install nmap
- 253 vim appstream.repo
- 254 vim baseos.repo
- 255 dnf install tuned
- 256 ls *
- 257 ls
- 258 pwd
- 259 dnf list selinux*
- 260 dnf search seinfo
- 261 dnf search all seinfo
- 262 dnf provides */Containerfile
- 263 cd
- 264 dnf groups list
- 265 dnf group install "Virtualization Host"
- 266 dnf history
- 267 history
- 268 history | tail -30
- 269 history | tail -30 | head -25
- 270 cat /etc/yum.repos.d/baseos.repo
- 271 cat /etc/yum.repos.d/appstream.repo
- 272 systemctl -t help
- 273 systemctl list-units -t service
- 274 systemctl cat stress1.service
- 275 cd /etc/systemd/system/
- 276 cp stress1.service sleep.service
- 277 vim sleep.service
- 278 systemctl start sleep.service
- 279 systemctl status sleep.service
- 280 systemctl status sshd
- 281 dnf install httpd
- 282 ls -l $(which dnf) $(which yum)
- 283 systemctl status httpd
- 284 systemctl start httpd
- 285 systemctl status httpd
- 286 systemctl enable httpd
- 287 systemctl status httpd
- 288 systemctl cat sshd.service
- 289 systemctl cat httpd.service
- 290 systemctl edit httpd.service
- 291 export SYSTEMD_EDITOR=/usr/bin/vim
- 292 systemctl edit httpd.service
- 293 systemctl status httpd.service
- 294 systemctl daemon-reload
- 295 kill -9 38511
- 296 systemctl status httpd.service
- 297 vimtutor
- 298 vim .bashrc
- 299 ls -ld /etc/systemd/system /usr/lib/systemd/system
- 300 ls -ld /etc/tuned /usr/lib/tuned
- 301 systemctl show httpd.service
- 302 man systemd.directives
- 303 man systemd.unit
- 304 systemctl list-dependencies
- 305 history
- 306 systemctl mask httpd
- 307 systemctl status httpd
- 308 systemctl stop httpd
- 309 systemctl daemon-reload
- 310 systemctl stop httpd
- 311 systemctl unmask httpd
- 312 systemctl stop httpd
- 313 systemctl mask httpd
- 314 systemctl start httpd
- 315 history
- 316 journalctl
- 317 journalctl -o verbose
- 318 journalctl -xb
- 319 grep 'Storage=' /etc/systemd/journald.conf
- 320 mkdir /var/log/journal
- 321 systemctl list-unit-files journal*
- 322 systemctl list-unit-files journal
- 323 cd /var/log
- 324 mkdir journal
- 325 ls journal/
- 326 systemctl restart systemd-journal-flush.service
- 327 ls journal/
- 328 cd /etc/logrotate.d/
- 329 cd ..
- 330 vim logrotate.conf
- 331 cd
- 332 dnf install tuned
- 333 systemctl status tuned
- 334 systemctl start tuned
- 335 systemctl status tuned
- 336 tuned-adm list
- 337 tuned-adm pprofile balanced
- 338 tuned-adm profile balanced
- 339 tuned-adm list
- 340 vim /usr/lib/tuned/balanced/tuned.conf
- 341 tuned-adm profile virtual-guest
- 342 top
- 343 echo 1 > /sys/bus/cpu/devices/cpu1/online
- 344 top
- 345 lsblk
- 346 fdisk /dev/sda
- 347 pvcreate /dev/sda8
- 348 pvs
- 349 vgcreate vgdata /dev/sda8
- 350 pvs
- 351 vgs
- 352 lvcreate -n lvdata -L 500M vgdata
- 353 lvs
- 354 vgs
- 355 pvs
- 356 mkfs.ext4 /dev/vgdata/lvdata
- 357 vim /etc/fstab
- 358 mount -a
- 359 mkdir /lvdata
- 360 mount -a
- 361 mount
- 362 ls -l /dev/mapper/vgdata-lvdata /dev/vgdata/lvdata
- 363 history
- 364 vgs
- 365 vgdisplay
- 366 xxd /dev/sda8 | less
- 367 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement