Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [student@localhost bash-scripting]$ vim 1_cpu-hog
- [student@localhost bash-scripting]$ history
- 1 sudo dnf install -y git
- 2 git clone https://github.com/sandervanvugt/bash-scripting
- 3 cd bash-scripting/
- 4 ls
- 5 vim network
- 6 vim script1
- 7 script1
- 8 echo $PATH
- 9 ./script1
- 10 ls -l script1
- 11 chmod +x script1
- 12 ./script1
- 13 echo $PATH
- 14 env
- 15 echo $USER
- 16 echo $PATH
- 17 env
- 18 food=apple
- 19 echo $food
- 20 echo $food1
- 21 echo ${food}1
- 22 echo "${food}"1
- 23 echo '${food}'1
- 24 echo that's right
- '
- 25 echo that\'s right
- 26 echo 'that'\''s right'
- 27 ls
- 28 echo $?
- 29 ls uiguyguyfuy
- 30 echo $?
- 31 vim script1
- 32 ./script1
- 33 echo $?
- 34 vim script1
- 35 echo "what a lovely day; and sunny too"
- 36 echo what a lovely day and sunny too
- 37 echo what a lovely day; and sunny too
- 38 print "|%20s |%20s |%20s |\n" $(ls)
- 39 printf "|%20s |%20s |%20s |\n" $(ls)
- 40 git pull
- 41 vim lab5-grade.sh
- 42 echo -e "\033[32m[OK]\033[0m\t\t The deployment salesweb is running"
- 43 ./lab5-grade.sh
- 44 printf "hello"\n
- 45 printf "hello\n"
- 46 printf "b%st\n" 0 0a 00 i e
- 47 printf "warning\n\a"
- 48 ls
- 49 echo *
- 50 strace -c echo *
- 51 strace -c ls
- 52 type echo
- 53 echo useradd
- 54 type useradd
- 55 compgen -b
- 56 compgen -k
- 57 declare -r WHAT=coffee
- 58 echo $WHAT
- 59 WHAT=no
- 60 vim script2
- 61 ./countdown 12
- 62 echo $SHELL
- 63 echo "that\'s right"
- 64 echo that\'s right
- 65 vim script2
- 66 ./script2
- 67 ls -l
- 68 chmod +s *
- 69 chmod -s *
- 70 chmod +x *
- 71 ./script2
- 72 vim script2
- 73 source script2
- 74 cd -
- 75 . script2
- 76 pwd
- 77 cd -
- 78 vim sourceit
- 79 chmod +x sourceit
- 80 ./sourceit
- 81 vim colors
- 82 ./sourceit
- 83 cat sourceit
- 84 cat colors
- 85 vim network
- 86 ls -l /home
- 87 vim script3
- 88 ./script3 a b c d
- 89 ./script3 a b c d e f g h i j k l
- 90 vim script3
- 91 ./script3 a b c d e f g h i j k l
- 92 vim script3
- 93 vim script4
- 94 ./script4 a b c d
- 95 date +%d-%m-%y
- 96 sudo crontab -e
- 97 cd /lib
- 98 ls
- 99 cd /lib64
- 100 ls
- 101 cd /
- 102 sudo find / -name "$(uname -r)" -type d
- 103 uname -r
- 104 cd -
- 105 cd
- 106 cd bash-scripting/
- 107 vim network
- 108 vim myusers
- 109 vim createmyusers.sh
- 110 chmod +x createmyusers.sh
- 111 ./createmyusers.sh
- 112 vim createmyusers.sh
- 113 cat /etc/os-release
- 114 cat createmyusers.sh
- 115 mkdir one two
- 116 touch one/{one,two,three}
- 117 touch two/{two,three,four}
- 118 diff <(ls one) <(ls two)
- 119 ls
- 120 vim setupftp
- 121 ls -l hosts
- 122 ./setupftp
- 123 ls -l hosts
- 124 vim kube-setup.sh
- 125 history
- 126 echo "hello world" | read first second
- 127 echo "first second"
- 128 echo "$first $second"
- 129 read first second <<< "hello world"
- 130 echo "first second"
- 131 echo "$first $second"
- 132 vim script6
- 133 ./script6 /usr/bin/blah
- 134 vim script6
- 135 ./script6 /usr/bin/lah
- 136 vim script7
- 137 vim countdown
- 138 ./countdown
- 139 vim countdown
- 140 ./countdown
- 141 vim countdown
- 142 ./countdown
- 143 vim countdown
- 144 man test
- 145 if [ -f /etc/hosts]; then echo file exists; fi
- 146 if [ -f /etc/hosts ]; then echo file exists; fi
- 147 if [ -x /etc/hosts ]; then echo file exists; fi
- 148 [ -f /etc/hosts ] && echo file exists
- 149 [ -f /etc/hosts ] || echo file not exists
- 150 [ -f /etc/hos ] || echo file not exists
- 151 vim network
- 152 file exists
- 153 touch exists
- 154 file exists
- 155 type file
- 156 vim someargs1
- 157 vim someargs2
- 158 ./someargs1
- 159 ./someargs2
- 160 vim someargs1
- 161 ./someargs2
- 162 ./someargs1
- 163 ./someargs1 blah
- 164 vim script7
- 165 vim script8
- 166 tail -1 /etc/passwd
- 167 vim script8
- 168 ./script8 alex
- 169 ./script8 student
- 170 ./script8 root
- 171 vim script8
- 172 ./script8 root
- 173 vim script8
- 174 bash -x script8 student
- 175 vim script8
- 176 bash -x script8 student
- 177 vim script8
- 178 bash -x script8 student
- 179 history
- 180 bash --debugger script8 student
- 181 cat /etc/os-release
- 182 history
- 183 vim else1
- 184 ./else1
- 185 echo $?
- 186 ./else1 qwe
- 187 vim else1
- 188 ./else1 qwe
- 189 ./else1
- 190 vim else1
- 191 vim else2
- 192 ./else2
- 193 ./else2 /etc/hosts
- 194 ./else2 /etc/gugikg
- 195 vim else2
- 196 ./else2
- 197 ./else2 /etc/hosts
- 198 ./else2 /etc/uygiu
- 199 vim else2
- 200 ./else2 /etc/uygiu
- 201 ./else2 /etc/hosts
- 202 vim else2
- 203 grep elif *
- 204 vim numcheck
- 205 ./numcheck
- 206 vim for
- 207 for i in 1 2 3; do ping -c 1 192.168.29.$i; done
- 208 for i in (1..10); do ping -c 1 192.168.29.$i; done
- 209 for i in {1..10}; do ping -c 1 192.168.29.$i; done
- 210 for i in {1..10}; do echo $i; done
- 211 vim case
- 212 ./case
- 213 vim case
- 214 ./case
- 215 vim case
- 216 ./case
- 217 vim case
- 218 ./case
- 219 vim case
- 220 ./case
- 221 cat case
- 222 vim network
- 223 vim script10
- 224 ./script10 5
- 225 vim script11
- 226 ./script11
- 227 vim script11
- 228 ./script11
- 229 ./script11 1
- 230 vim script11
- 231 ./script11 1
- 232 bash -x script11 1
- 233 vim script11
- 234 bash -x script11 1
- 235 vim script11
- 236 ls
- 237 vim 1_cpu-hog
- 238 ps -eo pcpu,pid -o comm=
- 239 ps -eo pcpu,pid -o comm= | less
- 240 while true; do true; done &
- 241 vim 1_cpu-hog
- 242 ps -eo pcpu,pid -o comm= | sort -k1 -n -r | head -1
- 243 vim 1_cpu-hog
- 244 ./1_cpu-hog
- 245 sudo journalctl
- 246 vim 1_cpu-hog
- 247 ./1_cpu-hog
- 248 vim 1_cpu-hog
- 249 ./1_cpu-hog
- 250 vim 1_cpu-hog
- 251 history
Advertisement
Add Comment
Please, Sign In to add comment