Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@localhost ~]# history
- 1 whoami
- 2 exit
- 3 cd /var/log
- 4 pwd
- 5 exit
- 6 history
- 7 cd /proc/pid
- 8 cd /proc/454/
- 9 ls
- 10 c dns
- 11 cd ns
- 12 ls
- 13 tree
- 14 lsns
- 15 d ..
- 16 cd ..
- 17 ls
- 18 cat cgroup
- 19 cgls
- 20 ldd $(which system-cgls)
- 21 ldd $(which systemd-cgls)
- 22 cd
- 23 exit
- 24 mkdir /root/bob; find / -user bob -exec cp -a {} /root/bob/ \;
- 25 ls -a /root/bob/
- 26 exit
- 27 tar -cvf archive.tar /home
- 28 tar -tvf archive.tar
- 29 tar -xvf archive.tar
- 30 ls
- 31 tar -xvf archive.tar -C /tmp
- 32 ls -l /tmp
- 33 tar -czvf archive.tar.gz /home
- 34 tar -cjvf archive.tar.bz /home
- 35 tar -cJvf archive.tar.xz /home
- 36 ls -l archive.tar*
- 37 history
- 38 exit
- 39 history
- 40 man cp
- 41 mkdir -p /tmp/files/pictures /tmp/files/photos /tmp/files/videos
- 42 cp /etc/[abc]* /tmp/files
- 43 cd /tmp/files
- 44 mv [ab]* photos/
- 45 ls
- 46 mv c* videos/
- 47 man find
- 48 find /etc -size -1000c
- 49 find /etc -size -1000c -exec cp {} pictures/
- 50 find /etc -size -1000c -exec cp {} pictures/ \;
- 51 ln -s /var .
- 52 ls
- 53 ls -l
- 54 tar -czvf home.tgz /home
- 55 pwd
- 56 mkdir ../archive
- 57 tar -xvf home.tgz -C ../archive/
- 58 ls ../archive/
- 59 tree ../archive/
- 60 history
- 61 nano easy
- 62 vimtutor
- 63 vim newfile
- 64 less /var/log/messages
- 65 more /var/log/messages
- 66 head /etc/passwd
- 67 head -5 /etc/passwd
- 68 head -5 /etc/passwd | tail -2
- 69 cat /var/log/messages
- 70 cat /var/log/messages | less
- 71 ls
- 72 cat newfile
- 73 tac newfile
- 74 grep lisa /etc/*
- 75 grep lisa /etc/* 2>/dev/null
- 76 grep -l lisa /etc/* 2>/dev/null
- 77 ps aux | grep ssh
- 78 ps aux | grep ssh | grep -v grep
- 79 grep -i allow /etc/ssh/sshd_config
- 80 grep -i -A 5 allow /etc/ssh/sshd_config
- 81 grep -i -A 5 -B 5 allow /etc/ssh/sshd_config
- 82 grep -i -C 5 allow /etc/ssh/sshd_config
- 83 cd
- 84 vim simpletextfile
- 85 grep 'anna' simpletextfile
- 86 grep '^anna' simpletextfile
- 87 grep 'anna$' simpletextfile
- 88 grep '^anna$' simpletextfile
- 89 vim simpletextfile
- 90 grep '^$' simpletextfile
- 91 vim simpletextfile
- 92 grep '^anna\b' simpletextfile
- 93 grep 'b.*t' simpletextfile
- 94 vim simpletextfile
- 95 grep 'b.*t' simpletextfile
- 96 grep 'b.+t' simpletextfile
- 97 grep -E 'b.+t' simpletextfile
- 98 grep -E 'b.?t' simpletextfile
- 99 vim simpletextfile
- 100 grep 'b.*t' simpletextfile
- 101 grep 'b*t' simpletextfile
- 102 man semanage-fcontext
- 103 grep 'bo\{7\}t' simpletextfile
- 104 grep 'bo\{6\}t' simpletextfile
- 105 history
- 106 cat simpletextfile
- 107 cut /etc/passwd
- 108 cut -f 1 /etc/passwd
- 109 cut -f 1 -d : /etc/passwd
- 110 cut -f 1 -d : /etc/passwd | sort
- 111 echo hello | tr [:lower:] [:upper:]
- 112 echo hello | tr [a-z] [A-Z]
- 113 sed -n 5p /etc/passwd
- 114 grep old *
- 115 cd /home/student/
- 116 grep old *
- 117 cd
- 118 vim afile
- 119 sed -i 's/old/new/g' afile
- 120 cat afile
- 121 sed -i -e '2d' afile
- 122 cat afile
- 123 echo hello >file{1..10}.txt
- 124 for i in file{1..10}; do echo hello > $i; done
- 125 cat file9
- 126 cat file4
- 127 for i in file*; do sed -i 's/hello/goedemiddag/' $i; done
- 128 cat file3
- 129 akw -F : '{ print $4 }' /etc/passwd
- 130 awk -F : '{ print $4 }' /etc/passwd
- 131 awk -F : '/lisa/ { print $4 }' /etc/passwd
- 132 awk -F : '$3 > 999 { print $1 }' /etc/passwd
- 133 awk -F : '$3 < 999 { print $1 }' /etc/passwd
- 134 ls
- 135 ls > outfile
- 136 cat outfile
- 137 whoami > outfile
- 138 cat outfile
- 139 ls -l >> outfile
- 140 cat outfile
- 141 grep root /etc/*
- 142 grep root /etc/* 2>/dev/null
- 143 grep root /etc/* 2>/dev/null > results.out
- 144 less results.out
- 145 grep root /etc/* 2> errors.txt > results.out
- 146 less errors.txt
- 147 grep root /etc/* &> all.txt
- 148 less all.txt
- 149 ps aux | tee psfile | grep ssh
- 150 ps aux | tee psfile | grep ssh > out.txt
- 151 akw -F : '{ print $4 }' /etc/passwd
- 152 whoami > outfile
- 153 grep root /etc/* 2>/dev/null
- 154 useradd anna
- 155 echo password | passwd --stdin anna
- 156 history
- 157 history -d 151
- 158 touch kgkgiugugfuiygfuifguyfuyfuytfuyfytrsrtdyfghhjikuhik
- 159 rm kgkgiugugfuiygfuifguyfuyfuytfuyfytrsrtdyfghhjikuhik
- 160 env
- 161 echo $DEBUGINFOD_URLS
- 162 ip addr show
- 163 dnf install bash-completion
- 164 echo color=red
- 165 color=red
- 166 echo $color
- 167 alias
- 168 ps aux | grep ssh
- 169 alias sander='echo hello there'
- 170 sander
- 171 vim /etc/bashrc
- 172 sleep 3600
- 173 vim /etc/profile
- 174 cd /etc/profile.d/
- 175 ls
- 176 cd
- 177 ls -a
- 178 history
- 179 cd /etc/profile.d/
- 180 vim all.sh
- 181 jobs
- 182 cd
- 183 sleep infinity
- 184 bg
- 185 sleep 1000 &
- 186 jobs
- 187 fg 1
- 188 jobs
- 189 fg
- 190 while true; do true; done &
- 191 top
- 192 dd if=/dev/zero of=/dev/null &
- 193 top
- 194 ps aux | grep dd
- 195 kill 47125
- 196 kill -9 47125
- 197 dnf install nmap
- 198 dnf search http
- 199 useradd linda
- 200 passwd linda
- 201 ls -l /usr/local/bin/countdown
- 202 groupadd sales
- 203 useradd -G sales anna
- 204 usermod -G sales anna
- 205 usermod -G sales linda
- 206 id anna
- 207 mkdir /data/sales
- 208 mkdir -p /data/sales
- 209 ls -ld /data/sales
- 210 chgrp sales /data/sales
- 211 chmod 770 /data/sales
- 212 ls -ld /data/sales
- 213 ip addr show
- 214 ip a
- 215 ping 192.168.29.155
- 216 lsblk
- 217 mount | grep tmp
- 218 systemctl cat tmp.mount
- 219 mkdir /test
- 220 mount tmpfs /test
- 221 systemctl cat tmp.mount
- 222 mount -o nodev tmpfs /test
- 223 lsblk
- 224 umount /dev/sr0
- 225 lsblk
- 226 mount /dev/sr0 /mnt
- 227 cd /mnt
- 228 ls
- 229 umount /mnt
- 230 lsof /mnt
- 231 cd
- 232 lsof /mnt
- 233 umount /mnt
- 234 journalctl
- 235 cd /var/log
- 236 ls -l
- 237 cd
- 238 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement