Advertisement
sandervanvugt

lin3H june 2023

Jun 28th, 2023
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.75 KB | None | 0 0
  1. student@student-virtual-machine:~$ history
  2. 1 cat /etc/os-release
  3. 2 whoami
  4. 3 cat /etc/os-release
  5. 4 sudo chvt 3
  6. 5 whoami
  7. 6 ls -l /root
  8. 7 sudo ls -l /root
  9. 8 nano countdown.sh
  10. 9 cat countdown.sh
  11. 10 nano myfile
  12. 11 cat countdown.sh
  13. 12 history
  14. 13 bash countdown.sh 1
  15. 14 countdown.sh 1
  16. 15 ls
  17. 16 echo $PATH
  18. 17 pwd
  19. 18 ./countdown.sh 1
  20. 19 ls -l countdown.sh
  21. 20 chmod +x countdown.sh
  22. 21 ls -l countdown.sh
  23. 22 ./countdown.sh 1
  24. 23 countdown.sh 1
  25. 24 echo $PATH
  26. 25 ./countdown.sh 1
  27. 26 mv countdown.sh countdown
  28. 27 ./countdown
  29. 28 chmod -x countdown
  30. 29 ls -l
  31. 30 chmod 777 countdown
  32. 31 ls -l
  33. 32 chmod -w countdown
  34. 33 chmod 755 countdown
  35. 34 chmod 664 countdown
  36. 35 ls -l countdown
  37. 36 chmod +x countdown
  38. 37 ls -l
  39. 38 cd /
  40. 39 nano hello
  41. 40 pwd
  42. 41 whoami
  43. 42 sudo nano hello
  44. 43 ls -l
  45. 44 cd
  46. 45 pwd
  47. 46 touch newfile
  48. 47 ls -l newfile
  49. 48 history
  50. 49 ls
  51. 50 countdown
  52. 51 echo $PATH
  53. 52 cp countdown usr/local/bin
  54. 53 pwd
  55. 54 cp countdown /usr/local/bin
  56. 55 sudo cp countdown /usr/local/bin
  57. 56 countdown
  58. 57 pwd
  59. 58 ls
  60. 59 cd /
  61. 60 pwd
  62. 61 ls
  63. 62 sudo cp countdown /tmp
  64. 63 sudo cp /home/student/countdown /tmp
  65. 64 cd
  66. 65 pwd
  67. 66 cat /etc/os-release
  68. 67 sudo apt-get update
  69. 68 sudo apt install git
  70. 69 git clone https://github.com/sandervanvugt/linuxin3hours
  71. 70 history
  72. 71 echo $USER
  73. 72 ls -l /home/$USER
  74. 73 cd /
  75. 74 ls -l
  76. 75 cd etc
  77. 76 ls
  78. 77 cat passwd
  79. 78 cd
  80. 79 cd /
  81. 80 ls -l
  82. 81 man hier
  83. 82 PATH=$PATH:/mydir
  84. 83 echo $PATH
  85. 84 man hier
  86. 85 man useradd
  87. 86 man man
  88. 87 man useradd
  89. 88 cd
  90. 89 man -k user
  91. 90 man -k user | wc
  92. 91 man -k user | grep 8
  93. 92 man -k sander
  94. 93 man man
  95. 94 man apropos
  96. 95 mandb
  97. 96 sudo mandb
  98. 97 useradd --help
  99. 98 man ls
  100. 99 pinfo '(coreutils) ls invocation'
  101. 100 sudo apt install pinfo
  102. 101 pinfo '(coreutils) ls invocation'
  103. 102 sudo apt install openssh-server
  104. 103 ps aux
  105. 104 ps aux | wc -l
  106. 105 ps aux | grep ssh
  107. 106 top
  108. 107 systemctl status sshd
  109. 108 sudo systemctl stop sshd
  110. 109 systemctl status sshd
  111. 110 ps aux | grep ssh
  112. 111 sudo systemctl start sshd
  113. 112 ps aux | grep ssh
  114. 113 pidof sshd
  115. 114 sudo kill $(pidof sshd)
  116. 115 systemctl status sshd
  117. 116 sudo systemctl start sshd
  118. 117 ip addr show
  119. 118 ifconfig
  120. 119 ufw status
  121. 120 sudo ufw status
  122. 121 ssh 192.168.29.138
  123. 122 lsblk
  124. 123 sudo mount /dev/sdb1 /mnt
  125. 124 ls -l /mnt
  126. 125 history
  127.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement