Advertisement
sandervanvugt

linfun aug23 day1

Aug 9th, 2023
109
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. 26 ssh student@192.168.29.146
  28. 27 history
  29. 28 ssh localhost
  30. 29 history
  31. 30 ls
  32. 31 LS
  33. 32 ls --help
  34. 33 ls --help | less
  35. 34 ls -lrt
  36. 35 whoami
  37. 36 whoami --help
  38. 37 id -un
  39. 38 id
  40. 39 hostname
  41. 40 hostnamectl --help
  42. 41 hostnamectl status
  43. 42 hostnamectl hostname centos.example.com
  44. 43 hostnamectl status
  45. 44 date
  46. 45 date +%d-%m-%y
  47. 46 timedatactl
  48. 47 timedatectl
  49. 48 timedatectl --help
  50. 49 timedatectl show
  51. 50 timedatectl status
  52. 51 uname
  53. 52 uname --help
  54. 53 uname -r
  55. 54 uname -a
  56. 55 hostnamectl status
  57. 56 history
  58. 57 passwd
  59. 58 sudo passwd root
  60. 59 touch hello
  61. 60 ls -lrt
  62. 61 touch /hello
  63. 62 touch countdown
  64. 63 ls -l
  65. 64 last
  66. 65 man passwd
  67. 66 sudo passwd bob
  68. 67 echo $?
  69. 68 man passwd
  70. 69 passwd --help
  71. 70 man passwd
  72. 71 man man
  73. 72 man lvcreate
  74. 73 man -k user
  75. 74 man -k user |wc
  76. 75 man -k user | grep 8
  77. 76 man -k sander
  78. 77 man man
  79. 78 man apropos
  80. 79 man mandb
  81. 80 sudo mandb
  82. 81 man ls
  83. 82 pinfo '(coreutils) ls invocation'
  84. 83 cd /usr/share/doc
  85. 84 ls
  86. 85 cd passwd/
  87. 86 ls
  88. 87 cd ../PackageKit/
  89. 88 ls
  90. 89 exit
  91. 90 history
  92. 91 man -k hostname
  93. 92 man man
  94. 93 man hostnamectl
  95. 94 lvcreate --help
  96. 95 lvcreate --help | less
  97. 96 pwd
  98. 97 ls
  99. 98 ls -a
  100. 99 ls -ld /etc
  101. 100 ls -l /etc
  102. 101 ls -l /etc/sudo*
  103. 102 sudo ls -l /etc/sudo*
  104. 103 sudo ls -ld /etc/sudo*
  105. 104 cd /etc
  106. 105 ls a
  107. 106 ls a*
  108. 107 ls -d a*
  109. 108 ls -d a?[np]*
  110. 109 cd
  111. 110 pwd
  112. 111 cd /etc
  113. 112 mkdir new
  114. 113 cd /tmp
  115. 114 mkdir new
  116. 115 rmdir
  117. 116 rmdir new
  118. 117 mkdir new
  119. 118 touch new/file
  120. 119 ls new
  121. 120 rmdir new
  122. 121 rm -rf new/
  123. 122 touch new/file
  124. 123 mkdir new
  125. 124 touch new/file
  126. 125 man hier
  127. 126 pwd
  128. 127 cd home
  129. 128 cd /home
  130. 129 pwd
  131. 130 touch hello
  132. 131 ls
  133. 132 cd
  134. 133 touch hello
  135. 134 cd /var
  136. 135 ls -l /var/log/messages
  137. 136 ls -l log/messages
  138. 137 cd tmp
  139. 138 pwd
  140. 139 ls -l log/messages
  141. 140 ls -l ../log/messages
  142. 141 ls -l ../../var/log/messages
  143. 142 pwd
  144. 143 cp /var/log/messages newdir
  145. 144 sudo cp /var/log/messages newdir
  146. 145 ls -ld newdir
  147. 146 sudo rm newdir
  148. 147 sudo cp /var/log/messages newdir/
  149. 148 cp -a ~/.* .
  150. 149 ls -a
  151. 150 cp /etc/hosts .
  152. 151 ls
  153. 152 mv hosts whatever
  154. 153 ls
  155. 154 mv whatever ~/hosts
  156. 155 ls
  157. 156 ls ~
  158. 157 history
  159.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement