Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@localhost ~]# history
- 1 pwd
- 2 whoami
- 3 id student
- 4 usermod -aG wheel student
- 5 id student
- 6 exit
- 7 id student
- 8 reboot
- 9 echo hello >> /etc/hosts
- 10 ls -li /etc/hosts /tmp/myhosts
- 11 ln -s /tmp/myhosts mysymlink
- 12 ls -li /etc/hosts /tmp/myhosts mysymlink
- 13 cat mysymlink
- 14 rm /tmp/myhosts
- 15 cat mysymlink
- 16 ls -l
- 17 ln /etc/hosts /tmp/myhosts
- 18 exit
- 19 history
- 20 ln /etc/motd mymessage
- 21 ls -il /etc/motd mymessage
- 22 echo welcome to this computer
- 23 echo welcome to this computer > mymessage
- 24 ls -il /etc/motd mymessage
- 25 ln -s /etc/motd mewothermessage
- 26 ls -il /etc/motd mymessage mewothermessage
- 27 rm -f /etc/motd
- 28 ls -il /etc/motd mymessage mewothermessage
- 29 cat mewothermessage
- 30 cat mymessage
- 31 ln mymessage /etc/motd
- 32 ls -il /etc/motd mymessage mewothermessage
- 33 df -h
- 34 ln /boot/vmlinuz-4.18.0-193.el8.x86_64 mykernel
- 35 ln -s /boot/vmlinuz-4.18.0-193.el8.x86_64 mykernel
- 36 ln /etc myetc
- 37 ln -s /etc myetc
- 38 ls
- 39 ls -l
- 40 find / -name "hosts"
- 41 find / -name "*hosts*"
- 42 find / -user student
- 43 cat /etc/passwd
- 44 find / -user bob
- 45 find / -size +200M
- 46 find / -size +200M 2>/dev/null
- 47 mkdir /root/bob; find / -user bob -exec cp {} /root/bob/ \;
- 48 echo $PATH
- 49 echo \$PATH
- 50 echo '$PATH'
- 51 du -hf /home
- 52 du -hs /home
- 53 du -s /home
- 54 tar -cvf my_home.tar /home
- 55 ls -l
- 56 du -hs /home
- 57 du -s /home
- 58 tar -czvf my_home.tgz /home
- 59 ls -l my*
- 60 tar -cJvf my_home.txz /home
- 61 ls -l my*
- 62 tar -tvf my_home.txz
- 63 tar -xvf my_home.txz
- 64 ls
- 65 yum install -y tree
- 66 tree home/
- 67 tar -xvf my_home.txz -C /tmp
- 68 ls -l /tmp/home/
- 69 history
- 70 man find
- 71 history
- 72 ls
- 73 gzip mymessage
- 74 gzip initial-setup-ks.cfg
- 75 ls -l
- 76 gunzip initial-setup-ks.cfg.gz
- 77 ls -l
- 78 file my_home.tgz
- 79 vimtutor
- 80 vim myfile
- 81 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement