Advertisement
sandervanvugt

linfun nov22 day1

Nov 1st, 2022
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.40 KB | None | 0 0
  1. [student@linfun ~]$ history
  2. 1 whoami
  3. 2 nano countdown
  4. 3 ls countdown
  5. 4 ls -l countdown
  6. 5 ./countdown
  7. 6 chmod +x countdown
  8. 7 ls -l countdown
  9. 8 ./countdown 13
  10. 9 cat countdown
  11. 10 history
  12. 11 ls /root
  13. 12 sudo ls /root
  14. 13 id
  15. 14 sudo useradd lisa
  16. 15 sudo passwd lisa
  17. 16 su - lisa
  18. 17 ./countdown 1
  19. 18 sudo usermod -aG wheel lisa
  20. 19 id lisa
  21. 20 ls
  22. 21 LS
  23. 22 ssh student@192.168.29.42
  24. 23 man usermod
  25. 24 usermod --help
  26. 25 ls --help
  27. 26 ls --help | less
  28. 27 whoami
  29. 28 hostname
  30. 29 hostnamectl hostname linfun.example.com
  31. 30 echo $?
  32. 31 exit
  33. 32 date
  34. 33 timedatectl show
  35. 34 timedatectl status
  36. 35 uname
  37. 36 uname -r
  38. 37 passwd
  39. 38 sudo passwd lisa
  40. 39 touch mynewfile
  41. 40 ls -l mynewfile
  42. 41 date
  43. 42 touch mynewfile
  44. 43 ls -l mynewfile
  45. 44 last
  46. 45 man last
  47. 46 man lvcreate
  48. 47 man man
  49. 48 man lvcreate
  50. 49 ./countdown 13
  51. 50 ls -l countdown
  52. 51 countdown
  53. 52 echo $PATH
  54. 53 cp countdown /usr/local/bin/
  55. 54 ls -l /usr/local/bin
  56. 55 ls -ld /usr/local/bin
  57. 56 sudo cp countdown /usr/local/bin/
  58. 57 countdown
  59. 58 man -k user
  60. 59 sudo mandb
  61. 60 man -k user
  62. 61 man -k user | wc
  63. 62 man -k user | grep create
  64. 63 man -k user | grep 8
  65. 64 countdown 1
  66. 65 man man
  67. 66 man ls
  68. 67 pinfo '(coreutils) ls invocation'
  69. 68 ./countdown 4
  70. 69 man -k hostname
  71. 70 man hostname
  72. 71 man 5 hostname
  73. 72 history | grep hostname
  74. 73 man lvcreate
  75. 74 man useradd
  76. 75 history
  77. 76 history -d 75
  78. 77 lsblk
  79. 78 cd /etc
  80. 79 ls
  81. 80 pwd
  82. 81 cd /var/lib/logrotate/
  83. 82 pwd
  84. 83 cd
  85. 84 ls
  86. 85 ls -a
  87. 86 ls -la
  88. 87 ls -l /var/lib/logrotate/
  89. 88 ls -ld /var/lib/logrotate/
  90. 89 cd /etc
  91. 90 ls -lrt
  92. 91 man ls
  93. 92 ls a
  94. 93 ls a*
  95. 94 ls -d a*
  96. 95 ls -d a???
  97. 96 ls -d a[lm]???*
  98. 97 ls -d a[l-s]???*
  99. 98 mkdir blah
  100. 99 cd
  101. 100 pwd
  102. 101 mkdir coffee
  103. 102 cd coffee/
  104. 103 pwd
  105. 104 cd ..
  106. 105 rmdir coffee/
  107. 106 countdown 13
  108. 107 cd /
  109. 108 man hier
  110. 109 ls
  111. 110 ls usr
  112. 111 cd /usr/local
  113. 112 ls
  114. 113 cd /etc
  115. 114 ls
  116. 115 cd /var
  117. 116 ls
  118. 117 cd log/
  119. 118 ls
  120. 119 cd /home
  121. 120 ls
  122. 121 man useradd
  123. 122 cd student/
  124. 123 ls
  125. 124 cd /tmp
  126. 125 ls
  127. 126 ls -ld .
  128. 127 touch userfile
  129. 128 cd /
  130. 129 touch userfile
  131. 130 cd
  132. 131 cd /var
  133. 132 ls -l log/messages
  134. 133 ls -l /log/messages
  135. 134 ls -l /var/log/messages
  136. 135 cd cache/
  137. 136 pwd
  138. 137 ls -l /var/log/messages
  139. 138 ls -l ../log/messages
  140. 139 cd
  141. 140 cp countdown mydir
  142. 141 ls -l
  143. 142 rm mydir
  144. 143 cp countdown mydir/
  145. 144 mkdir /tmp/mydir/
  146. 145 cp -a .* /tmp/mydir/
  147. 146 ls -a /tmp/mydir/
  148. 147 man cp
  149. 148 mv mynewfile /tmp/
  150. 149 ls
  151. 150 mv /tmp/mynewfile .
  152. 151 ls
  153. 152 mv mynewfile myfile
  154. 153 countdown 5
  155. 154 mkdir /tmp/trash
  156. 155 cp -aR .* /tmp/trash/
  157. 156 tree /tmp/trash/
  158. 157 ls -a /tmp/trash/
  159. 158 cp -R /tmp/trash .
  160. 159 ls
  161. 160 rm -rf trash/
  162. 161 cp -R /tmp/trash/ .
  163. 162 ls
  164. 163 cat /etc/os-release
  165. 164 sudo dnf install tree
  166. 165 sudo apt install tree
  167. 166 sudo yum install tree
  168. 167 cat /etc/os-release
  169. 168 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement