Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@localhost bash-scripting]# history
- 1 history -w
- 2 history
- 3 cat /etc/os-release
- 4 git clone https://github.com/sandervanvugt/bash-scripting
- 5 echo $PATH
- 6 env
- 7 echo $USER
- 8 key=value
- 9 echo $key
- 10 bash
- 11 export key=value
- 12 bash
- 13 vim /etc/profile
- 14 vim /etc/bashrc
- 15 echo $key
- 16 echo $key1
- 17 echo ${key}1
- 18 echo $?
- 19 ls oihoiuhiu
- 20 echo $?
- 21 vim countdown
- 22 countdown
- 23 ./countdown
- 24 ls -l countdown
- 25 chmod +x countdown
- 26 ./countdown 1
- 27 vim countdown
- 28 nano countdown
- 29 history
- 30 cat countdown
- 31 vim countdown
- 32 ./countdown 12
- 33 vim countdown
- 34 ./countdown
- 35 ehco $?
- 36 echo $?
- 37 vim countdown
- 38 ./countdown
- 39 echo $?
- 40 ./countdown 12
- 41 which passwd
- 42 type passwd
- 43 type ls
- 44 type echo
- 45 help
- 46 strace -c ls *
- 47 strace -c echo *
- 48 echo the current $SHELL is set to $SHELL
- 49 echo the current '$SHELL' is set to $SHELL
- 50 echo the current \$SHELL is set to $SHELL
- 51 echo the current "$SHELL" is set to $SHELL
- 52 ls -l `which ls`
- 53 ls -l `which passwd`
- 54 ls -l $(which passwd)
- 55 which echo
- 56 type echo
- 57 declare -r ANSWER=yes
- 58 echo $ANSWER
- 59 ANSWER=no
- 60 cd bash-scripting/
- 61 history grep git
- 62 history | grep git
- 63 ls
- 64 vim readtit
- 65 chmod +x *
- 66 ./readtit
- 67 cat readtit
- 68 . readtit
- 69 . <(kubectl completion bash)
- 70 cd
- 71 cd bash-scripting/
- 72 ls
- 73 vim setcolor.sh
- 74 vim colors
- 75 vim setcolor.sh
- 76 chmod +x setcolor.sh
- 77 ./setcolor.sh
- 78 cat setcolor.sh
- 79 cat colors
- 80 cd /etc/sysconfig/
- 81 ls
- 82 cat selinux
- 83 cd
- 84 cd bash-scripting/
- 85 vim script3
- 86 ./script3 a b c d e f g h i j k l
- 87 true --help
- 88 true -h
- 89 vim script4
- 90 type true
- 91 /usr/bin/true --help
- 92 cp /usr/bin/true /usr/local/bin/sander
- 93 /usr/local/bin/sander --help
- 94 vim script4
- 95 ./script4 a b c d
- 96 cat script4
- 97 vim mkusers
- 98 chmod +x mkusers
- 99 ./mkusers bob bill anita
- 100 ./mkusers
- 101 echo $?
- 102 vim backmeup
- 103 chmod +x backmeup
- 104 ./backmeup
- 105 ls -l /tmp/etc*
- 106 uname -r
- 107 find / -type d -name $(uname -r)
- 108 cd /usr/lib/modules
- 109 ls -l
- 110 cd
- 111 ./countdown 12
- 112 cd bash-scripting/
- 113 ls
- 114 ls -l setup*
- 115 vim setupsvc
- 116 vim setupftp-test
- 117 systemctl disable --now firewalld
- 118 bash -x setupftp-test
- 119 vim /etc/vsftpd/vsftpd.conf
- 120 systemctl restart vsftpd
- 121 cp setupftp-test setupftpclient
- 122 vim setupftpclient
- 123 ./setupftpclient
- 124 ls
- 125 rm -f hosts
- 126 bash -x setupftpclient
- 127 ls -l hosts
- 128 vim script6
- 129 ./script6 /usr/bin/blah
- 130 vim script6
- 131 ./script6 /usr/bin/blah
- 132 vim script7
- 133 cd many
- 134 mkdir many
- 135 cd many
- 136 touch file{1..100}
- 137 ls
- 138 for i in *; do echo $1; done
- 139 for i in *; do echo $i; done
- 140 for i in *; do mv $i ${i#file}; done
- 141 ls
- 142 man test
- 143 test -f bogus
- 144 echo $?
- 145 test -f 12
- 146 echo $
- 147 echo $?
- 148 [ -f 12 ]
- 149 echo $?
- 150 [ -f 1eee2 ]
- 151 echo $?
- 152 [[ -f 1eee2 ]]
- 153 echo $?
- 154 [[ -f 12 ]]
- 155 echo $?
- 156 if [ -f /etc/host ]; then echo it exists; fi
- 157 if [ -f /etc/hosts ]; then echo it exists; fi
- 158 test -f /etc/hosts && echo it exists
- 159 test -f /etc/host && echo it exists
- 160 test -f /etc/host ; echo it exists
- 161 if [ -d /etc ] && [ -x /etc ]; then echo yes; fi
- 162 mkdir /blah
- 163 chmod -x /blah
- 164 ls -ld /blah
- 165 if [ -d /blah ] && [ -x /blah ]; then echo yes; fi
- 166 bash -x if [ -d /blah ] && [ -x /blah ]; then echo yes; fi
- 167 vim iftest
- 168 bash -x iftest
- 169 bash -x iftest /etc
- 170 bash -x iftest /blah
- 171 bash -xc 'if [ -d /tmp/etc ] && [ -x /tmp/etc ]; then echo yes; fi'
- 172 bash -c 'if [ -d /tmp/etc ] && [ -x /tmp/etc ]; then echo yes; fi'
- 173 bash -c 'if [ -d /tmp ] && [ -x /tmp ]; then echo yes; fi'
- 174 cd ..
- 175 ./countdown 12
- 176 vim multiline
- 177 vim multline
- 178 chmod +x multline
- 179 ./multline
- 180 vim multline
- 181 ./multline
- 182 cat multline
- 183 cd many/
- 184 touch 31-aug-99-file
- 185 touch 31.08.99-file
- 186 cd ..
- 187 vim else1
- 188 vim else2
- 189 vim numcheck
- 190 ./numcheck
- 191 bash -x numcheck
- 192 ls -la /usr/bin > binaries && cat binaries && cat /etc/hosts
- 193 vim for
- 194 ls
- 195 vim case
- 196 echo hgello | tr [:lower:] [:upper:]
- 197 echo hgello | tr [a-k] [l-z]
- 198 echo hgello | tr [a-z] [A-Z]
- 199 vim case
- 200 ./case
- 201 vim case
- 202 ./case
- 203 vim script11
- 204 ./script11 1
- 205 vim script11
- 206 ./script11
- 207 bash -x script11
- 208 vim script11
- 209 bash -x script11 1
- 210 vim script11
- 211 ./script11 1
- 212 vim script11
- 213 ./script11 1
- 214 vim backout
- 215 vim convert
- 216 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement