Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [sudo] password for student:
- [root@localhost ~]# history
- 1 useradd bob
- 2 su - bob
- 3 find / -user bob
- 4 mkdir /root/userfiles; find / -user bob -exec cp {} /root/userfiles/ \;
- 5 man find
- 6 touch rtp{1..3}
- 7 ls
- 8 history
- 9 git
- 10 visudo
- 11 export EDITOPR=/bin/nano
- 12 visudo
- 13 export EDITOR=/bin/nano
- 14 visudo
- 15 export EDITOR=
- 16 visudo
- 17 grep linda /etc/passwd
- 18 useradd linda
- 19 echo password | passwd --stdin linda
- 20 su - linda
- 21 visudo
- 22 su - linda
- 23 cd /etc/sudoers.d
- 24 vim bob
- 25 id student
- 26 visudo
- 27 cd
- 28 curl -O https://raw.githubusercontent.com/sandervanvugt/rhcsa/master/countdown.sh
- 29 ls
- 30 cat countdown.sh
- 31 vim countdown
- 32 countdown 12
- 33 echo $PATH
- 34 ./countdown 12
- 35 ls -l countdown
- 36 chmod +x countdown
- 37 ./countdown 12
- 38 ln countdown /usr/bin/
- 39 vim /etc/login.defs
- 40 cd /etc/skel
- 41 ls -al
- 42 touch nothideen
- 43 cd
- 44 useradd lucy
- 45 ls -la /home/lucy/
- 46 usermod --help | less
- 47 passwd --help | less
- 48 cat /etc/passwd
- 49 usermod -aG wheel bob
- 50 usermod --help
- 51 vim /etc/group
- 52 countdown 16
- 53 vim /etc/login.defs
- 54 cd /etc/skel/
- 55 touch newfile
- 56 vim /etc/login.defs
- 57 pwd
- 58 useradd anna
- 59 useradd anouk
- 60 useradd lisa
- 61 useradd linda
- 62 usermod --help
- 63 usermod -p password anouk
- 64 grep anouk /etc/shadow
- 65 for u in anna anouk linda lisa; do echo password | passwd --stdin $u; done
- 66 passwd --help
- 67 vim /etc/shadow
- 68 vim /etc/default/useradd
- 69 groupadd profs
- 70 groupadd students
- 71 usermod -aG profs anna
- 72 usermod -aG profs anouk
- 73 usermod -aG student linda
- 74 usermod -aG student lisa
- 75 id linda
- 76 usermod -G wheel linda
- 77 id linda
- 78 usermod -aG student linda
- 79 id linda
- 80 grep student /etc/group
- 81 vim /etc/group
- 82 cd /home
- 83 ls -l
- 84 ls -l /etc/hosts
- 85 cd
- 86 vim permissions.txt
- 87 mkdir /data/sales/2022
- 88 mkdir -p /data/sales/2022
- 89 cd /data/sales
- 90 touch myfile
- 91 cd 2022
- 92 touch myother
- 93 cd ../..
- 94 chmod -r 000 data
- 95 chmod -r 700 sales
- 96 chmod --help
- 97 chmod -R 700 sales
- 98 ls -ld sales/
- 99 chmod -R +x sales
- 100 cd sales
- 101 ls
- 102 ls -l
- 103 cd 2022/
- 104 ls -l
- 105 cd ..
- 106 chmod -R -x sales
- 107 ls -l sales/
- 108 chmod -R +X sales
- 109 ls -ld sales/
- 110 ls -l sales/
- 111 history
- 112 mkdir profs
- 113 mkdir students
- 114 chown :profs profs
- 115 ls -l
- 116 chgrp sales sales
- 117 chgrp students students
- 118 ls -l
- 119 chmod 770 *
- 120 ls -l
- 121 chmod o+w,g-rx sales
- 122 ls -l
- 123 su - anna
- 124 chmod g+s /data/profs
- 125 su - anna
- 126 su - anouk
- 127 chmod +t /data/profs
- 128 su - anouk
- 129 umask
- 130 su - anna
- 131 countdown 14
- 132 cd
- 133 mkdir -p /mydata/profs
- 134 mkdir -p /mydata/students
- 135 cd /mydata
- 136 chgrp students students
- 137 chgrp profs profs
- 138 chmod 770 *
- 139 #umask 007
- 140 poweroff
- 141 lsblk
- 142 poweroff
- 143 fdisk /dev/sda
- 144 mount /dev/sda3 /mnt
- 145 mkfs.xfs /dev/sda3
- 146 mount /dev/sda3 /mnt
- 147 cd /mnt
- 148 touch hello_partition3
- 149 mkdir /whatever
- 150 vim /etc/fstab
- 151 mount -a
- 152 mount
- 153 fdisk /dev/sda
- 154 lsblk
- 155 mkfs.ext4 /dev/sda5
- 156 mkfs.xfs /dev/sda6
- 157 mkdir /ext4 /xfs
- 158 vim /etc/fstab
- 159 vim /etc/default//grub
- 160 grub2-mkconfig -o /boot/grub2/grub.cfg
- 161 reboot
- 162 journalctl -xb
- 163 lsblk
- 164 vim /etc/fstab
- 165 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement