Advertisement
sandervanvugt

linden day1 feb21

Feb 24th, 2021
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.85 KB | None | 0 0
  1. [student@centos2 ~]$ cat countdown
  2. #!/bin/bash
  3.  
  4. COUNTER=$1
  5. COUNTER=$(( COUNTER * 60 ))
  6.  
  7. while true
  8. do
  9. echo $COUNTER seconds remaining in break
  10. sleep 1
  11. COUNTER=$(( COUNTER - 1 ))
  12. done
  13.  
  14. #########[student@centos2 ~]$ history
  15. 1 whoami
  16. 2 ls
  17. 3 ls -l
  18. 4 cd desktop
  19. 5 cd Desktop/
  20. 6 ls
  21. 7 cd ..
  22. 8 chvt 3
  23. 9 sudo chvt 3
  24. 10 history
  25. 11 ls
  26. 12 useradd linda
  27. 13 sudo useradd linda
  28. 14 sudo passwd linda
  29. 15 su - linda
  30. 16 id
  31. 17 sudo usermod -aG wheel linda
  32. 18 id linda
  33. 19 sudo visudo
  34. 20 history
  35. 21 su - linda
  36. 22 sudo apt install vim
  37. 23 sudo dnf install vim
  38. 24 sudo yum install vim
  39. 25 vim countdown
  40. 26 countdown 12
  41. 27 ./countdown 12
  42. 28 ls -l countdown
  43. 29 chmod +x countdown
  44. 30 ./countdown 12
  45. 31 vimtutor
  46. 32 ./countdown 13
  47. 33 history
  48. 34 nano countdown
  49. 35 vim countdown
  50. 36 history
  51. 37 echo $PATH
  52. 38 cp countdown /usr/local/bin/
  53. 39 sudo cp countdown /usr/local/bin/
  54. 40 countdown 0
  55. 41 history
  56. 42 cat countdown
  57. 43 ip a
  58. 44 sudo nmtui
  59. 45 ip a
  60. 46 sudo apt install openssh-server
  61. 47 sudo systemctl status openssh-server
  62. 48 sudo systemctl status sshd
  63. 49 ip a
  64. 50 chsh --help
  65. 51 chsh -l
  66. 52 whoami
  67. 53 w
  68. 54 hostname
  69. 55 date
  70. 56 date --help | less
  71. 57 date --help
  72. 58 date --help | less
  73. 59 uname
  74. 60 uname --help
  75. 61 uname --all
  76. 62 passwd
  77. 63 touch mynewfile
  78. 64 cd /usr
  79. 65 touch newfile
  80. 66 cd
  81. 67 ls -l
  82. 68 touch countdown
  83. 69 ls -l countdown
  84. 70 last
  85. 71 countdown 12
  86. 72 man useradd
  87. 73 man semanage-fcontext
  88. 74 man -k user
  89. 75 man man
  90. 76 man apropos
  91. 77 man mandb
  92. 78 man man
  93. 79 sudo mandb
  94. 80 man -k user
  95. 81 man -k user | wc
  96. 82 man -k user
  97. 83 man -k user | grep 8
  98. 84 man -k user | grep 8 | wc
  99. 85 history
  100. 86 man uname
  101. 87 man 2 uname
  102. 88 man -a uname
  103. 89 man passwd
  104. 90 man 5 passwd
  105. 91 man ls
  106. 92 pinfo '(coreutils) ls invocation'
  107. 93 info '(coreutils) ls invocation'
  108. 94 cd /etc
  109. 95 ls -l
  110. 96 ls | wc
  111. 97 ls
  112. 98 ls -l grub2.cfg
  113. 99 history
  114. 100 ls -lrt
  115. 101 cat shadow
  116. 102 sudo cat shadow
  117. 103 echo $PATH
  118. 104 cd
  119. 105 ls
  120. 106 ls -a
  121. 107 echo hello > .hello
  122. 108 ls
  123. 109 ls -a
  124. 110 cat .hello
  125. 111 cd /etc
  126. 112 ls
  127. 113 ls a*
  128. 114 ls -d a*
  129. 115 ls -d a*/b*
  130. 116 ls -d a*/*
  131. 117 ls -d a*/a*
  132. 118 ls a?????
  133. 119 ls ?????
  134. 120 ls -d ?????
  135. 121 ls -d g????
  136. 122 ls ??a* -d
  137. 123 ls ??[ab]* -d
  138. 124 ls ??[a-e]* -d
  139. 125 ls -d a*
  140. 126 ls a* -d
  141. 127 cd
  142. 128 mkdir blah
  143. 129 cp /etc/hosts blah/
  144. 130 rmdir blah
  145. 131 rm -rf blah/
  146. 132 history
  147. [student@centos
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement