sandervanvugt

linfun aug23 day1

Aug 9th, 2023
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.17 KB | None | 0 0
  1. [student@centos tmp]$ history
  2. 1 cat /etc/os-release
  3. 2 exit
  4. 3 vim countdown
  5. 4 countdown
  6. 5 echo $PATH
  7. 6 ./countdown
  8. 7 ls -l countdown
  9. 8 chmod +x countdown
  10. 9 ./countdown
  11. 10 cat countdown
  12. 11 history
  13. 12 cat countdown
  14. 13 whoami
  15. 14 ls -l /root
  16. 15 sudo ls -l /root
  17. 16 rm -rf /root/*
  18. 17 id
  19. 18 cat /etc/group
  20. 19 cut -d : -f 1 /etc/group
  21. 20 tail -5 /etc/group
  22. 21 cut -d : -f 1 /etc/group
  23. 22 dnf install openssh
  24. 23 sudo dnf install openssh
  25. 24 sudo systemctl status sshd
  26. 25 ip a
  27. 27 history
  28. 28 ssh localhost
  29. 29 history
  30. 30 ls
  31. 31 LS
  32. 32 ls --help
  33. 33 ls --help | less
  34. 34 ls -lrt
  35. 35 whoami
  36. 36 whoami --help
  37. 37 id -un
  38. 38 id
  39. 39 hostname
  40. 40 hostnamectl --help
  41. 41 hostnamectl status
  42. 42 hostnamectl hostname centos.example.com
  43. 43 hostnamectl status
  44. 44 date
  45. 45 date +%d-%m-%y
  46. 46 timedatactl
  47. 47 timedatectl
  48. 48 timedatectl --help
  49. 49 timedatectl show
  50. 50 timedatectl status
  51. 51 uname
  52. 52 uname --help
  53. 53 uname -r
  54. 54 uname -a
  55. 55 hostnamectl status
  56. 56 history
  57. 57 passwd
  58. 58 sudo passwd root
  59. 59 touch hello
  60. 60 ls -lrt
  61. 61 touch /hello
  62. 62 touch countdown
  63. 63 ls -l
  64. 64 last
  65. 65 man passwd
  66. 66 sudo passwd bob
  67. 67 echo $?
  68. 68 man passwd
  69. 69 passwd --help
  70. 70 man passwd
  71. 71 man man
  72. 72 man lvcreate
  73. 73 man -k user
  74. 74 man -k user |wc
  75. 75 man -k user | grep 8
  76. 76 man -k sander
  77. 77 man man
  78. 78 man apropos
  79. 79 man mandb
  80. 80 sudo mandb
  81. 81 man ls
  82. 82 pinfo '(coreutils) ls invocation'
  83. 83 cd /usr/share/doc
  84. 84 ls
  85. 85 cd passwd/
  86. 86 ls
  87. 87 cd ../PackageKit/
  88. 88 ls
  89. 89 exit
  90. 90 history
  91. 91 man -k hostname
  92. 92 man man
  93. 93 man hostnamectl
  94. 94 lvcreate --help
  95. 95 lvcreate --help | less
  96. 96 pwd
  97. 97 ls
  98. 98 ls -a
  99. 99 ls -ld /etc
  100. 100 ls -l /etc
  101. 101 ls -l /etc/sudo*
  102. 102 sudo ls -l /etc/sudo*
  103. 103 sudo ls -ld /etc/sudo*
  104. 104 cd /etc
  105. 105 ls a
  106. 106 ls a*
  107. 107 ls -d a*
  108. 108 ls -d a?[np]*
  109. 109 cd
  110. 110 pwd
  111. 111 cd /etc
  112. 112 mkdir new
  113. 113 cd /tmp
  114. 114 mkdir new
  115. 115 rmdir
  116. 116 rmdir new
  117. 117 mkdir new
  118. 118 touch new/file
  119. 119 ls new
  120. 120 rmdir new
  121. 121 rm -rf new/
  122. 122 touch new/file
  123. 123 mkdir new
  124. 124 touch new/file
  125. 125 man hier
  126. 126 pwd
  127. 127 cd home
  128. 128 cd /home
  129. 129 pwd
  130. 130 touch hello
  131. 131 ls
  132. 132 cd
  133. 133 touch hello
  134. 134 cd /var
  135. 135 ls -l /var/log/messages
  136. 136 ls -l log/messages
  137. 137 cd tmp
  138. 138 pwd
  139. 139 ls -l log/messages
  140. 140 ls -l ../log/messages
  141. 141 ls -l ../../var/log/messages
  142. 142 pwd
  143. 143 cp /var/log/messages newdir
  144. 144 sudo cp /var/log/messages newdir
  145. 145 ls -ld newdir
  146. 146 sudo rm newdir
  147. 147 sudo cp /var/log/messages newdir/
  148. 148 cp -a ~/.* .
  149. 149 ls -a
  150. 150 cp /etc/hosts .
  151. 151 ls
  152. 152 mv hosts whatever
  153. 153 ls
  154. 154 mv whatever ~/hosts
  155. 155 ls
  156. 156 ls ~
  157. 157 history
  158.  
Advertisement
Add Comment
Please, Sign In to add comment