Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1 echo $SHELL
- 2 env
- 3 echo $USER
- 4 echo $PATH
- 5 key=value
- 6 echo $key
- 7 bash
- 8 export key=vlaue
- 9 echo $key
- 10 bash
- 11 echo ${key}
- 12 echo ${key}1
- 13 echo $key1
- 14 ls
- 15 echo $?
- 16 ls uhiuhgiuiuh
- 17 echo $?
- 18 vim hello
- 19 ls -l hello
- 20 ./hello
- 21 chmod +x hello
- 22 ./hello
- 23 history
- 24 hello
- 25 echo $PATH
- 26 ./hello
- 27 history
- 28 cat hello
- 29 echo $PATH
- 30 echo $SHELL
- 31 chsh --help
- 32 #chsh -s /bin/bash
- 33 help
- 34 type ls
- 35 type useradd
- 36 type shift
- 37 which tcsh
- 38 which csh
- 39 sudo dnf install zsh
- 40 chsh -s /bin/zsh
- 41 echo $SHELL
- 42 grep student /etc/passwd
- 43 history
- 44 chsh -s /bin/bash
- 45 grep student /etc/passwd
- 46 vim changeshell
- 47 chmod +x changeshell
- 48 ./changeshell
- 49 mkdir newdir
- 50 cd newdir/
- 51 touch my file
- 52 ls -l
- 53 touch "my file"
- 54 ls
- 55 echo "the current $SHELL is $SHELL"
- 56 echo 'the current $SHELL is $SHELL'
- 57 echo "the current \$SHELL is $SHELL"
- 58 cd
- 59 sudo dnf install git -y
- 60 git clone https://github.com/sandervanvugt/bash-scripting
- 61 cd bash-scripting/
- 62 ls
- 63 du -hs
- 64 cat countdown
- 65 ./countdown 12
- 66 vim countdown
- 67 $((2+4))
- 68 echo $((2+4))
- 69 vim countdown
- 70 echo (( 2 + 4 ))
- 71 echo $(( 2 + 4 ))
- 72 set a=3
- 73 set a=3; $(( a * 2 ))
- 74 a=3
- 75 $((a * 2))
- 76 echo $((a * 2))
- 77 echo $(($a * 2))
- 78 declare -r STATE=yes
- 79 echo $STATE
- 80 STATE=green
- 81 ls
- 82 vim readit
- 83 ./readit
- 84 chmod +x *
- 85 ./readit
- 86 pwd
- 87 vim sourceit
- 88 chmod +x sourceit
- 89 ./sourceit
- 90 vim vars
- 91 ./sourceit
- 92 vim vars
- 93 ./sourceit
- 94 ls -l /etc/sysconfig/
- 95 cat /etc/sysconfig/raid-check
- 96 history
- 97 vim script3
- 98 ./script3 a b c d e f g h i j k l m n
- 99 cat script3
- 100 export AWS_SECRET_KEY=abcde
- 101 vim script4
- 102 ./script4 a b c d
- 103 vim script4
- 104 for user in bob bill betty; do echo the username is $user; done
- 105 history
- 106 tar -czvf /tmp/backup-$(date +%d-%m-%y).tgz /etc
- 107 ls -l /tmp
- 108 history
- 109 man date
- 110 cd /usr/lib
- 111 ls
- 112 cd ../lib64
- 113 ls
- 114 cd ..
- 115 cd lib
- 116 ls
- 117 cd mod
- 118 cd modules
- 119 ls
- 120 uname -r
- 121 ls -l $(uname -r)
- 122 ls -l `uname -r`
- 123 cd
- 124 cd bash-scripting/
- 125 ./countdown 12
- 126 ls
- 127 vim setupftp
- 128 ./setupftp
- 129 ls
- 130 cd ..
- 131 git clone https://github.com/sandervanvugt/cka
- 132 cd cka/
- 133 ls
- 134 vim setup-container.sh
- 135 cd ..
- 136 history
- 137 cd bash-scripting/
- 138 vim script6
- 139 ./script6 /usr/bin/whatever
- 140 vim script6
- 141 ./script6 /usr/bin/blah
- 142 vim script7
- 143 echo $(( 2 * 19 ))
- 144 man test
- 145 test -f /etc/hosts
- 146 echo $?
- 147 [ -f /etc/hosts ]
- 148 echo $?
- 149 [ -f /etc/hostwegwegs ]
- 150 echo $?
- 151 if [ -f /etc/hosts ]; then it exists; fi
- 152 if [ -f /etc/hosts ]; then echo it exists; fi
- 153 if [-f /etc/hosts]; then echo it exists; fi
- 154 cd/etc
- 155 if [ -f /etc/hosts]; then echo it exists; fi
- 156 if [ -f /etc/hostwergers ]; then echo it exists; fi
- 157 [ -f /etc/hosts ] && echo it exists
- 158 [ -f /etc/hosts ] || echo it exists
- 159 [ -f /etc/hoguyfguysts ] || echo it exists
- 160 vim /etc/bashrc
- 161 ./countdown 12
- 162 ls
- 163 vim else1
- 164 ./else1
- 165 ./else1 hh
- 166 vim else2
- 167 ./else2 h
- 168 ./else2 /etc/hosts
- 169 vim else2
- 170 ./else2 uguiiug
- 171 ./else2 /etc/hosts
- 172 vim numcheck
- 173 ./numcheck
- 174 vim script10
- 175 ./script10 5
- 176 man true
- 177 vim script11
- 178 ./script11
- 179 bash -x script11
- 180 vim script11
- 181 ./script11
- 182 bash -x ./script11
- 183 vim script11
- 184 ./script11
- 185 ./script11 1
- 186 vim script11
- 187 ./script11 1
- 188 ls
- 189 vim 1_cpu-hog
- 190 ps -eo pcpu,pid -o comm=
- 191 vim 1_cpu-hog
- 192 ./1_cpu-hog
- 193 vim 1_cpu-hog
- 194 ./1_cpu-hog
- 195 vim 1_cpu-hog
- 196 ./1_cpu-hog
- 197 vim 1_cpu-hog
- 198 ./1_cpu-hog
- 199 vim 1_cpu-hog
- 200 ls
- 201 vim case
- 202 ./case
- 203 vim case
- 204 ./case
- 205 vim /etc/bashrc
- 206 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement