Advertisement
sandervanvugt

Untitled

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