Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [student@server2 ~]$ su -
- Password:
- [root@server2 ~]# vim /etc/fstab
- [root@server2 ~]# history
- 1 sudo useradd lisa
- 2 sudo userdel lida
- 3 sudo userdel lisa
- 4 sudo passwd lisa
- 5 sudo passwd root
- 6 exit
- 7 sudo passwd root
- 8 sudo passwd bob
- 9 exit
- 10 touch lindafile1
- 11 touch lindafile2
- 12 exit
- 13 cd /etc/sudoers.d/
- 14 ls
- 15 cat linda
- 16 yum provides */pbrun
- 17 cd /etc
- 18 ls sudoer*
- 19 cd /home/student/
- 20 ./countdown 12
- 21 man hier
- 22 cd /
- 23 ls
- 24 ls -l
- 25 cd boot
- 26 ls
- 27 cd /dev
- 28 ls
- 29 cd /etc
- 30 ls
- 31 cat sudoers
- 32 cat passwd
- 33 cd /
- 34 ls
- 35 cd home
- 36 ls
- 37 cd /root
- 38 ls
- 39 pwd
- 40 cd run
- 41 cd /run
- 42 ls
- 43 cd /tmp
- 44 ls
- 45 cd /usr
- 46 du -hs
- 47 ls
- 48 cd /var
- 49 ls
- 50 cd log
- 51 ls
- 52 cd /
- 53 ls -l
- 54 ls -il /etc/hosts
- 55 ln /etc/hosts /root/myhosts
- 56 ls -il /etc/hosts /root/myhosts
- 57 echo hello >> /etc/hosts
- 58 ls -il /etc/hosts /root/myhosts
- 59 cat /root/myhosts
- 60 cd
- 61 ln -s /root/myhosts /tmp/symhosts
- 62 ls -il /etc/hosts /root/myhosts /tmp/symhosts
- 63 cat /tmp/symhosts
- 64 rm /root/myhosts
- 65 ls -il /etc/hosts /root/myhosts /tmp/symhosts
- 66 cat /tmp/symhosts
- 67 ln /etc/hosts /root/myhosts
- 68 ls -il /etc/hosts /root/myhosts /tmp/symhosts
- 69 ln /etc /myetc
- 70 ln /boot/vmlinuz-4.18.0-147.el8.x86_64 mykernel
- 71 find / -samefile /etc/hosts
- 72 find / -samefile /etc/hosts
- 73 find / -samefile /etc/hosts 2> /dev/null
- 74 history
- 75 history | less
- 76 cp /tmp/symhosts .
- 77 ls -l
- 78 cat symhosts
- 79 man hier
- 80 lsblk
- 81 umount /dev/sdb1
- 82 lsblk
- 83 mount /dev/sdb1 /mnt
- 84 ls /mnt
- 85 umount /mnt
- 86 cd /home/student/
- 87 ls
- 88 countdown
- 89 echo $PATH
- 90 mv countdown /usr/bin
- 91 countdown 12
- 92 man -k user
- 93 man man
- 94 man apropos
- 95 man mandb
- 96 mandb
- 97 man -k user
- 98 man man
- 99 man -k user | grep 8
- 100 find / -name "hosts"
- 101 find / -name "*hosts*"
- 102 find / -user linda
- 103 find / -size +100M
- 104 find / -user linda -exec ls -l {} \;
- 105 find / -user linda -exec cp {} /root \;
- 106 ls
- 107 ls -la
- 108 su - linda
- 109 find / -user linda -exec cp {} /root \;
- 110 ls -l
- 111 pwd
- 112 cd /root
- 113 ls -l
- 114 history
- 115 ps aux
- 116 ps aux | grep ssh
- 117 grep linda /etc/*
- 118 grep linda /etc/* 2>/dev/null
- 119 grep -l linda /etc/* 2>/dev/null
- 120 grep -lR linda /etc/* 2>/dev/null
- 121 which vi
- 122 which vim
- 123 ls -l /bin/vi /bin/vim
- 124 exit
- 125 vim /etc/hosts
- 126 vim /etc/login.defs
- 127 echo $(( 99999 / 365 ))
- 128 vim /etc/login.defs
- 129 groupadd sales
- 130 groupadd account
- 131 useradd --help
- 132 useradd -G sales linda
- 133 id linda
- 134 usermod -aG sales linda
- 135 id linda
- 136 usermod -aG sales lisa
- 137 useradd -G account anna
- 138 useradd -G account anouk
- 139 history
- 140 tail -n 6 /etc/passwd
- 141 tail -n 3 /etc/group
- 142 tail -n 6 /etc/group
- 143 mkdir /data/sales
- 144 mkdir /data/sales -p
- 145 mkdir /data/account -p
- 146 cd /data
- 147 ls -l
- 148 id
- 149 chown :account account
- 150 ls -l
- 151 chgrp sales sales
- 152 ls -l
- 153 chmod 770 *
- 154 ls -l
- 155 su - lisa
- 156 su - linda
- 157 su - lisa
- 158 history
- 159 echo this is some text > rootfile
- 160 md5sum rootfile
- 161 md5sum rootfile > rootfile.md5
- 162 cat rootfile.md5
- 163 vim rootfile
- 164 md5sum rootfile
- 165 mkdir mydir
- 166 mkdir complete/path/of/directories
- 167 mkdir -p complete/path/of/directories
- 168 cp /etc/hosts /data/sales
- 169 cp /etc/hosts /data/sals
- 170 ls /data/sales
- 171 ls -l /data/sals
- 172 cat /data/sals
- 173 cp /etc/hosts /data/account/
- 174 cp /etc/hosts /data/accont/
- 175 history
- 176 vim rootfile
- 177 md5sum rootfile > newmd5.md5
- 178 diff rootfile.md5 newmd5.md5
- 179 cat rootfile.md5 newmd5.md5
- 180 vim /etc/group
- 181 cd /home/linda
- 182 vim playme
- 183 chmod +x playme
- 184 ./playme
- 185 chmod u+s playme
- 186 ls -l
- 187 su - linda
- 188 find / -perm /4000 -exec ls -l {} \;
- 189 ls -l /etc/shadow
- 190 cd /data/sales
- 191 su - linda
- 192 su - lisa
- 193 chmod g+s .
- 194 ls -l .
- 195 ls -ld .
- 196 su - lisa
- 197 chmod +t .
- 198 ls -ld .
- 199 su - lisa
- 200 id linda
- 201 grep linda /etc/group
- 202 grep linda /etc/passwd
- 203 less /var/log/messages
- 204 less /var/log/audit/audit.log
- 205 man auditctl
- 206 auditctl -w /etc/ -p wa
- 207 vim /etc/motd
- 208 less /var/log/audit/audit.log
- 209 cd ..
- 210 ls -l
- 211 rm r*
- 212 rm sals
- 213 rmdir mydir/ complete/
- 214 rm -rf complete/
- 215 ls -l
- 216 rm newmd5.md5
- 217 ls -l
- 218 getfacl sales
- 219 setfacl -m -R g:account:rx sales
- 220 setfacl -R -m g:account:rx sales
- 221 getfacl sales
- 222 cd sales
- 223 ls -l
- 224 man setfacl
- 225 cd ..
- 226 setfacl -R -x g:account sales
- 227 ls -l sales/
- 228 setfacl -R -m g:account:rX sales
- 229 getfacl sales
- 230 ls -l sales/
- 231 setfacl sales/lisa1
- 232 getfacl sales/lisa1
- 233 su - lisa
- 234 getfacl sales/newlisa
- 235 setfacl -m d:g:account:rx sales
- 236 getfacl sales
- 237 su - lisa
- 238 getfacl sales/lisa123
- 239 history
- 240 countdown 13
- 241 vim /etc/login.defs
- 242 groupadd profs students
- 243 groupadd profs
- 244 groupadd student
- 245 groupadd students
- 246 useradd mandy -aG students
- 247 useradd -aG students mandy
- 248 useradd -G students mandy
- 249 useradd -G students melanie
- 250 useradd -G profs boris
- 251 useradd -G profs bobob
- 252 history
- 253 usermod -aG students linda
- 254 usermod -aG students lisa
- 255 usermod -aG profs anna
- 256 usermod -aG profs anouk
- 257 chage -l linda
- 258 chage -l bob
- 259 chage -l bobob
- 260 chage bob
- 261 yum repolist
- 262 cd /etc/yum.repos.d/
- 263 ls
- 264 rm -f *
- 265 yum repolist
- 266 cd
- 267 dd if=/dev/sr0 of=/centos8.iso bs=1M
- 268 mkdir /repo
- 269 vim /etc/fstab
- 270 mount -a
- 271 cd /repo
- 272 ls
- 273 cd BaseOS/
- 274 ls
- 275 cd Packages/
- 276 ls
- 277 cd ../..
- 278 cd AppStream/
- 279 ls
- 280 cd Packages/
- 281 ls
- 282 cd ..
- 283 cd /etc/yum.repos.d/
- 284 vim baseos.repo
- 285 vim appstream.repo
- 286 yum repolist
- 287 vim appstream.repo
- 288 yum repolist
- 289 yum search nmap
- 290 yum install nmap
- 291 yum search seinfo
- 292 yum provides */seinfo
- 293 yum remove kernel
- 294 yum remove bash
- 295 cat appstream.repo baseos.repo
- 296 yum groups list
- 297 yum groups list --hidden
- 298 yum groups info "Virtualization Tools"
- 299 yum groups install "Virtualization Tools"
- 300 yum install -y epel-release
- 301 yum search epel
- 302 yum provides */kvm2
- 303 cd
- 304 countdown 12
- 305 ping google.com
- 306 yum modules list
- 307 yum module list
- 308 yum module list | less
- 309 yum modules provides httpd
- 310 yum module provides httpd
- 311 yum module info httpd
- 312 yum module install postgresql:9.6/devel
- 313 yum module info postgresql
- 314 yum module install postgresql:9.6/server
- 315 ip -h
- 316 ip a
- 317 ip addr add dev ens33 10.0.0.10/24
- 318 ip a
- 319 ping 10.0.0.10
- 320 ifconfig
- 321 ifconfig -a
- 322 man ifconfig
- 323 which ifconfig
- 324 rpm -qf $(which ifconfig)
- 325 rpm -ql net-tools
- 326 rpm -ql net-tools | grep bin
- 327 yum remove net-tools
- 328 ip route show
- 329 ip route del default via 192.168.4.2
- 330 ip route show
- 331 ping nu.nl
- 332 ip route add default via 192.168.4.2
- 333 ping nu.nl
- 334 vim /etc/resolv.conf
- 335 vim /etc/sysconfig/network-scripts/ifcfg-ens33
- 336 systemctl status NetworkManager
- 337 nmtui
- 338 ip a
- 339 ping nu.nl
- 340 vim /etc/sysconfig/network-scripts/ifcfg-ens33
- 341 vim /etc/resolv.conf
- 342 systemctl restart NetworkManager
- 343 vim /etc/resolv.conf
- 344 ip neigh
- 345 ip neigh -h
- 346 ip neigh help
- 347 ip neigh show
- 348 nmap -sn 192.168.4.0/24
- 349 ip neigh show
- 350 history
- 351 nmap -sn 192.168.4.0/24
- 352 ping 192.168.4.1
- 353 ping 192.168.4.254
- 354 ip neigh show
- 355 countdown 13
- 356 lsblk
- 357 poweroff
- 358 lsblk
- 359 fdisk /dev/sda
- 360 lsblk
- 361 mkfs.xfs /dev/sda3
- 362 mount /dev/sda3 /mnt
- 363 mount
- 364 mount | grep '^/'
- 365 vim /etc/fstab
- 366 mount -a
- 367 mkdir /myfiles
- 368 mount -a
- 369 mount | grep '^/'
- 370 umount /mnt
- 371 reboot
- 372 vim /etc/fstab
- 373 reboot
- 374 vim /etc/fstab
- 375 reboot
- 376 vim /etc/fstab
- 377 history
Add Comment
Please, Sign In to add comment