sandervanvugt

linfun nov22 day1

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