Advertisement
sandervanvugt

linfun day 1 sept21

Sep 1st, 2021
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.21 KB | None | 0 0
  1. [student@localhost ~]$ history
  2. 1 vim countdown
  3. 2 bash countdown 12
  4. 3 history
  5. 4 cat countdown
  6. 5 countdown
  7. 6 echo $PATH
  8. 7 pwd
  9. 8 ./countdown
  10. 9 ls -l
  11. 10 chmod +x countdown
  12. 11 whoami
  13. 12 ./countdown
  14. 13 countdown
  15. 14 cp countdown /usr/local/bin/
  16. 15 sudo cp countdown /usr/local/bin/
  17. 16 countdown
  18. 17 history
  19. 18 ls -l
  20. 19 sudo systemctl isolate multi-user.target
  21. 20 sudo reboot
  22. 21 LS
  23. 22 ip a
  24. 23 systemctl status sshd
  25. 24 #sudo apt install openssh-server
  26. 25 whoami
  27. 26 whoami --help
  28. 27 whoami --version
  29. 28 hostname
  30. 29 hostname --help
  31. 30 hostname -b
  32. 31 hostname --boot
  33. 32 hostnamectl --help
  34. 33 hostnamectl set-hostname rocky.example.com
  35. 34 hostnamectl statis
  36. 35 hostnamectl status
  37. 36 cat /etc/hostname
  38. 37 countdown 12
  39. 38 date
  40. 39 date --help
  41. 40 date --help | less
  42. 41 date
  43. 42 uname
  44. 43 uname --help
  45. 44 uname -a
  46. 45 passwd
  47. 46 touch test
  48. 47 ls -l
  49. 48 cd /
  50. 49 pwd
  51. 50 touch test
  52. 51 ls -ld .
  53. 52 sudo touch test
  54. 53 ls -l
  55. 54 cd
  56. 55 last
  57. 56 man last
  58. 57 man -k user
  59. 58 man man
  60. 59 man apropos
  61. 60 mandb
  62. 61 man mandb
  63. 62 sudo mandb
  64. 63 man -k user
  65. 64 man -k user | wc
  66. 65 man -k user | grep 8
  67. 66 man -k user | grep 8 | grep create
  68. 67 man man
  69. 68 man passwd
  70. 69 man 5 passwd
  71. 70 man ls
  72. 71 pinfo '(coreutils) ls invocation'
  73. 72 man hostnamectl
  74. 73 lvcreate --help | less
  75. 74 ls
  76. 75 ls -a
  77. 76 ls -al
  78. 77 ls -l Documents/
  79. 78 ls -ld Documents/
  80. 79 ls -lrt
  81. 80 cd /etc
  82. 81 ls -lrt
  83. 82 ls a*
  84. 83 ls -d a*
  85. 84 ls -d a???
  86. 85 ls -d a[st]*
  87. 86 cd
  88. 87 mkdir mydir
  89. 88 ls
  90. 89 cp /etc/hosts mydir/
  91. 90 ls mydir/
  92. 91 rmdir mydir/
  93. 92 rm -rf mydir/
  94. 93 countdown 12
  95. 94 cd /
  96. 95 ls
  97. 96 ls /home
  98. 97 ls -ld /tmp
  99. 98 cd /usr
  100. 99 ls
  101. 100 cd local/
  102. 101 ls
  103. 102 cd /
  104. 103 cd etc
  105. 104 ls
  106. 105 cat passwd
  107. 106 cat shadow
  108. 107 sudo cat shadow
  109. 108 ls -l shadow
  110. 109 cd /
  111. 110 ls
  112. 111 cd var
  113. 112 ls
  114. 113 cd log
  115. 114 ls
  116. 115 ls -lrt
  117. 116 tail messages
  118. 117 sudo tail messages
  119. 118 cd ..
  120. 119 ls
  121. 120 cd /
  122. 121 ls
  123. 122 cd dev
  124. 123 ls
  125. 124 lsblk
  126. 125 cd /proc
  127. 126 ls
  128. 127 cat meminfo | less
  129. 128 cd sys
  130. 129 ls
  131. 130 cd vm
  132. 131 ls
  133. 132 cd
  134. 133 man hier
  135. 134 cd /var
  136. 135 sudo tail /var/log/messages
  137. 136 sudo tail log/messages
  138. 137 cd dump
  139. 138 ls
  140. 139 cd crash/
  141. 140 sudo tail log/messages
  142. 141 sudo tail ../log/messages
  143. 142 history
  144. 143 cd
  145. 144 cp /etc/hosts dummy/
  146. 145 cp /etc/hosts dummy
  147. 146 ls -l dummy
  148. 147 rm -f dummy
  149. 148 mkdir dummy; cp /etc/hosts dummy/
  150. 149 cd /
  151. 150 ls -k
  152. 151 ls -l
  153. 152 ls bin
  154. 153 ls /usr/bin
  155. 154 cd
  156. 155 ln -s /etc/hosts myhosts
  157. 156 ls -l myhosts
  158. 157 echo hello >> myhosts
  159. 158 ls -l /etc/hosts
  160. 159 sudo ln /etc/hosts hardhosts
  161. 160 ls -il /etc/hosts hardhosts
  162. 161 sudo vim /etc/hosts
  163. 162 ls -il /etc/hosts hardhosts
  164. 163 history
  165.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement