Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@rhcsa ~]# history
- 1 ls
- 2 exit
- 3 tar cvzf archive.tgz /etc
- 4 tar tvf archive.tgz
- 5 history
- 6 grep -v '^$' /etc/dnsmasq.conf
- 7 grep -v '^$' /etc/dnsmasq.conf | sort
- 8 grep -v '^$' /etc/dnsmasq.conf | sort > /var/tmp/dnslines.txt
- 9 useradd bob
- 10 find / -user bob
- 11 find / -user bob -type f
- 12 mkdir /root/userfiles; find / -user bob -type f -exec cp {} /root/userfiles/ \;
- 13 ls -al /root/userfiles/
- 14 history
- 15 ls -ld /etc/sudo*
- 16 visudo
- 17 vim /etc/sudoers.d/bob
- 18 tail -1 /etc/passwd
- 19 su - bob
- 20 passwd bob
- 21 su - bob
- 22 cat /etc/sudoers.d/bob
- 23 id student
- 24 history
- 25 visudo
- 26 exit
- 27 history
- 28 su - lisa
- 29 grep lisa /etc/sudoers
- 30 cat /etc/passwd
- 31 head /etc/passwd
- 32 useradd --help | less
- 33 useradd bill -p password
- 34 tail -1 /etc/shadow
- 35 tail -5 /etc/shadow
- 36 echo password | passwd --stdin bill
- 37 tail -5 /etc/shadow
- 38 vim /etc/login.defs
- 39 useradd -p password peter
- 40 su - student
- 41 cd /etc/skel/
- 42 ls -a
- 43 touch hellefile
- 44 useradd bea
- 45 ls -l /home/bea
- 46 ls -al /home/bea
- 47 id lisa
- 48 id student
- 49 groupadd sales
- 50 usermod -aG sales lisa
- 51 usermod --help
- 52 usermod -G wheel lisa
- 53 id lisa
- 54 usermod -aG sales lisa
- 55 id lisa
- 56 exit
- 57 chage --help
- 58 chage -l lisa
- 59 chage -M 99 lisa
- 60 chage -l lisa
- 61 chage lisa
- 62 /home/student/countdown 15
- 63 vim /etc/login.defs
- 64 cd /etc/skel/
- 65 touch newfile
- 66 vim /etc/default/useradd
- 67 for i in anna anouk lisa linda; do useradd $i; done
- 68 for i in anna anouk lisa linda; do echo password | passwd --stdin $i; done
- 69 groupadd profs
- 70 groupadd students
- 71 usermod -aG profs anouk
- 72 usermod -aG profs anna
- 73 usermod -aG students linda
- 74 usermod -aG students lisa
- 75 ls -l /etc/hosts
- 76 cd /tmp
- 77 echo hello > hellofile
- 78 chown linda hellofile
- 79 chmod 077 hellofile
- 80 ls -l hellofile
- 81 su - linda
- 82 cd
- 83 cd /home/linda
- 84 touch lindafile
- 85 ls -l lindafile
- 86 echo linda > lindafile
- 87 su - linda
- 88 ls -l
- 89 chmod 640 lindafile
- 90 su - linda
- 91 cd
- 92 cd /tmp
- 93 mkdir testdir
- 94 touch testdir/file{1..10}
- 95 ls -l testdir/
- 96 chmod --helo
- 97 chmod --hel
- 98 chmod -R +x testdir/
- 99 ls -l testdir/
- 100 chmod -R -x testdir/
- 101 mkdir testdir/subdir
- 102 chmod -R +X testdir/
- 103 ls -ld testdir/
- 104 ls -l testdir/
- 105 cd
- 106 mkdir -p /data/profs /data/students
- 107 ls -l /data
- 108 chown :profs /data/profs
- 109 ls -l /data
- 110 chgrp students /data/students
- 111 ls -l /data
- 112 chmod 770 /data/students
- 113 ls -l /data
- 114 chmod g+w,o-rx /data/profs
- 115 ls -l /data
- 116 su - anna
- 117 chmod g+s /data/profs
- 118 ls -l /data
- 119 su - anna
- 120 su - anouk
- 121 chmod +t /data/profs
- 122 ls -l /data
- 123 su - anouk
- 124 umask
- 125 /home/student/countdown 15
- 126 mkdir -p /data/students /data/profs
- 127 ls /data
- 128 cd /data
- 129 chmod 770 *
- 130 ls -l
- 131 umask
- 132 cd profs
- 133 umask 002
- 134 touch rootfile
- 135 ls -l rootfile
- 136 lsblk
- 137 poweroff
- 138 vim /etc/fstab
- 139 fdisk -l
- 140 touch ff
- 141 mount -o remount,rw /
- 142 touch ff
- 143 vim /etc/fstab
- 144 blkid
- 145 blkid | grep sda5 | awk '{ print $2 '}
- 146 blkid | awk '/sda5/ { print $2 '}
- 147 blkid | awk '/sda5/ { print $2 '} >> /etc/fstab
- 148 vim /etc/fstab
- 149 reboot
- 150 blkid
- 151 history
- 152 xxd -l 512 /dev/sda
- 153 cat /etc/fstab
- 154 blkid
- 155 df -h
- 156 xfs_admin -L kona /dev/sda5
- 157 umount /dev/sda5
- 158 xfs_admin -L kona /dev/sda5
- 159 vim /etc/fstab
- 160 ln /home/student/countdown /usr/local/bin/countdown
- 161 ln /home/student/countdown /usr/local/sbin/countdown
- 162 history
- 163 free -m
- 164 fdisk /dev/sda
- 165 lsblk
- 166 mkswap /dev/sda6
- 167 vim /etc/fstab
- 168 swapon -a
- 169 free -m
- 170 dd if=/dev/zero of=/swapfile bs=1M count=1024
- 171 mkswap /swapfile
- 172 chmod 600 /swapfile
- 173 swapon /swapfile
- 174 free -m
- 175 history
- 176 df -h
- 177 dd if=/dev/sr0 of=/rhel9.iso bs=1M
- 178 mkdir /repo
- 179 vim /etc/fstab
- 180 mount -a
- 181 mount
- 182 ls /repo
- 183 ls /repo/BaseOS
- 184 history
- 185 tail -1 /etc/fstab
- 186 df -h
- 187 countdown 1
- 188 dd if=/dev/sr0 of=/dummy
- 189 history
- 190 ls /repo
- 191 dnf config-manager --add-repo="file:///repo/BaseOS"
- 192 dnf config-manager --add-repo="file:///repo/AppStream"
- 193 cd /etc/yum.repos.d/
- 194 ls
- 195 vim repo_BaseOS.repo
- 196 cd
- 197 dnf repolist
- 198 dnf search nmap
- 199 dnf install nmap
- 200 vim /etc/yum.repos.d/repo_BaseOS.repo
- 201 vim /etc/yum.repos.d/repo_AppStream.repo
- 202 dnf install nmap
- 203 history
- 204 cat /etc/yum.repos.d/repo_BaseOS.repo
- 205 ls /repo
- 206 cd /etc/yum.repos.d/
- 207 vim repo_BaseOS.repo
- 208 dnf list 'selinux*'
- 209 dnf provides */seinfo
- 210 seinfo
- 211 dnf provides */Containerfile
- 212 dnf group list
- 213 dnf module list
- 214 dnf module info nginx
- 215 cd
- 216 top
- 217 dd if=/dev/zero of=/dev/null &
- 218 top
- 219 echo 0 > /sys/bus/cpu/devices/cpu1/online
- 220 top
- 221 echo 1 > /sys/bus/cpu/devices/cpu1/online
- 222 top
- 223 killall dd
- 224 cat /proc/sys/vm/swappiness
- 225 echo 40 > /proc/sys/vm/swappiness
- 226 cat /proc/sys/vm/swappiness
- 227 sysctl -a | grep swapp
- 228 vim /etc/sysctl.d/swappi.conf
- 229 tuned-adm list
- 230 ls /usr/lib/tuned/
- 231 ls /usr/lib/tuned/virtual-guest/tuned.conf
- 232 cat /usr/lib/tuned/virtual-guest/tuned.conf
- 233 tuned-adm profile powersav e
- 234 tuned-adm profile powersave
- 235 tuned-adm list
- 236 countdown 13
- 237 systemctl status NetworkManager
- 238 ip addr show
- 239 nmtui
- 240 ip a
- 241 nmtui
- 242 exit
- 243 hostnamectl status
- 244 reboot
- 245 exit
- 246 timedatectl status
- 247 timedatectl set-time 17:48
- 248 date -s 17:48
- 249 systemctl status chronyd
- 250 vim /etc/chrony.conf
- 251 systemctl restart chronyd
- 252 chronyc sources
- 253 history
Add Comment
Please, Sign In to add comment