Advertisement
sandervanvugt

intellimine session 1

Mar 9th, 2023
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.65 KB | None | 0 0
  1. student@student-virtual-machine:~$ history
  2. 1 w
  3. 2 exit
  4. 3 ls
  5. 4 sudo chvt 2
  6. 5 ls
  7. 6 ls /root
  8. 7 sudo ls /root
  9. 8 id
  10. 9 history
  11. 10 pwd
  12. 11 sudo -i
  13. 12 sudo chvt 3
  14. 13 who
  15. 14 vim countdown
  16. 15 sudo apt install vim
  17. 16 vim countdown
  18. 17 countdown 11
  19. 18 ./countdown 11
  20. 19 ls -l countdown
  21. 20 chmod +x countdown
  22. 21 ./countdown 11
  23. 22 history
  24. 23 nano countdown
  25. 24 echo hello
  26. 25 echo hello > hellofile
  27. 26 echo goodbye > Hellofile
  28. 27 cat hellofile
  29. 28 cat Hellofile
  30. 29 CAT hellofile
  31. 30 nano countdown
  32. 31 ./countdown 0
  33. 32 history
  34. 33 echo $PATH
  35. 34 ls
  36. 35 which ls
  37. 36 ls -l countdown
  38. 37 ls -l hellofile
  39. 38 countdown 11
  40. 39 cp countdown /usr/local/bin
  41. 40 whoami
  42. 41 sudo cp countdown /usr/local/bin
  43. 42 countdown 1
  44. 43 history
  45. 44 apt install openssh-server
  46. 45 sudo apt install openssh-server
  47. 46 ps
  48. 47 ps aux
  49. 48 ps aux | grep ssh
  50. 49 sudo systemctl status sshd
  51. 50 ip a
  52. 51 history
  53. 52 ps aux
  54. 53 ps -aux
  55. 54 ls --help
  56. 55 ls --help | less
  57. 56 cd /etc
  58. 57 ls -lrt
  59. 58 ls --lrt
  60. 59 ls -lrt
  61. 60 man ls
  62. 61 countdown 11
  63. 62 man man
  64. 63 man passwd
  65. 64 man 5 passwd
  66. 65 man -a passwd
  67. 66 man -k user
  68. 67 man -k user | wc
  69. 68 man -k user | grep 8
  70. 69 man -k sander
  71. 70 man man
  72. 71 man apropos
  73. 72 man mandb
  74. 73 mandb
  75. 74 sudo mandb
  76. 75 man ls
  77. 76 pinfo '(coreutils) ls invocation'
  78. 77 sudo apt install pinfo
  79. 78 pinfo '(coreutils) ls invocation'
  80. 79 mount
  81. 80 lsblk
  82. 81 sudo gdisk /dev/sda
  83. 82 cd /dev
  84. 83 ls -l
  85. 84 ls
  86. 85 w
  87. 86 cd /etc
  88. 87 ls
  89. 88 cat passwd
  90. 89 cat shadow
  91. 90 ls -l shadow
  92. 91 ls -l passwd
  93. 92 id
  94. 93 sudo cat shadow
  95. 94 ls
  96. 95 less rsyslog.conf
  97. 96 cd /
  98. 97 ls
  99. 98 man hier
  100. 99 cd boot
  101. 100 ls
  102. 101 ls -l
  103. 102 cd /home
  104. 103 ls
  105. 104 cd /root
  106. 105 cd /usr
  107. 106 ls
  108. 107 cd /proc
  109. 108 ls
  110. 109 sudo cat meminfo
  111. 110 ls
  112. 111 ps aux | grep sshd
  113. 112 cd 5504
  114. 113 ls
  115. 114 cat environ
  116. 115 sudo cat environ
  117. 116 sudo cat status
  118. 117 cd /proc/sys
  119. 118 ls
  120. 119 sudo sysctl -a
  121. 120 sudo sysctl -a | wc
  122. 121 cd
  123. 122 history
  124. 123 sudo poweroff
  125. 124 history
  126. student@student-virtual-machine:~$
  127. student@student-virtual-machine:~$ cat countdown
  128. #!/bin/bash
  129.  
  130. COUNTER=$1
  131. COUNTER=$(( COUNTER * 60 ))
  132.  
  133. while true
  134. do
  135. echo $COUNTER seconds remaining in break
  136. COUNTER=$(( COUNTER - 1 ))
  137. sleep 1
  138. done
  139.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement