Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@rhcsa ~]# history
- 1 history
- 2 exit
- 3 tar cvzf /root/archive.tgz /etc
- 4 ls -l
- 5 file archive.tgz
- 6 cat /etc/dnsmasq.conf
- 7 cat /etc/dnsmasq.conf | grep -v '^$'
- 8 cat /etc/dnsmasq.conf | grep -v '^$' | sort
- 9 vim whatever
- 10 cat whatever | grep -v '^$' | sort
- 11 cat /etc/dnsmasq.conf | grep -v '^$' | sort
- 12 useradd lisa
- 13 find / -user lisa
- 14 mkdir /root/userfiles; find / -user lisa -exec cp {} /root/userfiles \;
- 15 cat /etc/dnsmasq.conf | grep -v '^$' | sort > /var/tmp/dnslines.txt
- 16 history
- 17 vim countdown
- 18 chmod +x countdown
- 19 ./countdown 12
- 20 history
- 21 vim countdown
- 22 less /etc/passwd
- 23 grep student /etc/passwd
- 24 id student
- 25 less /etc/passwd
- 26 vim /etc/login.defs
- 27 cd /etc/skel/
- 28 ls
- 29 ls -a
- 30 touch hello
- 31 ls -a
- 32 useradd linda
- 33 grep linda /etc/passwd
- 34 ls -al /home/linda
- 35 vim /etc/default/useradd
- 36 id linda
- 37 vim /etc/login.defs
- 38 history
- 39 visudo
- 40 cd
- 41 su - linda
- 42 passwd linda
- 43 su - linda
- 44 id linda
- 45 usermod -aG wheel linda
- 46 id linda
- 47 su - linda
- 48 cd /etc/skel/
- 49 ls
- 50 ls -a
- 51 vim .bash_logout
- 52 cd .mozilla/
- 53 ls
- 54 cd ..
- 55 cd
- 56 man su
- 57 exit
- 58 ./countdown 12
- 59 passwd --help |less
- 60 passwd -l linda
- 61 passwd --help |less
- 62 passwd -S linda
- 63 grep linda /etc/shadow
- 64 passwd -u linda
- 65 grep linda /etc/shadow
- 66 chage linda
- 67 ls
- 68 ./countdown 12
- 69 ssh localhost
- 70 vim /etc/ssh/sshd_config
- 71 passwd --help
- 72 cd /etc
- 73 ls -l
- 74 cd
- 75 chmod -x countdown
- 76 ls -l countdown
- 77 ./countdown
- 78 chmod +x countdown
- 79 ./countdown 0
- 80 mkdir /data/sales
- 81 mkdir -p /data/sales
- 82 mkdir -p /data/account
- 83 cd /data
- 84 ls -l
- 85 groupadd sales
- 86 groupadd account
- 87 usermod -aG sales linda
- 88 usermod -aG sales lisa
- 89 id linda
- 90 id lisa
- 91 useradd --help
- 92 useradd -G account anna
- 93 useradd -G account anouk
- 94 id anna
- 95 passwd lisa
- 96 history
- 97 history -d 97
- 98 history -d 96
- 99 history -d 95
- 100 echo password | passwd --stdin anna
- 101 ls -l
- 102 chgrp account account
- 103 ls -l
- 104 chgrp sales sales
- 105 ls
- 106 for i in *; do echo $i; done
- 107 for i in *; do chgrp $i $i; done
- 108 ls -l
- 109 chmod 770 *
- 110 ls -l
- 111 su - linda
- 112 su - lisa
- 113 cd /home/linda
- 114 vim playme
- 115 chmod +x playme
- 116 su - linda
- 117 chmod u+s playme
- 118 ls -l
- 119 su - linda
- 120 find / -perm /4000 2>/dev/null
- 121 ls -l /usr/bin/passwd
- 122 ls -l /etc/shadow
- 123 cat /etc/shadow
- 124 ls -l /etc/shadow
- 125 cd /data/sales
- 126 ls -l
- 127 chmod g+s .
- 128 ls -ld .
- 129 su - linda
- 130 su - lisa
- 131 chmod +t .
- 132 ls -ld .
- 133 su - lisa
- 134 /root/countdown 12
- 135 ls -ld .
- 136 cd ..
- 137 chmod 3770 *
- 138 ls -k
- 139 ls -l
- 140 chmod o+x *
- 141 ls -l
- 142 chmod o-x *
- 143 ls -l
- 144 ls -lr *
- 145 setfacl -R -m g:account:rx sales
- 146 cd sales
- 147 ls -l
- 148 man setfacl
- 149 setfacl -R -x g:account sales
- 150 cd ..
- 151 setfacl -R -x g:account sales
- 152 ls -l sales
- 153 setfacl -R -m g:account:rX sales
- 154 ls -l sales/
- 155 ls -l sales
- 156 ls -ld sales
- 157 getfacl sales
- 158 setfacl -m d:g:account:rx sales
- 159 getfacl sales
- 160 su - linda
- 161 lsblk
- 162 fdisk /dev/sda
- 163 lsblk
- 164 mkfs.xfs /dev/sda3
- 165 mount /dev/sda3 /mnt
- 166 history
- 167 vim /etc/login.defs
- 168 groupadd --help | less
- 169 groupadd students
- 170 groupadd profs
- 171 usermod -aG students anna
- 172 usermod -aG students anouk
- 173 id anna
- 174 usermod -aG profs,account anna
- 175 usermod -aG profs,account anouk
- 176 usermod -G profs,account anouk
- 177 usermod -G profs,account anna
- 178 id anna
- 179 usermod -aG students linda
- 180 usermod -aG students lisa
- 181 mkdir -p /data/profs /data/students
- 182 cd /data
- 183 ls -l
- 184 chown anna:profs profs
- 185 chown anna:students students
- 186 ls -l
- 187 chmod 3770 *
- 188 ls -l
- 189 setfacl -m d:g:profs:rx /data/students
- 190 su - linda
- 191 su - anouk
- 192 getfacl /data/students
- 193 setfacl -m d:g:profs:rX /data/students/
- 194 su - anouke
- 195 su - anouk
- 196 ls -l
- 197 rm -rf students
- 198 mkdir students
- 199 chmod 3770 students
- 200 chown anna:students
- 201 chown anna:students students
- 202 ls -l
- 203 setfacl -R -m g:profs:rX students
- 204 setfacl -m d:g:profs:rx students
- 205 getfacl students
- 206 id anouk
- 207 su - anouk
- 208 ls l
- 209 ls -l
- 210 cd
- 211 lsblk
- 212 fdisk /dev/sda
- 213 lsblk
- 214 reboot
- 215 lsblk
- 216 mkfs.xfs /dev/sda5
- 217 mkdir /files
- 218 mount /dev/sda5 /files
- 219 mount
- 220 umount /files
- 221 vim /etc/fstab
- 222 mount -a
- 223 mount
- 224 df -h
- 225 mkfs.ext4 /dev/sda6
- 226 mkdir /ext4
- 227 vim /etc/fstab
- 228 mount -a
- 229 df -h
- 230 vim /etc/fstab
- 231 umount /files
- 232 fdisk /dev/sda
- 233 reboot
- 234 blkid
- 235 blkid | grep sda5
- 236 blkid | grep sda5 | awk '{ print $2 }'
- 237 blkid | grep sda5 | awk '{ print $2 }' >> /etc/fstab
- 238 vim /etc/fstab
- 239 reboot
- 240 ./countdown 12
- 241 fdisk -l /dev/sda
- 242 vim /etc/fstab
- 243 fstab /dev/sda
- 244 fdisk /dev/sda
- 245 lsblk
- 246 mount /dev/sda6 /mnt
- 247 df -h
- 248 xfs_admin --help
- 249 xfs_admin -L goat /dev/sda6
- 250 umount /dev/sda6
- 251 xfs_admin -L goat /dev/sda6
- 252 vim /etc/fstab
- 253 tune2fs /dev/sda5 -L cow
- 254 vim /etc/fstab
- 255 fdisk /dev/sda
- 256 reboot
- 257 blkid
- 258 cat /proc/partitions
- 259 lsblk
- 260 vim /etc/fstab
- 261 cd /etc/yum.repos.d/
- 262 ls
- 263 rm -f *
- 264 ls
- 265 yum repolist
- 266 yum install nmap
- 267 cd
- 268 dd if=/dev/sr0 of=/rhel8.iso bs=1M
- 269 ls -l /rhel8.iso
- 270 df -h
- 271 mkdir /repo
- 272 vim /etc/fstab
- 273 mount -a
- 274 ls /repo
- 275 yum repolist
- 276 ./countdown 12
- 277 cd /etc/yum.repos.d/
- 278 ls
- 279 cd /repo/
- 280 ls
- 281 cd BaseOS/
- 282 ls
- 283 ls Packages/
- 284 ls repodata/
- 285 cd /etc/yum.repos.d/
- 286 vim base.repo
- 287 yum repolist
- 288 vim appstream.repo
- 289 yum repolist
- 290 yum search nmap
- 291 yum search nano
- 292 vim base.repo
- 293 which yum
- 294 ls -l /bin/yum
- 295 yum provides */passwd
- 296 seinfo
- 297 grep iso /etc/fstab
- 298 cd /repo
- 299 ls
- 300 vim /etc/yum.repos.d/base.repo
- 301 cd
- 302 yum modules list
- 303 yum module list
- 304 yum module provides httpd
- 305 yum module info postgresql
- 306 yum module info --profile postgresql
- 307 yum module list postgresql
- 308 yum module list httpd
- 309 yum module install postgresql:9.6/devel
- 310 yum module install postgresql:9.6/server
- 311 yum install httpd
- 312 yum module info --profile php
- 313 yum modules install php:7.2/devel
- 314 yum module install php:7.2/devel
- 315 yum module reset php
- 316 yum module install --allowerasing php:7.3
- 317 systemctl status NetworkManager
- 318 cd /etc/sysconfig/network-scripts/
- 319 ls
- 320 vim ifcfg-ens160
- 321 nmtui
- 322 ip a
- 323 ip a a dev ens160 10.0.0.10/24
- 324 ip a
- 325 ifconfig
- 326 man ifconfig
- 327 rpm -qf $(which ifconfig)
- 328 yum delete net-tool
- 329 rpm -ql net-tools
- 330 yum remove net-tools
- 331 cd
- 332 ./countdown 12
- 333 systemctl status tuned
- 334 tuned-adm --help
- 335 tuned-adm list
- 336 tuned-adm profile desktop
- 337 tuned-adm list
- 338 fdisk /dev/sda
- 339 cat /proc/partitions
- 340 pvcreate /dev/sda7
- 341 pvs
- 342 xxd /dev/sda7 | less
- 343 vgcreate --help | less
- 344 vcreate -s 8M vgdata /dev/sda7
- 345 vgcreate -s 8M vgdata /dev/sda7
- 346 vgs
- 347 pvs
- 348 vgdisplay
- 349 man lvcreate
- 350 lvcreate -L 1G -n lvdata vgdata
- 351 echo $(( 128 * 8 ))
- 352 echo $(( 1016 / 8 ))
- 353 lvcreate -l 127 -n lvdata vgdata
- 354 lvs
- 355 mkfs.xfs /dev/vgdata/lvdata
- 356 mount /dev/vgdata/lvdata /mnt
- 357 mount
- 358 ls -l /dev/vgdata/lvdata /dev/mapper/vgdata-lvdata
- 359 xxd /dev/sda7 | less
- 360 vim /etc/fstab
- 361 mount -a
- 362 mkdir /lvdata
- 363 mount -a
- 364 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement