Advertisement
sandervanvugt

l3h feb21

Feb 26th, 2021
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.95 KB | None | 0 0
  1. ####ubuntu enable ssh
  2. student@student-virtual-machine:~$ history
  3. 1 ip addr
  4. 2 sudo apt install openssh-server
  5. 3 sudo systemctl status sshd
  6. 4 history
  7. 5 exit
  8. 6 history
  9.  
  10.  
  11. ####centos
  12. [student@l3h /]$ history
  13. 1 vim countdown
  14. 2 countdown 12
  15. 3 ls
  16. 4 echo $PATH
  17. 5 ./countdown 12
  18. 6 ls -l
  19. 7 chmod +x countdown
  20. 8 ls -l
  21. 9 vimtutor
  22. 10 ./countdown 12
  23. 11 ls
  24. 12 file countdown
  25. 13 mv countdown countdown.sh
  26. 14 ls
  27. 15 PATH=$PATH:.
  28. 16 ls
  29. 17 echo $PATH
  30. 18 cd /
  31. 19 ls
  32. 20 cd /usr
  33. 21 ls
  34. 22 cd local/
  35. 23 pwd
  36. 24 ls
  37. 25 cd
  38. 26 pwd
  39. 27 ls
  40. 28 cp countdown.sh /usr/local/bin/countdown
  41. 29 ls -ld .
  42. 30 ls -ld /usr/local/bin
  43. 31 whoami
  44. 32 id
  45. 33 sudo cp countdown.sh /usr/local/bin/countdown
  46. 34 echo $PATH
  47. 35 countdown 0
  48. 36 history
  49. 37 chvt 3
  50. 38 sudo chvt 3
  51. 39 useradd linda
  52. 40 sudo useradd linda
  53. 41 sudo passwd linda
  54. 42 sudo chvt 3
  55. 43 su - linda
  56. 44 id
  57. 45 id linda
  58. 46 sudo usermod -aG wheel linda
  59. 47 id linda
  60. 48 su - linda
  61. 49 su -
  62. 50 sudo -i
  63. 51 sudo su
  64. 52 history
  65. 53 sudo -i
  66. 54 vim hello
  67. 55 nano hello
  68. 56 systemctl status sshd
  69. 57 systemctl edit sshd
  70. 58 sudo systemctl edit sshd
  71. 59 export EDITOR=/usr/bin/vim
  72. 60 sudo systemctl edit sshd
  73. 61 sudo -i
  74. 62 sudo vim /etc/profile.d/editor.sh
  75. 63 echo helo
  76. 64 echo hello > hellofile
  77. 65 cat hellofile
  78. 66 ls -a
  79. 67 who > hellofile
  80. 68 cat hello
  81. 69 cat hellofile
  82. 70 echo hello >> hellofile
  83. 71 history
  84. 72 countdown 12
  85. 73 sudo dnf install git
  86. 74 git clone https://github.com/sandervanvugt/linuxin3hours
  87. 75 cd linuxin3hours/
  88. 76 ls
  89. 77 cd
  90. 78 man hier
  91. 79 cd /
  92. 80 ls
  93. 81 cd /home
  94. 82 ls -l
  95. 83 cd $USER
  96. 84 pwd
  97. 85 touch afile
  98. 86 cd /tmo
  99. 87 cd /tmp
  100. 88 ls
  101. 89 cd /etc
  102. 90 ls
  103. 91 cat motd
  104. 92 cat passwd
  105. 93 cat shadow
  106. 94 ls -l shadow
  107. 95 sudo tail -1 /etc/shadow
  108. 96 man -k user
  109. 97 man -k sander
  110. 98 sudo mandb
  111. 99 man -k user
  112. 100 man -k user | wc
  113. 101 man -k user
  114. 102 man man
  115. 103 man -k user
  116. 104 man -k user | grep 8
  117. 105 man -k user | grep 8 | grep create
  118. 106 ssh student@192.168.29.28
  119. 107 find / -name "hier*"
  120. 108 find / -name "hier*" 2>/dev/null
  121. 109 rpm -qf /usr/share/man/man7/hier.7.gz
  122. 110 sudo ps aux
  123. 111 sudo ps aux | grep ssh
  124. 112 sudo top
  125. 113 sudo systemctl status sshd
  126. 114 sudo systemctl stop sshd
  127. 115 sudo systemctl status sshd
  128. 116 sudo systemctl start sshd
  129. 117 sudo firewall-cmd --list-all
  130. 118 sudo firewall-cmd --get-services
  131. 119 sudo firewall-cmd --add-service http
  132. 120 sudo lsblk
  133. 121 sudo umount /dev/sdb1
  134. 122 sudo mount /dev/sdb1 /mnt
  135. 123 cd /mnt
  136. 124 ls
  137. 125 cd /
  138. 126 history
  139.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement