Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@june-lfcs:~/lfcs# history
- 1 apt-file update
- 2 apt-file search nfs-server
- 3 apt install nfs-kernel-server
- 4 history
- 5 exit
- 6 history
- 7 #dnf provides */nfs-server
- 8 #yum provides */nfs-server
- 9 man -k user
- 10 man -k user | grep 8
- 11 man -k sander
- 12 updatedb
- 13 mandb
- 14 vim countdown
- 15 bash countdown 4
- 16 cat /etc/passwd
- 17 ls -l /home
- 18 which nologin
- 19 id
- 20 id student
- 21 useradd --help | less
- 22 useradd -m isabelle
- 23 id isabelle
- 24 ls -l /home
- 25 groupadd --help
- 26 groupadd -g 9999 profs
- 27 groupadd -g 9998 staff
- 28 groupadd -g 9998 students
- 29 useradd -m -G profs marcha
- 30 id marcha
- 31 useradd -m -s /usr/sbin/nologin lisa
- 32 id lida
- 33 id lisa
- 34 grep lisa /etc/passwd
- 35 id marcha
- 36 usermod -G students marcha
- 37 id marcha
- 38 usermod -aG profs marcha
- 39 id marcha
- 40 passwd isabelle
- 41 grep isabelle /etc/passwd
- 42 grep isabelle /etc/shadow
- 43 vim /etc/login.defs
- 44 exit
- 45 history
- 46 vim go1.txt
- 47 passwd marcha
- 48 openssl passwd -6 salt pepper mypassword
- 49 openssl passwd -6 -salt pepper mypassword
- 50 useradd linda
- 51 usermod -p $(openssl passwd -6 -salt pepper mypassword) linda
- 52 grep linda /etc/shadow
- 53 exit
- 54 man -k ulimit
- 55 find / -name "limits.conf"
- 56 cd /etc/security/
- 57 ls
- 58 vim limits.conf
- 59 history
- 60 useradd -m lisa -s /bin/bash
- 61 grep lisa /etc/shadow
- 62 passwd lisa
- 63 vim limits.conf
- 64 su - lisa
- 65 vim /etc/passwd
- 66 su - lisa
- 67 cd
- 68 findmnt
- 69 mount
- 70 lsblk
- 71 df -h
- 72 du -hs
- 73 du -hs /usr
- 74 systemctl status sshd
- 75 vim /etc/ssh/sshd_config
- 76 su - lisa
- 77 su - marcha
- 78 history
- 79 vim go2.txt
- 80 man sshd_config
- 81 cat /etc/shadow
- 82 cat /etc/passwd
- 83 cd /home/isabelle/
- 84 ls -a
- 85 su - isabelle
- 86 ssh isabelle@localhost
- 87 su - isabelle
- 88 df -h
- 89 vim /tmp/storage-use.txt
- 90 cd
- 91 lsblk
- 92 df -h
- 93 dd if=/dev/zero of=/diskfile bs=1M count=1024
- 94 ls -l /dev/loop*
- 95 losetup --help | less
- 96 losetup -f /diskfil
- 97 losetup --help
- 98 losetup -l
- 99 pvcreate /diskfile
- 100 pvcreate /dev/loop3
- 101 pvs
- 102 vgcreate --help | less
- 103 vgcreate vgdata /dev/loop3
- 104 vgs
- 105 lvcreate -n lvdata -L 600M vgdata
- 106 lvs
- 107 mkfs.ext4 /dev/vgdata/lvdata
- 108 vim /etc/fstab
- 109 mkdir /data
- 110 mount -a
- 111 df -h
- 112 vgs
- 113 lvextend -r -L +100M /dev/vgdata/lvdata
- 114 df -h
- 115 history
- 116 tail -5 /etc/fstab
- 117 vim go3.txt
- 118 grep -e vmx -e svm /proc/cpuinfo
- 119 poweroff
- 120 bash countdown 15
- 121 bash countdown 5
- 122 vim countdown
- 123 bash countdown 15 "lab monitoring storage and lab ssh"
- 124 df -h
- 125 bash countdown 2
- 126 bash countdown 25 "to work on lab configuring LVM"
- 127 loginctl show-user
- 128 loginctl list-users
- 129 loginctl list-sessions
- 130 ps faux | less
- 131 kill -9 5476
- 132 vim /etc/ssh/sshd_config
- 133 grep -e vmx -e svm /proc/cpuinfo
- 134 apt install kvm* qemu* libvirt* virt*
- 135 apt install kvm* qemu* libvirt*
- 136 apt update
- 137 apt upgrade
- 138 apt install kvm* qemu* libvirt*
- 139 apt install kvm* qemu* libvirt
- 140 apt install kvm* qemu* libvirtd
- 141 apt install kvm* qemu*
- 142 top
- 143 iostat
- 144 apt install sysstat
- 145 iostat
- 146 lvs
- 147 findmnt
- 148 lsof /
- 149 lsof / | wc -l
- 150 apt install iotop
- 151 iotop
- 152 top
- 153 ps faux | less
- 154 kill -9 18953
- 155 ps faux | less
- 156 htop
- 157 vmstat 2 5
- 158 sar -A
- 159 man sar
- 160 systemctl status crond
- 161 systemctl status cron
- 162 ls /etc/cron*/
- 163 vim /etc/cron.d/sysstat
- 164 sar -A
- 165 vim /etc/cron.d/sysstat
- 166 date
- 167 sleep 20
- 168 sar -A
- 169 vim /etc/cron.d/sysstat
- 170 cd /var/log/sysstat/
- 171 ls
- 172 sar --help | less
- 173 sar -u
- 174 cd
- 175 systemctl list-units -t timer
- 176 vmstat --active
- 177 vmstat
- 178 iostat
- 179 iostat --active
- 180 iostat 2 5
- 181 cd /boot
- 182 lsof /boot
- 183 kill 21337
- 184 exit
- 185 vim stress.sh
- 186 chmod +x stress.sh
- 187 ./stress.sh &
- 188 top
- 189 ./stress.sh &
- 190 exit
- 191 ls
- 192 countdown 20
- 193 bash countdown 20
- 194 bash countdown 5
- 195 history
- 196 poweroff
- 197 bash countdown 3
- 198 mkdir /root/anna ; find / -user anna -exec cp -r {} /root/anna \;
- 199 useradd -m anna -s /bin/bash
- 200 su - anna
- 201 mkdir /root/anna ; find / -user anna -exec cp -r {} /root/anna \;
- 202 ls /root/anna/
- 203 su - anna
- 204 ls /etc/cron*/
- 205 vim /etc/crontab
- 206 systemctl status cron
- 207 ls -l /tmp/anna
- 208 crontab -e
- 209 date
- 210 journalctl
- 211 bash countdown 5
- 212 ls
- 213 countdown
- 214 echo $PATH
- 215 ./countdown
- 216 chmod +x countdown
- 217 ln countdown /usr/local/bin/
- 218 countdown 10
- 219 git clone https://github.com/ewxrjk/fingerd/
- 220 cd fingerd/
- 221 ls
- 222 cd ..
- 223 countdown 9
- 224 cd fingerd/
- 225 ls
- 226 less README.md
- 227 autoreconf -si
- 228 apt install autoconf make gcc
- 229 autoreconf -si
- 230 ls
- 231 ./configure
- 232 ls
- 233 make
- 234 make install
- 235 ls -l /usr/local/sbin/trivial.fingerd
- 236 history
- 237 cd
- 238 systemctl list-unit-files
- 239 apt-file search nfs-server.service
- 240 systemctl status nfs-server
- 241 showmount -e localhost
- 242 showmount -e 192.168.29.140
- 243 vim /etc/exports
- 244 showmount -e localhost
- 245 systemctl restart nfs-server
- 246 showmount -e localhost
- 247 vim /etc/exports
- 248 systemctl restart nfs-server
- 249 showmount -e localhost
- 250 countdown 10
- 251 history
- 252 systemctl status ntp
- 253 systemctl status ntpd
- 254 systemctl list-unit-files ntp*
- 255 apt search ntp
- 256 apt-file search ntp
- 257 apt-file search ntp.service
- 258 apt install ntp
- 259 vim /etc/ntp.conf
- 260 systemctl status ntp
- 261 ntpdate -q
- 262 apt install ntpdate
- 263 ntpdate -q
- 264 ntpdate -q pool.ubuntu.org
- 265 vim /etc/ntp.conf
- 266 ntpdate -q 0.ubuntu.pool.ntp.org
- 267 countdown 15
- 268 history
- 269 mkdir openssl
- 270 cd openssl/
- 271 openssl genrsa -des3 -out myCA.key 2048
- 272 openssl req -x509 -new -nodes -key myCA.key -sha256 -days 3650 -out myCA.pem
- 273 ls
- 274 ls -l
- 275 openssl genrsa -out tls.key 2048
- 276 openssl req -new -key tls.key -out tls.csr
- 277 ls -l
- 278 openssl x509 -req -in tls.csr -CA myCA.pem -CAkey myCA.key -CAcreateserial -out tls.crt -days 1650 -sha256
- 279 openssl x509 -in tls.crt -noout -text | less
- 280 pwd
- 281 cd /etc/pki/
- 282 ls
- 283 mkdir tls
- 284 history
- 285 cd
- 286 cd lfcs
- 287 git clone https://github.com/sandervanvugt/lfcs
- 288 cd lfcs
- 289 ls
- 290 openssl x509 -noout -subject -nameopt multiline -in tls.crt
- 291 less tls.crt
- 292 strings tls.crt
- 293 openssl x509 -noout -in tls.crt
- 294 openssl x509 -noout -in tls.crt -text
- 295 openssl x509 -noout -in tls.crt -text | less
- 296 man openssl-x509
- 297 apt install firewalld
- 298 firewall-cmd --list-all
- 299 firewall-cmd --get-services
- 300 firewall-cmd --add-service jenkins
- 301 firewall-cmd --list-all
- 302 firewall-cmd --add-service jenkins --permanent
- 303 man -k firewalld
- 304 firewall-cmd --help | grep forward
- 305 firewall-cmd --add-forward-port=port=80:proto=tcp:toport=8080
- 306 firewall-cmd --list-all
- 307 man firewalld.richlanguage
- 308 history
- 309 vim cb.sh
- 310 sudo firewall-cmd --permanent --zone=public --add-rich-rule='rule family="ipv4" source address="172.19.0.0/16" forward-port to-port="8081" to-addr="127.0.0.1" protocol="tcp" port="80"'
- 311 sudo firewall-cmd --permanent --zone=public --add-rich-rule='rule family="ipv4" forward-port to-port="8088" to-addr="127.0.0.1" protocol="tcp" port="80"'
- 312 history
- 313 docker run nginx
- 314 apt install docker.io
- 315 docker run nginx
- 316 docker run -d nginx
- 317 docker ps
- 318 docker run -d -p 8088:80 nginx
- 319 docker ps
- 320 curl localhost:8088
- 321 docker stop b3d
- 322 docker ps
- 323 man -k docker
- 324 man -k docker | wc -l
- 325 man docker-run
- 326 docker run -d mariadb
- 327 docker ps
- 328 docker ps -a
- 329 docker logs nostalgic_swartz
- 330 docker run -d -e MARIADB_ROOT_PASSWORD=password mariadb
- 331 docker ps
- 332 vim Dockerfile
- 333 docker build -t alpmap:latest .
- 334 docker images
- 335 docker run alpmap
- 336 docker ps
- 337 docker ps -a
- 338 history
- 339 docker build -t alpmap:latest:latest .
- 340 docker run -d -p 8080:80 --memory=256m --restart=unless-stopped nginx
- 341 docker top
- 342 docker top hungry_babbage
- 343 docker ps
- 344 docker inspect hungry_babbage | less
- 345 cd /proc/sys
- 346 ls
- 347 cd vm
- 348 ls
- 349 cat swappiness
- 350 echo 30 > swappiness
- 351 cat swappiness
- 352 sysctl -a | grep swapp
- 353 vim /etc/sysctl.conf
- 354 sysctl -a | grep ip_fo
- 355 cd
- 356 countdown 5
- 357 cd lfcs
- 358 ls
- 359 ./run-apache2.sh
- 360 systemctl status apache2
- 361 systemctl restart apache2
- 362 systemctl status apache2
- 363 which apache2
- 364 ls -l /usr/sbin/apache2
- 365 chmod +r /usr/sbin/apache2
- 366 chmod -x /usr/sbin/apache2
- 367 systemctl restart apache2
- 368 systemctl status apache2
- 369 journalctl -u apache2
- 370 systemctl status apache2
- 371 ls -l /usr/sbin/apache2
- 372 chmod +x /usr/sbin/apache2
- 373 systemctl restart apache2
- 374 systemctl status apache2
- 375 chmod -r /usr/sbin/apache2
- 376 systemctl restart apache2
- 377 ls -l /usr/sbin/apache2
- 378 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement