Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@localhost ~]# history
- 1 vim countdown
- 2 bash ./countdown 10
- 3 vim countdown
- 4 bash ./countdown 10
- 5 exit
- 6 rm -f /etc/sudoers.d/this
- 7 bash countdown 12
- 8 ssh 192.168.29.21
- 9 dnf search tmux
- 10 man cp
- 11 visudo
- 12 su - bob
- 13 passwd bob
- 14 su - bob
- 15 which useradd
- 16 which usermod
- 17 which passwd
- 18 visudo
- 19 su - bob
- 20 visudo
- 21 su - bob
- 22 visudo
- 23 useradd --help | less
- 24 history
- 25 history -d 24
- 26 history
- 27 echo password | passwd --stdin bob
- 28 vim /etc/login.defs
- 29 chage bob
- 30 grep bob /etc/shadow
- 31 man 5 shadow
- 32 cat /etc/passwd
- 33 usermod -s /sbin/nologin bob
- 34 su - bob
- 35 usermod -s /bin/passwd bob
- 36 su - bob
- 37 lid\
- 38 lid
- 39 reset
- 40 lid -g wheel
- 41 grep wheel /etc/group
- 42 usermod --help
- 43 groupmod --help
- 44 groupadd aaa
- 45 groupadd bbb
- 46 groupadd ccc
- 47 groupadd ddd
- 48 useradd whoever -G aaa
- 49 id whoever
- 50 usermod -G bbb whoever
- 51 id whoever
- 52 usermod -aG aaa whoever
- 53 groupmod -U whoever ccc
- 54 id whoever
- 55 groupod -U bob ccc
- 56 group,od -U bob ccc
- 57 groupmod -U bob ccc
- 58 lid -g ccc
- 59 groupmod -aU whoever ccc
- 60 lid -g ccc
- 61 bash countdown 15
- 62 ldd lid
- 63 which lid
- 64 which /sbin/lid
- 65 ldd /sbin/lid
- 66 ldd $(which getent)
- 67 cd /etc/pam.d/
- 68 ls
- 69 vim passwd
- 70 vim system-auth
- 71 cd
- 72 vim /etc/login.defs
- 73 cd /etc/skel/
- 74 touch myfile
- 75 for i in anna anouk linda lisa; do useradd $i; done
- 76 cat /etc/passwd
- 77 for i in anna anouk linda lisa; do echo password | passwd --stdin $i; done
- 78 groupadd students
- 79 groupadd profs
- 80 usermod -aG profs anna
- 81 usermod -aG profs anouk
- 82 usermod -aG linda students
- 83 usermod -aG students linda
- 84 usermod -aG students lisa
- 85 history
- 86 cd
- 87 vim myblah
- 88 for in in `cat myblah`;do echo $i is in myblah; done
- 89 usermod -aG
- 90 cd /home
- 91 ls -l
- 92 cd
- 93 vim permissions.txt
- 94 cat permissions.txt
- 95 mkdir specialx
- 96 cp /etc/[a-e]* specialx/
- 97 ls -l specialx/
- 98 ls -ld specialx/
- 99 chmod -x specialx/
- 100 ls -ld specialx/
- 101 chmod -R +x specialx/
- 102 ls -ld specialx/
- 103 ls -l specialx/
- 104 chmod -R -x specialx/
- 105 ls -l specialx/
- 106 ls -ld specialx/
- 107 chmod -R +X specialx/
- 108 ls -ld specialx/
- 109 ls -l specialx/
- 110 history
- 111 mkdir -p /data/profs /data/students
- 112 ls -l /data
- 113 chown :profs /data/profs
- 114 chgrp students /data/students
- 115 ls -l /data
- 116 chmod 770 /data/students
- 117 ls -l /data
- 118 chmod g+w,o-rx /data/profs
- 119 ls -l /data
- 120 #usermod -aG profs kees tom
- 121 #usermod -aG profs tom
- 122 usermod --help | less
- 123 usermod -aG students,profs bob
- 124 id bob
- 125 cd /home/linda
- 126 ls l
- 127 ls -l
- 128 touch rootfile
- 129 su - linda
- 130 chattr +i hhh
- 131 lsattr
- 132 rm -f hhh
- 133 chattr -i hhh
- 134 rm hhh
- 135 su - anna
- 136 chmod g+s /data/profs
- 137 su - anna
- 138 su - anouk
- 139 chmod +t /data/profs
- 140 ls -ld /data/profs
- 141 su - anouk
- 142 umask
- 143 touch um1
- 144 umask 027
- 145 touch um2
- 146 ls -l um*
- 147 mkdir udir1
- 148 ls -ld udir1/
- 149 umask 022
- 150 mkdir udir2
- 151 ls -ld ud*
- 152 vim /etc/bashrc
- 153 vim .bashrc
- 154 su - linda
- 155 cd
- 156 ./countdown 15
- 157 ls -l countdown
- 158 chmod +x countdown
- 159 ./countdown 15
- 160 mkdir -p /files/profs /files/students
- 161 umask 007
- 162 cd /files
- 163 chgrp profs profs
- 164 chgrp students students
- 165 chmod 770 *
- 166 ls -l
- 167 exit
- 168 tar czvf /root/archive.tgz /etc
- 169 grep -v '^$' /etc/dnsmasq.conf |sort > /var/tmpdnslines.txt
- 170 less /var/tmpdnslines.txt
- 171 vim sortfile
- 172 sort sortfile
- 173 useradd bob
- 174 mkdir /root/userfiles; find / -user bob -exec cp -rf {} /root/userfiles/ \;
- 175 ls /root/userfiles/
- 176 find / -user bob -exec cp {} /root/bobfiles \;
- 177 ls
- 178 file bobfiles
- 179 find / -user bob -exec cp {} /root/bobfilestwo/ \;
- 180 find / -user bob -exec cp -rf {} /root/bobfilesthree/ \;
- 181 ls
- 182 ls bobfilesthree/
- 183 visudo
- 184 vim /etc/sudoers.d/this
- 185 lsblk
- 186 vim /etc/bashrc
- 187 vim .bashrc
- 188 su - lisa
- 189 vim /etc/bashrc
- 190 cd /etc/skel/
- 191 ls -a
- 192 vim .bashrc
- 193 vim /etc/login.defs
- 194 cd
- 195 poweroff
- 196 touch dd
- 197 lsblk
- 198 blkid
- 199 cp /etc/fstab /etc/fstab.bak
- 200 grep sda3 /etc/fstab
- 201 blkid | grep sda3
- 202 blkid | grep sda3 | awk '{ print $2 }'
- 203 blkid | grep sda3 | awk '{ print $2 }' >> /etc/fstab
- 204 vim /etc/fstab
- 205 reboot
- 206 history
- 207 lsblk -o UUID /dev/sda3
- 208 vim /etc/fstab
- 209 mount -o remount,rw /
- 210 history
- 211 rpm -qf $(which useradd)
- 212 rpm -qf `which useradd`
- 213 poweroff
- 214 cd /etc/default/
- 215 vim grub
- 216 grub2-mkconfig -o /boot/grub2/grub.cfg
- 217 vim grub
- 218 grub2-mkconfig -o /boot/grub2/grub.cfg
- 219 reboot
- 220 systemctl list-units -t target
- 221 systemctl get-default
- 222 history
- 223 reboot
- 224 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement