Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@centos2 mnt]# history
- 1 ls
- 2 cd /proc
- 3 ls
- 4 cat cpuinfo
- 5 cd sys
- 6 ls
- 7 cd net/
- 8 ls
- 9 cd ipv6/
- 10 ls
- 11 cd conf/
- 12 ls
- 13 cd default/
- 14 ls
- 15 pwd
- 16 cat disable_ipv6
- 17 ip a
- 18 echo 1 > disable_ipv6
- 19 ip a
- 20 ls
- 21 cd ..
- 22 ls
- 23 cd all/
- 24 echo 1 > disable_ipv6
- 25 ip a
- 26 history
- 27 pwd
- 28 exit
- 29 ls -il /etc/hosts /home/student/hosts
- 30 ls -il /etc/hosts /home/student/myhosts
- 31 echo hello >> /etc/hosts
- 32 ls -il /etc/hosts /home/student/myhosts
- 33 ln -s /home/student/myhosts whatever
- 34 ls -il /etc/hosts /home/student/myhosts whatever
- 35 rm /home/student/myhosts
- 36 ls -il /etc/hosts /home/student/myhosts whatever
- 37 cat whatever
- 38 ls
- 39 \ls
- 40 alias
- 41 unalias ls
- 42 ls
- 43 alias help='rm -rf /'
- 44 help
- 45 which vi
- 46 which vim
- 47 exit
- 48 mkdir linda; find / -user linda -exec cp {} /root/linda \;
- 49 exit
- 50 tar -cvf myarchive.tar /home /etc
- 51 ls
- 52 ls -l myarchive.tar
- 53 tar -tvf myarchive.tar | less
- 54 tar -xvf myarchive.tar
- 55 ls
- 56 rm -rf etc home
- 57 tar -xvf myarchive.tar -C /tmp
- 58 ls /tmp
- 59 tar -czvf gziparchive.tgz /home /etc
- 60 ls -l
- 61 tar -cjvf gziparchive.tgz /home /etc
- 62 ls -l
- 63 tar -cJvf gziparchive.tgz /home /etc
- 64 ls -l
- 65 head /etc/passwd
- 66 head /etc/passwd | tail -1
- 67 sudo apt install vim
- 68 echo $EDITOR
- 69 export EDITOR=/usr/bin/nano
- 70 visudo
- 71 export EDITOR=/usr/bin/vim
- 72 wc /etc/passwd
- 73 cat /etc/passwd
- 74 head /etc/passwd
- 75 head -2 /etc/passwd
- 76 tail -2 /etc/passwd
- 77 vim myfile
- 78 cat myfile
- 79 tac myfile
- 80 cd /etc/
- 81 grep linda *
- 82 grep linda * 2>/dev/null
- 83 ps aux | grep ssh
- 84 ps aux | grep ssh
- 85 ps aux | grep ssh | grep -v grep
- 86 grep root * 2>/dev/null
- 87 grep -l root * 2>/dev/null
- 88 grep -lR root * 2>/dev/null
- 89 grep --help | grep r
- 90 grep --help
- 91 grep 'a*' a*
- 92 exit
- 93 cd /home/linda
- 94 vim playme
- 95 chmod +x playme
- 96 su - linda
- 97 exit
- 98 history
- 99 history -d 98
- 100 history
- 101 exit
- 102 nmcli connection modify ens33 +ipv4.dns 8.8.4.4
- 103 nmcli connection up ens33
- 104 nmtui
- 105 exit
- 106 lsblk
- 107 umount /dev/sdb1
- 108 mount /dev/sdb1 /mnt
- 109 cd /mnt
- 110 ls
- 111 systemctl status sshd
- 112 vim follow-up.txt
- 113 history
- ######
- [student@centos2 ~]$ history
- 1 w
- 2 whoami
- 3 ls
- 4 ls -l
- 5 cd desktop
- 6 cd Desktop/
- 7 ls
- 8 cd ..
- 9 chvt 3
- 10 sudo chvt 3
- 11 history
- 12 ls
- 13 useradd linda
- 14 sudo useradd linda
- 15 sudo passwd linda
- 16 su - linda
- 17 id
- 18 sudo usermod -aG wheel linda
- 19 id linda
- 20 sudo visudo
- 21 history
- 22 su - linda
- 23 sudo apt install vim
- 24 sudo dnf install vim
- 25 sudo yum install vim
- 26 vim countdown
- 27 countdown 12
- 28 ./countdown 12
- 29 ls -l countdown
- 30 chmod +x countdown
- 31 ./countdown 12
- 32 vimtutor
- 33 ./countdown 13
- 34 history
- 35 nano countdown
- 36 vim countdown
- 37 history
- 38 echo $PATH
- 39 cp countdown /usr/local/bin/
- 40 sudo cp countdown /usr/local/bin/
- 41 countdown 0
- 42 history
- 43 cat countdown
- 44 ip a
- 45 sudo nmtui
- 46 ip a
- 47 sudo apt install openssh-server
- 48 sudo systemctl status openssh-server
- 49 sudo systemctl status sshd
- 50 ip a
- 51 chsh --help
- 52 chsh -l
- 53 whoami
- 54 w
- 55 hostname
- 56 date
- 57 date --help | less
- 58 date --help
- 59 date --help | less
- 60 uname
- 61 uname --help
- 62 uname --all
- 63 passwd
- 64 touch mynewfile
- 65 cd /usr
- 66 touch newfile
- 67 cd
- 68 ls -l
- 69 touch countdown
- 70 ls -l countdown
- 71 last
- 72 countdown 12
- 73 man useradd
- 74 man semanage-fcontext
- 75 man -k user
- 76 man man
- 77 man apropos
- 78 man mandb
- 79 man man
- 80 sudo mandb
- 81 man -k user
- 82 man -k user | wc
- 83 man -k user
- 84 man -k user | grep 8
- 85 man -k user | grep 8 | wc
- 86 history
- 87 man uname
- 88 man 2 uname
- 89 man -a uname
- 90 man passwd
- 91 man 5 passwd
- 92 man ls
- 93 pinfo '(coreutils) ls invocation'
- 94 info '(coreutils) ls invocation'
- 95 cd /etc
- 96 ls -l
- 97 ls | wc
- 98 ls
- 99 ls -l grub2.cfg
- 100 history
- 101 ls -lrt
- 102 cat shadow
- 103 sudo cat shadow
- 104 echo $PATH
- 105 cd
- 106 ls
- 107 ls -a
- 108 echo hello > .hello
- 109 ls
- 110 ls -a
- 111 cat .hello
- 112 cd /etc
- 113 ls
- 114 ls a*
- 115 ls -d a*
- 116 ls -d a*/b*
- 117 ls -d a*/*
- 118 ls -d a*/a*
- 119 ls a?????
- 120 ls ?????
- 121 ls -d ?????
- 122 ls -d g????
- 123 ls ??a* -d
- 124 ls ??[ab]* -d
- 125 ls ??[a-e]* -d
- 126 ls -d a*
- 127 ls a* -d
- 128 cd
- 129 mkdir blah
- 130 cp /etc/hosts blah/
- 131 rmdir blah
- 132 rm -rf blah/
- 133 history
- 134 cd /
- 135 ls
- 136 ls -l
- 137 man hier
- 138 cd usr
- 139 ls
- 140 ldd /usr/bin/passwd
- 141 ldd /usr/bin/ls
- 142 ls
- 143 ls local
- 144 cd src
- 145 ls
- 146 cd kernels/
- 147 ;ls
- 148 ls
- 149 cd /
- 150 cd /usr
- 151 du -hs
- 152 cd /
- 153 ls
- 154 cd /var
- 155 ls
- 156 cd log
- 157 ls
- 158 ls -l
- 159 ls -lrt
- 160 sudo journalctl
- 161 cd /etc
- 162 ls
- 163 history
- 164 tail /etc/passwd
- 165 cd /
- 166 ls
- 167 cd boot
- 168 ls -l
- 169 cd
- 170 cd /
- 171 ls
- 172 cd dev
- 173 ls
- 174 w
- 175 sudo -i
- 176 cd
- 177 pwd
- 178 touch hello
- 179 ls
- 180 cd ..
- 181 pwd
- 182 echo hello > lhk
- 183 cd /tmp
- 184 ls
- 185 sudo -i
- 186 su -
- 187 exit
- 188 env
- 189 bash
- 190 su - linda
- 191 su linda
- 192 man proc
- 193 cd /var
- 194 sudo tail log/messages
- 195 cd log
- 196 sudo tail log/messages
- 197 pwd
- 198 sudo tail log /var/log/messages
- 199 history
- 200 cd ..
- 201 ls
- 202 cd games
- 203 ls
- 204 sudo tail ../log/messages
- 205 cd /usr/local/src
- 206 sudo tail ../../../var/log/messages
- 207 sudo tail /var/log/messages
- 208 history
- 209 cd /etc
- 210 less profile
- 211 ls /etc/profile.d/
- 212 less bashrc
- 213 cd
- 214 ls -a
- 215 cat .bashrc
- 216 cat .bash_profile
- 217 cp /etc/hosts .
- 218 ls
- 219 cp /etc/hosts /tmp/sander
- 220 ls -l /tmp/sander
- 221 rm /tmp/sander
- 222 cp /etc/hosts /tmp/sander/
- 223 mkdir /tmp/sander/
- 224 cp /etc/hosts /tmp/sander/
- 225 ls -l /tmp/sander/
- 226 cp -a ~/.* /tmp/sander/
- 227 ls -a /tmp/sander/
- 228 cp --help | less
- 229 cp -R /etc /tmp/sander/
- 230 ls /tmp/sander/
- 231 ls /tmp/sander/etc
- 232 history
- 233 ls
- 234 mv hello /tmp/sander/bye
- 235 echo sh > goedemiddag
- 236 mv goedemiddag /tmp/sander/bonjour
- 237 ls /tmp/sander/goedemiddag /tmp/sander/bonjour
- 238 cd /etc/profile.d/
- 239 ls
- 240 cd /
- 241 ls -l
- 242 countdown 12
- 243 cd
- 244 sudo updatedb
- 245 ln /etc/hosts myhosts
- 246 sudo ln /etc/hosts myhosts
- 247 ls -il /etc/hosts myhosts
- 248 sudo echo hello >> myhosts
- 249 sudo -c echo hello >> myhosts
- 250 sudo 'echo hello >> myhosts'
- 251 sudo --help
- 252 sudo -i
- 253 which vi
- 254 which vim
- 255 ls -l $(which vi) $(which vim)
- 256 ls -l /bin/vi $(which vim)
- 257 ls -l /usr/bin/vi $(which vim)
- 258 find / -name "hosts"
- 259 find / -name "hosts" 2>/dev/null
- 260 find / -name "*hosts*" 2>/dev/null
- 261 find / -user linda
- 262 find / -user linda 2>/dev/null
- 263 sudo find / -size +1G 2>/dev/null
- 264 sudo -i
- 265 find / -name "hosts"
- 266 find / -name "hosts" 2> errors.txt
- 267 find / -name "hosts" > outputtxt
- 268 cat outputtxt
- 269 echo hello > hellofile
- 270 man find
- 271 sudo -i
- 272 countdown 12
- 273 vim myfile
- 274 grep 'anna' my
- 275 grep 'anna' myfile
- 276 grep '^anna' myfile
- 277 grep 'anna$' myfile
- 278 grep '^anna$' myfile
- 279 echo lea >> myfile
- 280 echo lea nna >> myfile
- 281 grep '^lea\b' myfile
- 282 grep 'b*t' myfile
- 283 grep 'bi*t' myfile
- 284 grep 'bi+t' myfile
- 285 grep -E 'bi+t' myfile
- 286 grep -E 'bi?t' myfile
- 287 grep -E 'bi\{4\}t' myfile
- 288 grep 'bi\{4\}t' myfile
- 289 grep 'b.t' myfile
- 290 man semanage-fcontext
- 291 tail -1 /etc/passwd
- 292 tail -1 /etc/passwd | cut -f 1
- 293 tail -1 /etc/passwd | cut -f 1 -d :
- 294 cut -f 1 -d : /etc/passwd
- 295 cut -f 1 -d : /etc/passwd | sort
- 296 vim numbers
- 297 sort numbers
- 298 sort -n numbers
- 299 vim numbers
- 300 uniq numbers
- 301 uniq --help
- 302 uniq -u numbers
- 303 uniq -d numbers
- 304 cat numbers | uniq -d
- 305 cat numbers | uniq -c
- 306 sed -n 5p /etc/passwd
- 307 sed -i s/lea/bea/g myfile
- 308 cat myfile
- 309 sed -i -e '2d' myfile
- 310 echo hello > a.conf
- 311 echo hello > ab.conf
- 312 echo hello > abc.conf
- 313 for i in *conf; do sed -i 's/hello/bye/g' $i; done
- 314 cat *conf
- 315 awk -F : '{ print $4 }' /etc/passwd
- 316 awk -F : '/linda/ { print $4 }' /etc/passwd
- 317 awk -F : '$3 > 999 { print $1 }' /etc/password
- 318 awk -F : '$3 > 999 { print $1 }' /etc/passwd
- 319 pinfo sed
- 320 exit
- 321 sudo -i
- 322 history
- 323 sudo -i
- 324 oc login -u mysecretuser -p iuwgehkugguiggwkehiwiugbuiwguibguigiuguiygu
- 325 touch newfile
- 326 uniq -d numbers
- 327 sudo -i
- 328 countdown 12
- 329 echo $PATH
- 330 echo $USER
- 331 echo $SHELL
- 332 export drink=BEER
- 333 echo $drink
- 334 bash
- 335 sleep 3000
- 336 sleep 3600
- 337 jobs
- 338 bg
- 339 sleep 3700 &
- 340 jobs
- 341 fg 2
- 342 sudo -
- 343 sudo -i
- 344 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement