sandervanvugt

LinFun-Aug20-day1

Aug 4th, 2020
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.25 KB | None | 0 0
  1. [student@localhost /]$ history
  2. 1 vim countdown
  3. 2 chmod +x countdown
  4. 3 ./countdown 12
  5. 4 vim countdown
  6. 5 ./countdown 12
  7. 6 echo hello
  8. 7 ls
  9. 8 file countdown
  10. 9 ./countdown 12
  11. 10 sudo yum search gcc
  12. 11 sudo ls -al /root/
  13. 12 su
  14. 13 sudo ls -al /root/
  15. 14 id
  16. 15 su
  17. 16 id
  18. 17 sudo ls -al /root/
  19. 18 sudo less /var/log/messages
  20. 19 env
  21. 20 history
  22. 21 ip a
  23. 22 sudo nmtui
  24. 23 ip a
  25. 24 sudo systemctl status sshd
  26. 25 sudo firewall-cmd --list-all
  27. 26 ./countdown 12
  28. 27 whoami
  29. 28 whoami --help
  30. 29 hostname --help
  31. 30 hostname --help | less
  32. 31 hostname
  33. 32 hostname -i
  34. 33 hostname -I
  35. 34 date
  36. 35 date --help | less
  37. 36 date
  38. 37 timedatectl --help
  39. 38 timedatectl status
  40. 39 timedatectl list-timezones
  41. 40 timedatectl --help
  42. 41 timedatectl set-timezone Europe/Amsterdam
  43. 42 timedatectl status
  44. 43 uname
  45. 44 uname --help
  46. 45 uname -a
  47. 46 passwd
  48. 47 sudo passwd
  49. 48 pwd
  50. 49 ls
  51. 50 touch hello
  52. 51 ls
  53. 52 ls -l
  54. 53 cd /
  55. 54 touch hello
  56. 55 cd /tmp
  57. 56 touch hellooooo
  58. 57 ls -l
  59. 58 last
  60. 59 cd
  61. 60 less /etc/passwd
  62. 61 history
  63. 62 sudo ps aux
  64. 63 sudo ps aux | less
  65. 64 sudo ps aux | grep ssh
  66. 65 history
  67. 66 man last
  68. 67 man lvcreate
  69. 68 man man
  70. 69 man useradd
  71. 70 useradd bob
  72. 71 sudo useradd bob
  73. 72 man -k user
  74. 73 man man
  75. 74 man apropos
  76. 75 man mandb
  77. 76 sudo mandb
  78. 77 man -k user
  79. 78 man -k user | wc
  80. 79 man -k user | grep 8
  81. 80 man ls
  82. 81 pinfo '(coreutils) ls invocation'
  83. 82 ./countdown 12
  84. 83 ls
  85. 84 ls -a
  86. 85 ls -al
  87. 86 sudo ls -lrt /var/log/
  88. 87 sudo ls -l /etc
  89. 88 sudo ls -ld /etc
  90. 89 ls -l /etc/a*
  91. 90 ls -ld /etc/a*
  92. 91 ls -ld /etc/a?*
  93. 92 ls -ld /etc/a???*
  94. 93 ls -ld /etc/a*
  95. 94 ls -ld /etc/a[ln]*
  96. 95 cd /
  97. 96 ls
  98. 97 cd mnt
  99. 98 cd /
  100. 99 cd /mnt
  101. 100 cd usr
  102. 101 ls
  103. 102 cd /usr
  104. 103 ls
  105. 104 cd bin
  106. 105 pwd
  107. 106 cd ../share
  108. 107 pwd
  109. 108 cd
  110. 109 mkdir files
  111. 110 ls -l
  112. 111 rmdir files
  113. 112 clear
  114. 113 cd /
  115. 114 pwd
  116. 115 cd -
  117. 116 cd //
  118. 117 pwd
  119. 118 ls
  120. 119 cd usr
  121. 120 ls
  122. 121 du -hs
  123. 122 cd /
  124. 123 ls
  125. 124 cd etc
  126. 125 ls
  127. 126 cat shadow
  128. 127 sudo cat shadow
  129. 128 cd /var
  130. 129 ls
  131. 130 cd /
  132. 131 ls
  133. 132 man hier
  134. 133 cd
  135. 134 sudo ln /etc/hosts /tmp/myhosts
  136. 135 ls -il /etc/hosts /tmp/myhosts
  137. 136 sudo echo hello >> /etc/hosts
  138. 137 sudo "echo hello >> /etc/hosts"
  139. 138 sudo -i
  140. 139 cd /
  141. 140 ls
  142. 141 ls -l
  143. 142 history
  144. [student@localhost /]$
  145.  
  146. [student@localhost /]$ sudo -i
  147. [root@localhost ~]# history
  148. 1 pwd
  149. 2 whoami
  150. 3 id student
  151. 4 usermod -aG wheel student
  152. 5 id student
  153. 6 exit
  154. 7 id student
  155. 8 reboot
  156. 9 echo hello >> /etc/hosts
  157. 10 ls -li /etc/hosts /tmp/myhosts
  158. 11 ln -s /tmp/myhosts mysymlink
  159. 12 ls -li /etc/hosts /tmp/myhosts mysymlink
  160. 13 cat mysymlink
  161. 14 rm /tmp/myhosts
  162. 15 cat mysymlink
  163. 16 ls -l
  164. 17 ln /etc/hosts /tmp/myhosts
  165. 18 exit
  166. 19 history
  167.  
Advertisement
Add Comment
Please, Sign In to add comment