Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [student@localhost bash-scripting]$ history
- 1 echo $day
- 2 exit
- 3 echo $day
- 4 echo $day123
- 5 echo ${day}123
- 6 echo ${day}
- 7 ls
- 8 echo $?
- 9 ls uguyguyfg
- 10 echo $?
- 11 vim hello.sh
- 12 nano hello.sh
- 13 vimtutor
- 14 nano hello.sh
- 15 hello.sh
- 16 echo $PATH
- 17 pwd
- 18 mkdir bin
- 19 mv hello.sh bin/
- 20 hello.sh
- 21 cd bin
- 22 ls -l
- 23 bash hello.sh
- 24 chmod +x hello.sh
- 25 ls -l
- 26 hello.sh
- 27 file hello.sh
- 28 sudo git clone https://github.com/sandervanvugt/kubernetes
- 29 sudo dnf install -y git
- 30 git clone https://github.com/sandervanvugt/kubernetes
- 31 cd kubernetes/
- 32 ls
- 33 cd
- 34 git clone https://github.com/sandervanvugt/bash-scripting
- 35 echo $PATH
- 36 history
- 37 type cd
- 38 type useradd
- 39 help
- 40 man bash
- 41 echo *
- 42 echo \*
- 43 echo \****
- 44 echo '****'
- 45 echo "****"
- 46 NAME=Sander van Vugt
- 47 NAME="Sander van Vugt"
- 48 echo $NAME
- 49 NAME="Sander van Vugt"
- 50 NAME=Sander van Vugt
- 51 echo $NAME
- 52 echo $"NAME"
- 53 echo "$NAME"
- 54 declare -r ANSWER=yes
- 55 echo $ANSWER
- 56 ANSWER=maybe
- 57 ls
- 58 cd bash-scripting/
- 59 vim countdown
- 60 man true
- 61 vim countdown
- 62 history
- 63 vim countdown
- 64 vim readit
- 65 ./readit
- 66 ls -l
- 67 chmod +x *
- 68 ./readit
- 69 cat readit
- 70 vim printcolor
- 71 chmod +x printcolor
- 72 ./printcolor
- 73 vim colors
- 74 ./printcolor
- 75 vim printcolor
- 76 history
- 77 cat readit
- 78 vim readit
- 79 . readit
- 80 pwd
- 81 cd
- 82 cd bash-scripting/
- 83 vim script3
- 84 ./script3 a b c d e f g h i j k l
- 85 cat script3
- 86 vim script4
- 87 ./script4 a b c d
- 88 cat script4
- 89 vim shiftit
- 90 man test
- 91 vim shiftit
- 92 chmod +x shiftit
- 93 ./shiftit a b c d e f g
- 94 vim shiftit
- 95 ./shiftit a b c d e f g
- 96 vim shiftit
- 97 man test
- 98 vim shiftit
- 99 ./shiftit a b c d e f g
- 100 vim shiftit
- 101 man test
- 102 history
- 103 cat shiftit
- 104 vim shiftit
- 105 ./shiftit a b c d e f g
- 106 cat shiftit
- 107 vim shiftit
- 108 ./shiftit a b c d e f g
- 109 man test
- 110 tar -cvf /tmp/backup-$(date +%d-%m-%y).tar .
- 111 history
- 112 ls -l /tmp/backup-04-08-23.tar
- 113 uname -r
- 114 sudo dnf install -y vsftpd lftp
- 115 sudo vim /etc/vsftpd/vsftpd.conf
- 116 sudo systemctl start vsftpd
- 117 lftp localhost
- 118 vim setupftp
- 119 ls
- 120 ./setupftp
- 121 ls
- 122 vim kube-setup.sh
- 123 ls
- 124 cd ..
- 125 git clone https://github.com/sandervanvugt/cka
- 126 cd cka
- 127 ls
- 128 vim setup-container.sh
- 129 cd ../bash-scripting/
- 130 vim script6
- 131 ./script6 /usr/bin/blah
- 132 vim script6
- 133 ./script6
- 134 ./script6 /usr/bin/stupid
- 135 vim script7
- 136 mkdir this
- 137 cd this
- 138 touch file{1..10}.jpg
- 139 ls
- 140 for i in file*; do mv $i $i{%jpg}.doc; done
- 141 ls
- 142 for i in file*; do mv $i ${i%%jpg}.doc; done
- 143 ls
- 144 for i in file*; do echo $i; done
- 145 for i in file*; do echo ${i%%.*}; done
- 146 for i in file*; do echo ${i%%.*}.doc; done
- 147 for i in file*; do mv $i ${i%%.*}.doc; done
- 148 ls
- 149 history
- 150 ls
- 151 for i in file*; do echo ${i%%.*}; done
- 152 for i in file*; do echo ${i%%.*}.whatever; done
- 153 cd ..
- 154 ./countdown 13
- 155 vim kg.sh
- 156 [ -f /etc/hosts ] && echo it exists
- 157 [ -f /etc/hosts ] || echo it doesnt exists
- 158 [ -f /etc/hjhgjygyu ] || echo it doesnt exists
- 159 vim kg
- 160 chmod +x kg
- 161 ./kg
- 162 vim kg
- 163 ./kg
- 164 vim kg
- 165 man signals
- 166 man signal
- 167 man 7 signal
- 168 vim kg
- 169 ./kg
- 170 cat kg
- 171 vim else1
- 172 vim else2
- 173 ./else1
- 174 cat else1
- 175 ./else1 hello
- 176 ./else2
- 177 ./else2 /etc/hosts
- 178 ./else2 /etc/ughiughiugh
- 179 cat else1
- 180 cat else2
- 181 cp else2 else3
- 182 vim else3
- 183 ./else3 /etc/hosts
- 184 ./else3 /etc/uhiughuihg
- 185 cat else2
- 186 cat else3
- 187 for i in 2 140 146; do ping -c 1 192.168.29.$i; done
- 188 history | grep while
- 189 while sleep 30; do echo sleeping; done
- 190 while sleep 3; do echo sleeping; done
- 191 grep case *
- 192 vim script12
- 193 ./script12
- 194 vim script12
- 195 ./script12
- 196 vim script10
- 197 vim script11
- 198 ./script11 1
- 199 vim script11
- 200 bash -x script11
- 201 vim script11
- 202 ./script11 1
- 203 vim script11
- 204 ./script11 1
- 205 bash -x ./script11 1
- 206 vim script11
- 207 bash -x ./script11 1
- 208 vim script11
- 209 bash -x ./script11 1
- 210 ./script11 1
- 211 ls
- 212 vim 1_cpu-hog
- 213 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement