Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Jun 03 19:48:49 linfun2.example.com systemd[1]: Started The Apache HTTP Server.
- Jun 03 19:49:09 linfun2.example.com httpd[64657]: Server configured, listening on: port 80
- [root@linfun2 log]# history
- 1 exit
- 2 su - linda
- 3 sudo passwd linda
- 4 su - linda
- 5 exit
- 6 exit
- 7 systemctl status sshd
- 8 apt install openssh-server
- 9 systemctl enable --now sshd
- 10 ip a
- 11 firewall-cmd --list-all
- 12 ip a
- 13 exit
- 14 cd /
- 15 ls
- 16 ls -l
- 17 cd
- 18 ls
- 19 ls -a
- 20 ls -ld /etc
- 21 ls -l /etc
- 22 ls -lrt /etc/
- 23 cat /etc/shadow
- 24 ls -lrt /etc/
- 25 cd /etc
- 26 ls a*
- 27 ls -d a*
- 28 ls -d a?*
- 29 ls -d a?t*
- 30 ls -d a?[td]*
- 31 cd /
- 32 cd
- 33 mkdir hello
- 34 rmdir hello
- 35 cd /
- 36 ls -l
- 37 cd /var/log
- 38 ls -l
- 39 du -hs
- 40 cd /home
- 41 ls -l
- 42 ls -ld /tmp
- 43 cd student
- 44 touch studentfile
- 45 cp studentfile ../linda/
- 46 ls
- 47 cp countdown /somedir
- 48 ls -l /somedir
- 49 rm /somedir
- 50 cp countdown /somedir/
- 51 mkdir /somedir
- 52 cp countdown /somedir/
- 53 LS
- 54 cp -Ra .* /tmp/student/
- 55 mkdir /tmp/student/
- 56 cp -Ra .* /tmp/student/
- 57 rm -rf /tmp/student
- 58 pwd
- 59 mkdir /tmp/student; cp -Ra .* /tmp/student/
- 60 mkdir /tmp/student; cp -R .* /tmp/student/
- 61 ls
- 62 pwd
- 63 mv studentfile /tmp/
- 64 ls
- 65 mv q qfile
- 66 ln /etc/hosts myhosts
- 67 ls -il /etc/hosts myhosts
- 68 echo hello >> myhosts
- 69 cat myhosts
- 70 ls -il /etc/hosts myhosts
- 71 ln -s /etc/hosts symhosts
- 72 ls -il /etc/hosts myhosts symhosts
- 73 rm /etc/hosts
- 74 ls -il /etc/hosts myhosts symhosts
- 75 cat symhosts
- 76 ln myhosts /etc/hosts
- 77 ls -il /etc/hosts myhosts symhosts
- 78 cd /
- 79 ls -l
- 80 cd /root
- 81 ln /boot/vmlinuz-4.18.0-147.el8.x86_64 mykernel
- 82 ln -s /boot/vmlinuz-4.18.0-147.el8.x86_64 mykernel
- 83 ln /etc myetc
- 84 ln -s /etc myetc
- 85 vim myscript
- 86 chmod +x myscript
- 87 ./myscript
- 88 find / -name "hosts"
- 89 find / -name "*hosts*"
- 90 tail /etc/passwd
- 91 find / -user linda
- 92 find / -user linda 2>/dev/null
- 93 find / -size +100M
- 94 mkdir /root/linda; find / -user linda -exec cp {} /root/linda/ \;
- 95 tar -cvf myarchive
- 96 tar -cvf myarchive /home /etc
- 97 ls -l myarchive
- 98 file myarchive
- 99 tar -tvf myarchive
- 100 tar -xvf myarchive
- 101 ls
- 102 pwd
- 103 rm -rf etc home
- 104 ls -l myarchive
- 105 tar czvf myarchive.tgz /etc/ /home
- 106 ls -l myarch*
- 107 tar -cjvf myarchive.bz2 /home /etc
- 108 ls -l myarch*
- 109 history
- 110 ls
- 111 man tar
- 112 history
- 113 xz myarchive
- 114 ls myarchive*
- 115 ls -l myarchive*
- 116 vim myvimdemo
- 117 less /var/log/messages
- 118 more /var/log/messages
- 119 cat /etc/hosts
- 120 tac /etc/hosts
- 121 tail -n 5 /var/log/messages
- 122 head -n 5 /var/log/messages
- 123 man type
- 124 type passwd
- 125 type ls
- 126 alias
- 127 alias sander='echo hello world'
- 128 sander
- 129 cd /etc
- 130 grep lisa *
- 131 grep lisa * 2>/dev/null
- 132 grep linda * 2>/dev/null
- 133 grep -l linda * 2>/dev/null
- 134 grep linda * 2>/dev/null
- 135 grep linda * 2>/dev/null | grep -v bash
- 136 grep -Rl linda *
- 137 grep -l root * 2>/dev/null
- 138 grep -lR root * 2>/dev/null
- 139 cd /
- 140 grep -l sander *
- 141 grep -lR sander *
- 142 find / -name countdown
- 143 echo $PATH
- 144 ln /usr/local/bin/countdown /usr/bin/countdown
- 145 countdown 13
- 146 cd
- 147 vim myfile
- 148 grep 'read' myfile
- 149 grep '^read' myfile
- 150 grep '^read$' myfile
- 151 man semanage-fcontext
- 152 history
- 153 cut linda /etc/passwd
- 154 cut -d : -f 1 /etc/passwd
- 155 cut -d : -f 1 /etc/passwd | grep linda
- 156 cut -d : -f 1 /etc/passwd | sort
- 157 cut -d : -f 1 /etc/passwd | sort -n
- 158 vim number
- 159 sort number
- 160 sort -n number
- 161 echo hello | tr [:lower:][:upper:]
- 162 echo hello | tr [:lower:] [:upper:]
- 163 echo hello | tr a-z A-Z
- 164 sed -n 5p /etc/passwd
- 165 head -5 /etc/passwd
- 166 head -5 /etc/passwd | tail -1
- 167 cat myfile
- 168 sed -i s/red/read/g myfile
- 169 cat myfile
- 170 sed -i -e '2d' myfile
- 171 cat myfile
- 172 cp myfile yourfile
- 173 ls
- 174 mv myfile myfile.txt
- 175 mv yourfile yourfile.txt
- 176 ls *txt
- 177 cat myfile.txt; cat yourfile.txt; for i in *txt; do sed -i -e '2d' $i; done
- 178 cat *txt
- 179 awk -F : '{ print $4 }' /etc/passwd
- 180 tail /etc/passwd
- 181 awk -F : '/linda/ { print $4 }' /etc/passwd
- 182 history
- 183 ps aux
- 184 ps aux | grep ssh
- 185 kill -9 1305
- 186 ps aux | grep ssh
- 187 ps aux | grep ssh | grep -v grep
- 188 sleep 30; ps aux | grep ssh | grep -v grep
- 189 history
- 190 systemctl cat sshd
- 191 ps aux | tee psfile | grep ssh
- 192 cat psfile
- 193 history
- 194 exit
- 195 history
- 196 ls -l .bash_history
- 197 env
- 198 env | grep HIST
- 199 history
- 200 history -d 199
- 201 history
- 202 env | grep HIST
- 203 history
- 204 rpm -qa | grep bash
- 205 echo a > wirhiwrykubhwiurbuiwguigvhuiwguigbiuwuirbguirwgbiurwgiubgrwuigbiuwgrbiugwriugbuiwgruibgwrueigbieurgbiugwreiugbiwugbgiurw
- 206 cat wirhiwrykubhwiurbuiwguigvhuiwguigbiuwuirbguirwgbiurwgiubgrwuigbiuwgrbiugwriugbuiwgruibgwrueigbieurgbiugwreiugbiwugbgiurw
- 207 rm wirhiwrykubhwiurbuiwguigvhuiwguigbiuwuirbguirwgbiurwgiubgrwuigbiuwgrbiugwriugbuiwgruibgwrueigbieurgbiugwreiugbiwugbgiurw
- 208 userinfo linda
- 209 nmcli connection show
- 210 nmcli connection show ens33
- 211 apt install bash-completion
- 212 yum install bash-completion
- 213 countdown 12
- 214 env
- 215 MYVAR=hello
- 216 echo $MYVAR
- 217 shell
- 218 bash
- 219 echo $MYVAR
- 220 export MYVAR=hello
- 221 bash
- 222 vim /etc/profile
- 223 vim .bash_profile
- 224 vim .bashrc
- 225 sander
- 226 source .bashrc
- 227 sander
- 228 sleep 3600
- 229 jobs
- 230 bg
- 231 jobs
- 232 sleep 1800 &
- 233 jobs
- 234 fg 1
- 235 sleep 3600
- 236 bg
- 237 sleep 3600
- 238 jobs
- 239 bg
- 240 top
- 241 dd if=/dev/zero of=/dev/null &
- 242 top
- 243 ps -e -o pid,args --forest | less
- 244 history -w
- 245 history
- 246 ls -l .bash_history
- 247 env
- 248 env | grep HIST
- 249 history
- 250 history -d 199
- 251 history
- 252 env | grep HIST
- 253 history
- 254 rpm -qa | grep bash
- 255 echo a > wirhiwrykubhwiurbuiwguigvhuiwguigbiuwuirbguirwgbiurwgiubgrwuigbiuwgrbiugwriugbuiwgruibgwrueigbieurgbiugwreiugbiwugbgiurw
- 256 cat wirhiwrykubhwiurbuiwguigvhuiwguigbiuwuirbguirwgbiurwgiubgrwuigbiuwgrbiugwriugbuiwgruibgwrueigbieurgbiugwreiugbiwugbgiurw
- 257 rm wirhiwrykubhwiurbuiwguigvhuiwguigbiuwuirbguirwgbiurwgiubgrwuigbiuwgrbiugwriugbuiwgruibgwrueigbieurgbiugwreiugbiwugbgiurw
- 258 userinfo linda
- 259 nmcli connection show
- 260 nmcli connection show ens33
- 261 apt install bash-completion
- 262 yum install bash-completion
- 263 countdown 12
- 264 env
- 265 MYVAR=hello
- 266 echo $MYVAR
- 267 shell
- 268 bash
- 269 echo $MYVAR
- 270 export MYVAR=hello
- 271 bash
- 272 vim /etc/profile
- 273 vim .bash_profile
- 274 vim .bashrc
- 275 sander
- 276 source .bashrc
- 277 sander
- 278 sleep 3600
- 279 jobs
- 280 bg
- 281 jobs
- 282 sleep 1800 &
- 283 jobs
- 284 fg 1
- 285 sleep 3600
- 286 bg
- 287 sleep 3600
- 288 jobs
- 289 bg
- 290 top
- 291 dd if=/dev/zero of=/dev/null &
- 292 top
- 293 ps -e -o pid,args --forest | less
- 294 history -w
- 295 ps -e -o pid,args --forest | less
- 296 kill 3169
- 297 kill -9 3169
- 298 dd if=/dev/sr0 of=cdrom.iso bs=1M &
- 299 top
- 300 ps aux | head
- 301 DD
- 302 cd /sys
- 303 ls
- 304 cd devices/
- 305 ls
- 306 cd cpu/
- 307 ls
- 308 cd ../..
- 309 cd bus/
- 310 ls
- 311 cd cpu/
- 312 ;s
- 313 ls
- 314 cd devices/
- 315 ls
- 316 pwd
- 317 tree
- 318 cd cpu1/
- 319 ls
- 320 cat online
- 321 lscpu
- 322 echo 0 > online
- 323 lscpu
- 324 pwd
- 325 history | tail -5
- 326 top
- 327 cd
- 328 dd if=/dev/zero of=/dev/null &
- 329 top
- 330 killall dd
- 331 history
- 332 countdown 12
- 333 cd /etc/yum.repos.d/
- 334 ls
- 335 vim CentOS-Base.repo
- 336 cd
- 337 yum repolis
- 338 yum repolist
- 339 yum search nmap
- 340 yum install nmap
- 341 nmap -ns 192.168.4.0/24
- 342 nmap -sn 192.168.4.0/24
- 343 nmap 192.168.4.2
- 344 nmap 192.168.4.157
- 345 yum groups list
- 346 yum groups install "Virtualization Host"
- 347 systemctl status httpd
- 348 cd /var/log
- 349 ls -lrt
- 350 systemctl status httpd
- 351 history
Add Comment
Please, Sign In to add comment