Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@localhost ~]# history
- 1 tar cvzf /root/archive.tgz /etc
- 2 ls -l archive.tgz
- 3 file archive.tgz
- 4 tar tvf archive.tgz
- 5 history
- 6 tar -tvf archive.tgz
- 7 ps aux
- 8 ps -aux
- 9 grep -v -e "^$" /etc/dnsmasq.conf |sort
- 10 grep -v '^$' /etc/dnsmasq.conf |sort
- 11 grep -v '^$' /etc/dnsmasq.conf | sort >/var/tmp/dnslines.txt
- 12 vim countdown
- 13 chmod +x countdown
- 14 ./countdown 12
- 15 sort -b -d /etc/dnsmasq.conf > /var/tmp/dnslines.txt
- 16 man sort
- 17 vim dummy.txt
- 18 sort -bd dummy.txt
- 19 useradd anna
- 20 mkdir /root/userfiles/; find / -user anna -exec cp -r {} /root/userfiles/ \;
- 21 history
- 22 mkdir /root/annafiles; find / -user anna >> /root/annafiles
- 23 mkdir /root/annafiles; find / -user anna >> /root/annafilesz
- 24 cat /root/annafilesz
- 25 cat /etc/os-release
- 26 cat /etc/os-release | head -1
- 27 cat /etc/os-release | head -2
- 28 ps aux | less
- 29 id
- 30 id anna
- 31 id student
- 32 grep student /etc/passwd
- 33 grep student /etc/shadow
- 34 vim /etc/login.defs
- 35 cd /etc/skel/
- 36 ls -a
- 37 history
- 38 touch mynewfile
- 39 useradd lisa
- 40 ls -l /home/lisa/
- 41 id student
- 42 grep student /etc/passwd
- 43 grep student /etc/group
- 44 exit
- 45 exit
- 46 exit
- 47 man -k sudo
- 48 mandb
- 49 man -k sudo
- 50 man sudo
- 51 grep anna /etc/shadow
- 52 passwd --help
- 53 passwd -l anna
- 54 grep anna /etc/shadow
- 55 passwd -u anna
- 56 grep anna /etc/shadow
- 57 chage linda
- 58 chage anna
- 59 change --help
- 60 chage --help
- 61 chage -l anna
- 62 vim countdown
- 63 chmod +x countdown
- 64 ls -l countdown
- 65 countdown
- 66 echo $PATH
- 67 ln countdown /usr/bin/countdown
- 68 ls -il countdown /usr/bin/countdown
- 69 vim countdown
- 70 ls -il countdown /usr/bin/countdown
- 71 countdown 12
- 72 which su
- 73 visudo
- 74 su - anna
- 75 cd /
- 76 groupadd sales
- 77 groupadd account
- 78 useradd -G sales linda
- 79 id linda
- 80 useradd -G sales lisa
- 81 id lisa
- 82 usermod -aG sales lisa
- 83 usermod -aG account anna
- 84 useradd -G account anouk
- 85 for i in anna anouk lisa linda; do is $i; done
- 86 for i in anna anouk lisa linda; do id $i; done
- 87 mkdir -p /data/sales
- 88 mkdir -p /data/account
- 89 mkdir /blah/yes
- 90 cd /data
- 91 ls -l
- 92 chgrp account account
- 93 chgrp sales sales
- 94 ls -l
- 95 chmod 770 account/
- 96 ls -l
- 97 chmod g+w,o-rx sales
- 98 ls -l
- 99 chown root:sales account
- 100 ls -ld account/
- 101 chown root.account account
- 102 chown .account account
- 103 history
- 104 su - anna
- 105 su - anouk
- 106 cd /home/linda/
- 107 vim playme
- 108 chmod +x playme
- 109 ls -l
- 110 chmod u+s playme
- 111 ls -l playme
- 112 id linda
- 113 visudo
- 114 cd
- 115 find / -perm /4000 2>/dev/null
- 116 find / -perm /4000 -exec ls -l {} \; 2>/dev/null
- 117 ls -l /etc/shadow
- 118 exit
- 119 su - linda
- 120 cd /data
- 121 chmod g+s *
- 122 ls -l
- 123 su - linda
- 124 su - lisa
- 125 chmod +t *
- 126 ls -l
- 127 su - lisa
- 128 su - linda
- 129 cd
- 130 cd /home/linda
- 131 touch rootfile1
- 132 touch rootfile2
- 133 ls -l rootfile*
- 134 chmod 000 rootfile2
- 135 ls -l
- 136 su - linda
- 137 ls -ld /tmp
- 138 touch removeme
- 139 ls -l removeme
- 140 chattr +i removeme
- 141 rm -f removeme
- 142 lsattr removeme
- 143 ls -l removeme
- 144 chattr -i removeme
- 145 su - linda
- 146 countdown 12
- 147 poweroff
- 148 lsblk
- 149 fdisk /dev/sda
- 150 lsblk
- 151 mkfs.xfs /dev/sda3
- 152 mount /dev/sda3 /mnt
- 153 cd /mnt
- 154 cp /etc/hosts .
- 155 ls
- 156 cd
- 157 umount /mnt
- 158 ls /mnt
- 159 vim /etc/fstab
- 160 mount -a
- 161 mkdir /sda3
- 162 mount -a
- 163 lsblk
- 164 df -h
- 165 mount
- 166 mount | grep '^/'
- 167 history
- 168 fdisk /dev/sda
- 169 lsblk
- 170 fdisk -l /dev/sda
- 171 mkfs.xfs /dev/sda4
- 172 fdisk /dev/sda
- 173 reboot
- 174 lsblk
- 175 cat /proc/partitions
- 176 mkfs.xfs /dev/sda5
- 177 mkfs.ext4 /dev/sda6
- 178 mkdir /sda5
- 179 mkdir /sda6
- 180 vim /etc/fstab
- 181 mount -a
- 182 cp /etc/passwd /sda5
- 183 cp /etc/motd /sda6
- 184 history
Advertisement
Add Comment
Please, Sign In to add comment