Advertisement
sandervanvugt

linuxfun day1 dec20

Dec 16th, 2020
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.14 KB | None | 0 0
  1. Your Hardware Enablement Stack (HWE) is supported until April 2025.
  2. Last login: Wed Dec 16 17:40:55 2020 from 192.168.4.42
  3. student@student-virtual-machine:~$ exit
  4. logout
  5. Connection to 192.168.4.41 closed.
  6. student@student-virtual-machine:~/mydir$ ssh student@192.168.4.42
  7. The authenticity of host '192.168.4.42 (192.168.4.42)' can't be established.
  8. ECDSA key fingerprint is SHA256:b9bbBmBF54e5fSY1fcwM/D9xFk79dNs2xz/klUIwufI.
  9. Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
  10. Warning: Permanently added '192.168.4.42' (ECDSA) to the list of known hosts.
  11. student@192.168.4.42's password:
  12. Activate the web console with: systemctl enable --now cockpit.socket
  13.  
  14. Last login: Wed Dec 16 17:34:12 2020 from 192.168.4.1
  15. [student@linfuncent ~]$
  16. [student@linfuncent ~]$ cat countdown
  17. #!/bin/bash
  18.  
  19. COUNTER=$1
  20. COUNTER=$(( COUNTER * 60 ))
  21.  
  22. while [ $COUNTER -gt 0 ]
  23. do
  24. echo $COUNTER seconds remaining in break
  25. sleep 1
  26. COUNTER=$(( COUNTER - 1 ))
  27. done
  28. [student@linfuncent ~]$ history
  29. 1 w
  30. 2 sudo chvt 2
  31. 3 vimtutor
  32. 4 vim countdown
  33. 5 countdown 12
  34. 6 ./countdown 12
  35. 7 chmod +x countdown
  36. 8 ./countdown 12
  37. 9 cat countdown
  38. 10 chvt 3
  39. 11 sudo chvt 3
  40. 12 ip a
  41. 13 ssh 192.168.4.41
  42. 14 sudo dnf install openssh
  43. 15 sudo firewall-cmd --list-all
  44. 16 cat /etc/os-release
  45. 17 history
  46. 18 countdown 12
  47. 19 echo $PATH
  48. 20 pwd
  49. 21 ./countdown
  50. 22 cp countdown /usr/local/bin/
  51. 23 sudo cp countdown /usr/local/bin/
  52. 24 countdown
  53. 25 history
  54. 26 apt install nmap
  55. 27 uname -r
  56. 28 cat /etc/os-release
  57. 29 cat /etc/redhat-release
  58. 30 su -
  59. 31 su - lisa
  60. 32 sudo journalctl
  61. 33 su -
  62. 34 sudo id lisa
  63. 35 su - lisa
  64. 36 whoami
  65. 37 echo $PS1
  66. 38 cat countdown ; sleep 60; countdown 11
  67. 39 history
  68. 40 whoami
  69. 41 whoami --help
  70. 42 hostname --help
  71. 43 hostname
  72. 44 -A
  73. 45 hostname -A
  74. 46 hostname -i
  75. 47 date
  76. 48 uname --help
  77. 49 uname -p
  78. 50 lscpu
  79. 51 passwd
  80. 52 echo password
  81. 53 echo password | passwd --stdin lisa
  82. 54 sudo echo password | passwd --stdin lisa
  83. 55 sudo 'echo password | passwd --stdin lisa'
  84. 56 sudo -c 'echo password | passwd --stdin lisa'
  85. 57 sudo -i
  86. 58 touch abc
  87. 59 ls -l
  88. 60 pwd
  89. 61 cd /
  90. 62 touch abc
  91. 63 cd
  92. 64 ls -l
  93. 65 date
  94. 66 touch abc
  95. 67 ls -l
  96. 68 last
  97. 69 man usermod
  98. 70 man man
  99. 71 man usermod
  100. 72 man lvcreate
  101. 73 man -k user
  102. 74 sudo mandb
  103. 75 man -k user
  104. 76 man -k user | wc
  105. 77 man -k user
  106. 78 man -k user | grep 8
  107. 79 man ls
  108. 80 pinfo 'coreutils'
  109. 81 cd /usr/share/doc/
  110. 82 ls
  111. 83 countdown 12
  112. 84 cd
  113. 85 vim countdown
  114. 86 sudo dnf search tools
  115. 87 sudo dnf search tools | grep virt
  116. 88 sudo dnf search tools | grep vm
  117. 89 sudo dnf install open-vm-tools
  118. 90 sudo reboot
  119. 91 cat countdown
  120. 92 history
  121. [student@linfuncent ~]$ exit
  122. logout
  123. Connection to 192.168.4.42 closed.
  124. student@student-virtual-machine:~/mydir$ history
  125. 1 sudo apt install git vim bash-completion
  126. 2 git clone https://github.com/sandervanvugt/microservices
  127. 3 cd microservices/
  128. 4 ./kube-setup.sh
  129. 5 sudo reboot
  130. 6 cd microservices/
  131. 7 cat kube-setup.sh
  132. 8 minikube start --memory 4096 --vm-driver=kvm2
  133. 9 cd
  134. 10 ls
  135. 11 sudo apt install openssh-server
  136. 12 sudo systemctl status sshd
  137. 13 ufw --help
  138. 14 ufw status
  139. 15 sudo ufw status
  140. 16 ip a
  141. 17 sudo apt install nmap
  142. 18 sudo nmap -sn 192.168.4.0/24
  143. 19 sudo nmap 192.168.4.42
  144. 20 pwd
  145. 21 ls
  146. 22 ls -a
  147. 23 ls -lrt /etc
  148. 24 ls /etc
  149. 25 ls /etc/g*
  150. 26 ls -d /etc/g*
  151. 27 ls -ll
  152. 28 man ls
  153. 29 cd /etc
  154. 30 ls *
  155. 31 ls -d *
  156. 32 ls -l1
  157. 33 man ls
  158. 34 ls -l1
  159. 35 ls -l
  160. 36 ls -1
  161. 37 ls
  162. 38 ls -1
  163. 39 ls -d *
  164. 40 ls -d g*
  165. 41 ls -d g[rs]*
  166. 42 ls -d g[rs]??*
  167. 43 cd /
  168. 44 ls
  169. 45 ls -l
  170. 46 cd /var
  171. 47 ls
  172. 48 cd log
  173. 49 ls
  174. 50 ls -l
  175. 51 sudo less /var/log/syslog
  176. 52 sudo tail /var/log/syslog
  177. 53 cd /etc
  178. 54 ls
  179. 55 cd
  180. 56 man hier
  181. 57 cd /home
  182. 58 ;s
  183. 59 ls
  184. 60 sudo useradd lisa
  185. 61 ls
  186. 62 cd
  187. 63 cd /home
  188. 64 ls
  189. 65 sudo userdel lisa
  190. 66 useradd --help
  191. 67 sudo useradd -m lisa
  192. 68 ls
  193. 69 cd /tmp
  194. 70 ls
  195. 71 cd
  196. 72 mkdir mydir /mydir
  197. 73 ls
  198. 74 cd mydir/
  199. 75 cd ../microservices/
  200. 76 ls
  201. 77 cp kustomization.yaml ../../../tmp/
  202. 78 cp kustomization.yaml /tmp/blah/
  203. 79 cp kustomization.yaml /tmp/blah
  204. 80 ls -l kustomization.yaml /tmp/blah
  205. 81 echo hello >> kustomization.yaml
  206. 82 diff kustomization.yaml /tmp/blah
  207. 83 cd ../mydir/
  208. 84 cp -R /etc/ .
  209. 85 ls
  210. 86 cp -R /etc .
  211. 87 ls
  212. 88 cp -R /etc/* .
  213. 89 ls
  214. 90 rm -rf *
  215. 91 ls
  216. 92 touch hello
  217. 93 mv hello hellooooo
  218. 94 ls
  219. 95 mv hellooooo /tmp/
  220. 96 history
  221. 97 ssh student@192.168.4.41
  222. 98 ssh student@192.168.4.42
  223. 99 history
  224.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement