sandervanvugt

coolbash jan22

Jan 20th, 2022
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.78 KB | None | 0 0
  1. [root@cool cool-bash]# history
  2. 1 git clone https://github.com/sandervanvugt/coolbash
  3. 2 git clone https://github.com/sandervanvugt/cool-bash
  4. 3 git clone https://github.com/sandervanvugt/bash-scripting
  5. 4 cd bash-scripting/
  6. 5 ls
  7. 6 vim array1
  8. 7 vim areyousure
  9. 8 vim backout
  10. 9 cp backout ../cool-bash/
  11. 10 vim case
  12. 11 vim cleanuponexit
  13. 12 vim convert
  14. 13 cp convert ../cool-bash/
  15. 14 vim distribute-scripts-and-guides.sh
  16. 15 cp distribute-scripts-and-guides.sh ../cool-bash/
  17. 16 vim funcvar
  18. 17 vim mymenu
  19. 18 vim less11_labb
  20. 19 vim numcheck
  21. 20 cp numcheck ../cool-bash/
  22. 21 vim options
  23. 22 vim patternglob
  24. 23 cp patternglob ../cool-bash/
  25. 24 vim pm
  26. 25 vim psubst1
  27. 26 cp psubst ../cool-bash/
  28. 27 vim setfalse
  29. 28 vim setupftp
  30. 29 vim setup-remote.sh
  31. 30 cp setup-remote.sh ../cool-bash/
  32. 31 vim setupsvc
  33. 32 cd ../cool-bash/
  34. 33 cd ..
  35. 34 history
  36. 35 cd cool-bash/
  37. 36 ls
  38. 37 cd ../bash-scripting/
  39. 38 ls
  40. 39 vim countdown
  41. 40 chmod +x ./countdown
  42. 41 ./countdown 1
  43. 42 ./countdown a
  44. 43 ./countdown
  45. 44 vim countdown
  46. 45 cd ../cool-bash/
  47. 46 ls
  48. 47 vim numcheck
  49. 48 history
  50. 49 vim numcheck
  51. 50 ./numcheck
  52. 51 bash -x numcheck
  53. 52 man test
  54. 53 test -b /etc/hosts
  55. 54 echo $?
  56. 55 test -f /etc/hosts
  57. 56 echo $?
  58. 57 [ -b /etc/hosts ] && echo hello
  59. 58 [ -b /etc/hosts ] || echo hello
  60. 59 ls lugujgug
  61. 60 echo $?
  62. 61 su - student
  63. 62 yum install network-scripts
  64. 63 cd /etc/init.d/
  65. 64 ls
  66. 65 vim network
  67. 66 history
  68. 67 vim network
  69. 68 vim /etc/profile
  70. 69 vim network
  71. 70 color=red
  72. 71 echo $color
  73. 72 echo $colorhello
  74. 73 echo ${color}hello
  75. 74 cd
  76. 75 cd cool-bash/
  77. 76 ls
  78. 77 ../bash-scripting/countdown 12
  79. 78 vim or.sh
  80. 79 chmod +x or.sh
  81. 80 ./or.sh
  82. 81 chmod +x or.sh
  83. 82 vim or.sh
  84. 83 ls
  85. 84 vim 1_cpu-hog
  86. 85 ps -eo pcpu,pid -o comm= | sort -k1 -n -r | head -1 | awk '{ print $1 } '
  87. 86 ps -eo pcpu,pid -o comm= | sort -k1 -n -r | head -1
  88. 87 ps -eo pcpu,pid -o comm= | sort -k1 -n -r
  89. 88 vim 1_cpu-hog
  90. 89 me=`whoami`
  91. 90 echo $me
  92. 91 me=$(whoami)
  93. 92 echo $me
  94. 93 vim 1_cpu-hog
  95. 94 ./1_cpu-hog
  96. 95 bash -x 1_cpu-hog
  97. 96 vim 1_cpu-hog
  98. 97 ./1_cpu-hog
  99. 98 vim 1_cpu-hog
  100. 99 cd ../bash-scripting/
  101. 100 ls
  102. 101 cat script5
  103. 102 cat script6
  104. 103 chmod +x script*
  105. 104 vim script6
  106. 105 ./script6 /usr/bin/blah
  107. 106 vim script6
  108. 107 ./script6 /usr/in/blah
  109. 108 cd ../cool-bash/
  110. 109 vim 1_cpu-hog
  111. 110 cd ../bash-scripting/
  112. 111 vim script7
  113. 112 history
  114. 113 cd ../cool-bash/
  115. 114 ls
  116. 115 cat 4b_reboot.sh
  117. 116 vim 4_reboot-test.sh
  118. 117 ./4_reboot-test.sh
  119. 118 history
  120. 119 cd cool-bash/
  121. 120 vim 4_reboot-test.sh
  122. 121 vim 4b_reboot.sh
  123. 122 ./4b_reboot.sh
  124. 123 cd cool-bash/
  125. 124 ls
  126. 125 vim 7a_trap
  127. 126 ./7a_trap
  128. 127 ls -l /tmp/tmpdata
  129. 128 man 7 signal
  130. 129 vim 7b_trap
  131. 130 ./7b_trap
  132. 131 ls
  133. 132 vim setup-container.sh
  134. 133 vim setup-remote.sh
  135. 134 vim patternglob
  136. 135 touch one.doc
  137. 136 ./patternglob
  138. 137 vim patternglob
  139. 138 ./patternglob
  140. 139 vim patternglob
  141. 140 man shopt
  142. 141 shopt --help
  143. 142 shopt -p
  144. 143 ls -l
  145. 144 touch setup-remote.sh
  146. 145 ls -l
  147. 146 touch abcd
  148. 147 ls -l
  149. 148 cat 5l_manyfiles
  150. 149 vim 5l_manyfiles
  151. 150 chmod +x 5l_manyfiles
  152. 151 ./5l_manyfiles
  153. 152 ls
  154. 153 touch myfile{1..100}.txt
  155. 154 ls
  156. 155 rm myfile*
  157. 156 rm myfile* -f
  158. 157 ls
  159. 158 \ls
  160. 159 alias
  161. 160 history
  162.  
Advertisement
Add Comment
Please, Sign In to add comment