Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [student@localhost ~]$ cat countdown
- #!/bin/bash
- COUNTER=$1
- COUNTER=$(( COUNTER * 60 ))
- while true
- do
- echo $COUNTER seconds remaining in break
- sleep 1
- COUNTER=$(( COUNTER - 1 ))
- done
- [student@localhost ~]$ history
- 1 sudo systemctl isolate multi-user.target
- 2 sudo systemctl status sshd
- 3 sudo firewall-cmd --list-all
- 4 ip a
- 5 vim countdown
- 6 countdown
- 7 ./countdown
- 8 chmod +x countdown
- 9 ./countdown 12
- 10 history
- 11 ls -l countdown
- 12 echo $PATH
- 13 countdown
- 14 pwd
- 15 cp countdown /usr/local/bin
- 16 sudo cp countdown /usr/local/bin
- 17 countdown 0
- 18 history
- 19 man hier
- 20 man cp
- 21 man hier
- 22 man usr
- 23 useradd linda
- 24 sudo useradd linda
- 25 sudo passwd linda
- 26 su - linda
- 27 id
- 28 sudo -i
- 29 cat countdown
- 30 history
- ROOT COMMANDS[root@localhost ~]# history
- 1 whoami
- 2 systemctl isolate graphical.target
- 3 whoami
- 4 cd /
- 5 ls
- 6 ls -l
- 7 cd /usr
- 8 ls
- 9 cd /
- 10 ls
- 11 cd etc
- 12 ls
- 13 cat passwd
- 14 cat shadow
- 15 grep linda *
- 16 grep linda * 2>/dev/null
- 17 grep -R linda * 2>/dev/null
- 18 cd /
- 19 ls
- 20 cd boot
- 21 ls -l
- 22 lsmod
- 23 lsmod | less
- 24 lsblk
- 25 cd /
- 26 umount /dev/sdb1
- 27 umount /boot
- 28 ls /boot
- 29 cd boot
- 30 ls
- 31 lsblk
- 32 cd
- 33 mount /dev/sda1 /boot
- 34 ls /boot/
- 35 lsblk
- 36 cd /dev
- 37 ls -l
- 38 ls
- 39 cd
- 40 cd /
- 41 ls
- 42 cd /tmp
- 43 ls
- 44 cd /var
- 45 ls
- 46 cd log
- 47 ls
- 48 cd /
- 49 cd proc
- 50 ls
- 51 cat cpuinfo
- 52 cd
- 53 ls -l /etc/hosts
- 54 ls -l -a
- 55 ls -la
- 56 netstat -tulpen
- 57 ps -axf
- 58 ps -fax
- 59 echo hello > hellofile
- 60 cat hellofile
- 61 history
- 62 ls -a
- 63 env
- 64 env | grep HIST
- 65 history
- 66 history -d 61
- 67 echo $PATH
- 68 ln /usr/local/bin/countdown /usr/local/sbin/countdown
- 69 countdown 12
- 70 man password
- 71 man -k user
- 72 mandb
- 73 man -k user
- 74 man -k user | wc
- 75 man man
- 76 man -k user | grep 8
- 77 man useradd
- 78 man semanage-fcontext
- 79 useradd --help
- 80 rpm -qa | grep bash
- 81 nmcli connection add con-name democon ipv4.method manual ipv4.addresses 192.168.4.150/24 ipv4.gateway ipv4.dns 8.8.8.8
- 82 nmcli connection add con-name democon ipv4.method manual ipv4.addresses 192.168.4.150/24 ipv4.gateway 192.168.4.2 ipv4.dns 8.8.8.8
- 83 nmcli connection add con-name democon ipv4.method manual ipv4.addresses 192.168.4.150/24 ipv4.gateway 192.168.4.2 ipv4.dns 8.8.8.8 type ethernet
- 84 sleep 3600
- 85 jobs
- 86 bg
- 87 jobs
- 88 ps aux
- 89 kill 41825
- 90 jobs
- 91 dd if=/dev/zero of=/dev/null &
- 92 top
- 93 ps aux | less
- 94 id student
- 95 id linda
- 96 usermod -aG wheel linda
- 97 id linsda
- 98 id linda
- 99 usermod -aG docker linda
- 100 ls -l /etc/passwd /etc/shadow
- 101 cat /etc/shadow
- 102 ls -l /etc/passwd /etc/shadow
- 103 echo hello > /tmp/testfile
- 104 chown linda /tmp/testfile
- 105 chmod 077 /tmp/testfile
- 106 ls -l /tmp/testfile
- 107 su - linda
- 108 touch removeme
- 109 chattr +i removeme
- 110 ls -l
- 111 rm -f removeme
- 112 lsattr
- 113 chattr -i removeme
- 114 rm -f removeme
- 115 history
- 116 nmcli con show
- 117 nmcli connection up democon
- 118 nmcli con show
- 119 ip a
- 120 ip addr add dev ens33 10.0.0.10/24
- 121 ping 10.0.0.10
- 122 ip a
- 123 ifconfig
- 124 ifconfig -a
- 125 man ifconfig
- 126 which ifconfig
- 127 rpm -qf $(which ifconfig)
- 128 rpm -ql net-tools
- 129 yum delete net-tools
- 130 yum remove net-tools
- 131 ip route show
- 132 cat /etc/resolv.conf
- 133 cd /
- 134 ls -l
- 135 yum install nmap
- 136 apt-get install nmap
- 137 exit
- 138 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement