Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [student@localhost ~]$ history
- 1 env
- 2 echo $PATH
- 3 key=value
- 4 echo $key
- 5 echo ${key}1
- 6 echo $key1
- 7 KEY=another
- 8 echo $KEY
- 9 echo $key
- 10 env
- 11 ls
- 12 echo $?
- 13 ls uhkuh
- 14 echo $?
- 15 sudo yum install git vim bash-completion curl wget -y
- 16 git clone https://github.com/sandervanvugt/bash-scripting
- 17 cd bash-scripting/
- 18 ls
- 19 vim hello-world
- 20 history
- 21 ls
- 22 echo $PATH
- 23 hello-world
- 24 ./hello-world
- 25 ls -l hello-world
- 26 chmod +x hello-world
- 27 ./hello-world
- 28 history
- 29 bash hello-world
- 30 history
- 31 sudo cp hello-world /usr/local/bin
- 32 hello-world
- 33 ehco the current $SHELL is $SHELL
- 34 echo the current $SHELL is $SHELL
- 35 echo the current '$SHELL' is $SHELL
- 36 echo the current \$SHELL is $SHELL
- 37 whoami
- 38 echo `whoami`
- 39 echo $(whoami)
- 40 declare -r BLAH=yes
- 41 echo $BLAH
- 42 BLAH=no
- 43 color=red
- 44 echo $color
- 45 echo "$color"
- 46 echo ${color}
- 47 vim readi
- 48 ls
- 49 vim readtit
- 50 chmod +x readtit
- 51 ./readtit
- 52 cat readtit
- 53 pwd
- 54 ./readtit
- 55 . readtit
- 56 pwd
- 57 source readtit
- 58 cd -
- 59 source readtit
- 60 cd -
- 61 vim mycolor
- 62 chmod +x mycolor
- 63 ./mycolor
- 64 sudo -i
- 65 ./mycolor
- 66 cat mycolor
- 67 cat /etc/sysconfig/colors
- 68 sudo yum install network-scripts
- 69 vim /etc/init.d/network
- 70 ls
- 71 ./countdown 12
- 72 ls
- 73 chmod +x script*
- 74 vim script3
- 75 ./script3 a b c d e f g h i j k l m
- 76 cat script3
- 77 vim script4
- 78 ./script4 a b c d e
- 79 date +%d-%m-%y
- 80 TODAY=$(date +%d-%m-%Y)
- 81 echo $TODAY
- 82 cd /lib
- 83 ls
- 84 cd /lib64
- 85 ls
- 86 cd /usr/lib
- 87 ls
- 88 cd /usr/lib64
- 89 ls
- 90 cd
- 91 uname -r
- 92 find / -type d -n $(uname -r)
- 93 find / -type d -name $(uname -r)
- 94 cd /usr/lib/modules
- 95 ls
- 96 cd `uname -r`
- 97 cd -
- 98 cd $(uname -r)
- 99 cd
- 100 cd bash-scripting/
- 101 ls
- 102 vim setupftp
- 103 ./setupftp
- 104 ls
- 105 ls -l hosts
- 106 vim kube-setup.sh
- 107 grep '<<' *
- 108 vim setupftp
- 109 vim script10
- 110 echo $((1+1))
- 111 echo $(( 1+1 ))
- 112 vim script10
- 113 ./script10 5
- 114 cat psubst1
- 115 vim psubst1
- 116 ./psubst1
- 117 vim psubst2
- 118 ./psubst2
- 119 ./psubst3
- 120 vim psubst3
- 121 cat psubst4
- 122 ./psubst4
- 123 ./psubst4 hello
- 124 vim misvar
- 125 chmod +xmisvar
- 126 chmod +x misvar
- 127 ./misvar
- 128 vim misvar
- 129 ./misvar
- 130 echo $?
- 131 vim psubst4
- 132 ./psubst4
- 133 vim psubst4
- 134 ./script10 12
- 135 vim script10
- 136 ./script10 12
- 137 vim script6
- 138 ./script6 /usr/bin/blah
- 139 vim script6
- 140 ./script6
- 141 ./script6 /usr/bin/blah
- 142 vim pm
- 143 ./pm
- 144 vim script10
- 145 vim script7
- 146 man here
- 147 ./pm
- 148 vim pm
- 149 ./pm
- 150 vim patternglob
- 151 ./patternglob
- 152 touch zblah.txt
- 153 ./patternglob
- 154 vim removepattern
- 155 ./removepattern
- 156 ls
- 157 vim removepattern
- 158 vim countdown
- 159 ./countdown 1
- 160 echo "12/5" | bc
- 161 echo "12/5" | bc -l
- 162 man bc
- 163 man test
- 164 [ -f /etc/hosts ] && echo exists
- 165 [ -f /etc/hosts ] || echo exists
- 166 if [ -f /etc/hosts ]; then echo exists; fi
- 167 if test -f /etc/hosts; then echo exists; fi
- 168 [ -d /etc/hosts ] || [ -f /etc/hosts ] && echo exists
- 169 [ -d /etc/hosts ] || ( [ -f /etc/hosts ] && echo exists )
- 170 if useradd bob; then cp /etc/hosts /home/bob; fi
- 171 true
- 172 echo $?
- 173 [ -d /etc/hosts ] && echo yes || echo no
- 174 [ -d /etc/hosts ] || echo not && echo yes
- 175 vim /etc/init.d/network
- 176 ./countdown 12
- 177 ls
- 178 chmod +x else*
- 179 vim else1
- 180 vim else2
- 181 ./else2 /etc
- 182 ./else2 /etc/hosts
- 183 vim numcheck
- 184 ./numcheck
- 185 vim for
- 186 vim case
- 187 echo hello | tr [:lower:] [:upper:]
- 188 echo hello | tr [a-z] [A-Z]
- 189 echo hello | tr [a-z] [z-a]
- 190 echo hello | tr [a-m] [n-z]
- 191 vim case
- 192 ./case
- 193 vim case
- 194 ./case
- 195 vim case
- 196 vim /etc/init.d/network
- 197 vim script10
- 198 vim case
- 199 vim backout
- 200 df /etc
- 201 vim backout
- 202 ./backout
- 203 sudo ./backout
- 204 vim backout
- 205 sudo ./backout
- 206 ls /etc.backup/
- 207 vim convert
- 208 mkdir mydir
- 209 cd mydir/
- 210 touch abc aBc ABC
- 211 ../convert
- 212 ls
- 213 cd ..
- 214 vim convert
- 215 ls
- 216 vim reboot-test.sh
- 217 sudo reboot-test.sh
- 218 sudo ./reboot-test.sh
- 219 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement