Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@localhost mnt]# history
- 1 free -m
- 2 lscpu
- 3 df -h
- 4 lsblk
- 5 vim countdown
- 6 chmod +x countdown
- 7 ./countdown 14
- 8 ./countdown 14 lab
- 9 tar -czvf /root/archive.tgz /etc
- 10 ls -l
- 11 file archive.tgz
- 12 tar -tvf archive.tgz
- 13 tar -czvf /root/archive.tgz /etc/
- 14 tar -tvf archive.tgz
- 15 tar -czvf /root/archive.tgz /etc/*
- 16 tar -tvf archive.tgz
- 17 rm archive.tgz
- 18 tar -czvf /root/archive.tgz /etc/*
- 19 tar -tvf archive.tgz
- 20 cd /etc
- 21 tar -czvf /root/archive.tgz .
- 22 tar -tvf /root/archive.tgz
- 23 cd
- 24 rm archive.tgz
- 25 tar -czvf /root/archive.tgz -C /etc
- 26 tar -czvf /root/archive.tgz -C /etc .
- 27 history
- 28 grep -v '^$' /etc/dnsmasq.conf
- 29 grep -v '^$' /etc/dnsmasq.conf | sort
- 30 history
- 31 useradd bob
- 32 find / -type f -user bob
- 33 mkdir /root/userfiles ; find / -type f -user bob -exec cp {} /root/userfiles/ \;
- 34 history
- 35 mkdir /root/userfiles ; find / -type f -user bob -exec cp {} /root/userfiles/ \; 2> errors.txt
- 36 cat errors.txt
- 37 uname -r
- 38 visudo
- 39 useradd linda
- 40 echo password | passwd --stdin linda
- 41 visudo
- 42 which useradd
- 43 which userdel
- 44 which passwd
- 45 su - linda
- 46 visudo
- 47 su - linda
- 48 visudo
- 49 id student
- 50 exit
- 51 visudo
- 52 history
- 53 man -k sander
- 54 touch hello
- 55 locate hello
- 56 updatedb
- 57 locate hello
- 58 touch goedemiddag
- 59 locate goedemiddag
- 60 less /etc/passwd
- 61 vim /etc/login.defs
- 62 useradd --help | less
- 63 cd /etc/skel/
- 64 touch lijk
- 65 useradd anna
- 66 ls -al /home/anna
- 67 tail /etc/passwd
- 68 ls -l /etc/passwd
- 69 tail /etc/shadow
- 70 man 5 shadow
- 71 cd
- 72 grep anna /etc/passwd
- 73 grep 1004 /etc/group
- 74 groupadd profs
- 75 usermod -aG profs anna
- 76 grep anna /etc/passwd
- 77 grep anna /etc/group
- 78 id anna
- 79 lid -g wheel
- 80 history
- 81 vim /etc/login.defs
- 82 cd /etc/skel
- 83 touch newfile
- 84 groupadd profs
- 85 groupadd students
- 86 useradd -G profs anna
- 87 usermod -aG profs anna
- 88 usermod -aG profs linda
- 89 usermod -aG students lisa
- 90 usermod -aG students linda
- 91 useradd -G profs anouk
- 92 vim /etc/group
- 93 for i in anna anouk linda lisa; do echo password | passwd --stdin $i; done
- 94 history
- 95 su - linda
- 96 ls -l /tmp/linda1
- 97 id linda
- 98 su - linda
- 99 chmod 077 /tmp/linda1
- 100 su - linda
- 101 mkdir -p /data/specials
- 102 chgrp sales /data/specials
- 103 chgrp student /data/specials
- 104 ls -ld /data/specials/
- 105 chmod g+w /data/specials
- 106 chmod g-w /data/specials
- 107 mkdir /data/specials/dir{1-9}
- 108 touch /data/specials/file{1-9}
- 109 ls -l /data/specials/
- 110 touch /data/specials/file[1-9]
- 111 ls -l /data/specials/
- 112 cd /data/specials/*
- 113 rm -fr /data/specials/*
- 114 touch /data/specials/file{1..9}
- 115 mkdir /data/specials/dir{1..}
- 116 ls -l /data/specials/
- 117 mkdir /data/specials/dir{1..9}
- 118 ls -l /data/specials/
- 119 chgrp students /data/specials/ -R
- 120 ls -l /data/specials/
- 121 chmod -R +w /data/specials/
- 122 chmod -R -x /data/specials/
- 123 ls -l /data/specials/
- 124 chmod -R +x /data/specials/
- 125 ls -l /data/specials/
- 126 chmod -R -x /data/specials/
- 127 chmod -R +X /data/specials/
- 128 ls -l /data/specials/
- 129 mkdir -p /data/profs /data/students
- 130 ls -l /data/
- 131 chown :profs /data/profs
- 132 chgrp student /data/students
- 133 ls -l /data/
- 134 chmod 770 /data/*
- 135 ls -k
- 136 ls -l
- 137 ls -l /data
- 138 chmod g+w,o-rx /data/profs
- 139 cd
- 140 touch /home/linda/rootfile
- 141 su - linda
- 142 touch /home/linda/stuck
- 143 chattr +i /home/linda/stuck
- 144 rm -f /home/linda/stuck
- 145 chattr -i /home/linda/stuck
- 146 su - anna
- 147 chmod g+s /data/profs
- 148 ls -ld /data/profs
- 149 su - anna
- 150 su - anouk
- 151 chmod +t /data/profs
- 152 su - anouk
- 153 chmod o+x /data/profs
- 154 ls -ld /data/profs
- 155 history
- 156 umask
- 157 su - linda
- 158 su - lisa
- 159 cd /data
- 160 ls -,
- 161 ls -l
- 162 chmod 3770 *
- 163 ls -l
- 164 chattr +i students/
- 165 cd students/
- 166 ls
- 167 touch student1
- 168 echo hello > hello
- 169 exit
- 170 ./countdown 12
- 171 ./countdown 1
- 172 ./countdown 15
- 173 ./countdown 13
- 174 chattr -i /data/students/
- 175 poweroff
- 176 lsblk
- 177 fdisk /dev/sda
- 178 lsblk
- 179 mount /dev/sda3 /mnt
- 180 mkfs.ext4 /dev/sda3
- 181 mount /dev/sda3 /mnt
- 182 cd /mnt
- 183 ls
- 184 cp /etc/hosts .
- 185 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement