Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@localhost ~]# history
- 1 ps fax
- 2 exit
- 3 bash
- 4 exit
- 5 bash
- 6 exit
- 7 tar cvzf /root/archive1.tgz -C /etc
- 8 tar cvzf /root/archive1.tgz -C /etc .
- 9 tar tvf archive1.tgz | less
- 10 tar cvzf /root/archive2.tgz /etc
- 11 history
- 12 sort /etc/dnsmasq.conf | grep -v '^$' > /var/tmp/dnslines.txt
- 13 less /var/tmp/dnslines.txt
- 14 vim /etc/services
- 15 sort /etc/services | grep -v '^$' > /var/tmp/dnslines.txt
- 16 less /var/tmp/dnslines.txt
- 17 useradd betty
- 18 find / -user "betty"
- 19 mkdir /root/userfiles
- 20 find / -user "betty" -exec cp {} /root/userfiles \;
- 21 find / -user "betty" -exec cp -r {} /root/userfiles \;
- 22 history
- 23 vim countdown
- 24 chmod +x countdown
- 25 ./countdown 12
- 26 man cp
- 27 vim countdown
- 28 ./countdown 0
- 29 history
- 30 echo $(( 2 + 4 ))
- 31 vim /etc/login.defs
- 32 useradd --help | less
- 33 useradd -D
- 34 vim /etc/default/useradd
- 35 useradd --help | less
- 36 useradd bob -s /usr/bin/false
- 37 grep bob /etc/passwd
- 38 cd /etc/skel/
- 39 ls -a
- 40 echo hello > hellofile
- 41 useradd bill -s /bin/false
- 42 cd /home/bill
- 43 ls -a
- 44 tail -1 /etc/passwd
- 45 tail -1 /etc/shadow
- 46 man 5 passwd
- 47 tail -1 /etc/group
- 48 passwd bill
- 49 echo password | passwd --stdin bill
- 50 passwd --help
- 51 grep bill /etc/passwd /etc/shadow /etc/group
- 52 passwd -l bill
- 53 grep bill /etc/passwd /etc/shadow /etc/group
- 54 man 5 shadow
- 55 su - bill
- 56 w
- 57 useradd alex
- 58 su - alex
- 59 passwd -l alex
- 60 su - alex
- 61 passwd alex
- 62 su - alex
- 63 passwd -l alex
- 64 su - alex
- 65 passwd --help
- 66 usermod --help
- 67 usermod -L alex
- 68 su - alex
- 69 passwd -u alex
- 70 grep alex /etc/shadow
- 71 usermod -L alex
- 72 grep alex /etc/shadow
- 73 passwd --help
- 74 passwd -e alex
- 75 grep alex /etc/shadow
- 76 su - alex
- 77 bash
- 78 exit
- 79 groupadd mygroup
- 80 useradd myuser -G mygroup
- 81 id myuser
- 82 usermod -aG wheel myuser
- 83 id myuser
- 84 grep myuser /etc/passwd /etc/group
- 85 groups myuser
- 86 id myuser
- 87 chage myuser
- 88 ./countdown 15
- 89 vim jason.txt
- 90 groupadd student
- 91 groupadd students
- 92 groupadd profs
- 93 vim /etc/login.defs
- 94 useradd linda -G students
- 95 useradd lisa -G students
- 96 useradd anna -G profs
- 97 useradd anouk -G profs
- 98 id anna
- 99 history
- 100 groupadd sales
- 101 groupadd account
- 102 usermod -aG sales linda
- 103 usermod -aG sales lisa
- 104 usermod -aG account anna
- 105 usermod -aG account anouk
- 106 mkdir -p /data/sales
- 107 mkdir -p /data/account
- 108 cd /data
- 109 ls -l
- 110 id
- 111 chgrp sales sales
- 112 chgrp account account
- 113 ls -l
- 114 chmod 770 *
- 115 ls -l
- 116 cd /home/linda
- 117 touch wortel
- 118 ls -l
- 119 su - linda
- 120 touch anotherwortel
- 121 pwd
- 122 su - linda
- 123 vim playme
- 124 chmod +x playme
- 125 su - linda
- 126 chmod u+s playme
- 127 vim playme
- 128 su - linda
- 129 find / -perm /4000 2>/dev/null
- 130 find / -perm /4000 -exec ls -l {} ]; 2>/dev/null
- 131 find / -perm /4000 -exec ls -l {} \; 2>/dev/null
- 132 ls -l /etc/shadow
- 133 less /etc/passwd
- 134 useradd myservice -u 2000 -s /sbin/nologin
- 135 su - linda
- 136 su - lisa
- 137 ls -ld .
- 138 cd /data/sales
- 139 ls -ld .
- 140 chmod g+s .
- 141 ls -ld .
- 142 su - lisa
- 143 chmod +t /data/sales
- 144 ls -ld /data/sales
- 145 su - lisa
- 146 cd ..
- 147 ls -l
- 148 su - anna
- 149 getfacl sales
- 150 setfacl -R -m g:account:rx /data/sales
- 151 cd /data/sales
- 152 ls -l
- 153 getfacl lisa1
- 154 man setfacl
- 155 cd ..
- 156 setfacl -x g:account sales
- 157 getfacls sales
- 158 getfacl sales
- 159 getfacl sales/linda2
- 160 setfacl -R -x g:account sales
- 161 getfacl sales/linda2
- 162 setfacl -R -m g:account:rX /data/sales
- 163 getfacl /data/sales/linda2
- 164 su - linda
- 165 setfacl -m d:g:account:rx /data/sales
- 166 getfacl /data/sales
- 167 exit
- 168 su - linda
- 169 ./countdown 12
- 170 lsblk
- 171 poweroff
- 172 lslbk
- 173 lsblk
- 174 fdisk /dev/sda
- 175 lslbk
- 176 alias lslbk=lsblk
- 177 lslbk
- 178 mkfs.xfs /dev/sda3
- 179 lsbk
- 180 lsblk
- 181 mkdir /partition
- 182 vim /etc/fstab
- 183 mount -a
- 184 mount
- 185 reboot
- 186 poweroff
- 187 fdisk /dev/sda
- 188 fdisk -l /dev/sda
- 189 cat /proc/partitions
- 190 lslbk
- 191 lsblk
- 192 reboot
- 193 lsblk
- 194 mkfs.ext4 /dev/sda6
- 195 mkdir /oldfiles
- 196 vim /etc/fstab
- 197 fdisk /dev/sda
- 198 reboot
- 199 vim /etc/fstab
- 200 reboot
- 201 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement