Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@localhost ~]# history
- 1 dnf install nmap -y
- 2 vim countdown.sh
- 3 chmod +x countdown.sh
- 4 ./countdown.sh 19
- 5 tar zcvf /root/archive.tgz /etc
- 6 ls -l
- 7 tar tvf archive.tgz
- 8 tar zcvf /root/archive.tgz -C /etc
- 9 tar zcvf /root/archive.tgz -C /etc .
- 10 tar tvf archive.tgz
- 11 cd /etc
- 12 tar -cvzf /root/archive.tgz .
- 13 history
- 14 cut -d : -f 1 /etc/passwd
- 15 cat /etc/passwd
- 16 cut -d : -f 1 /etc/passwd | sort
- 17 cut -d : -f 1 /etc/passwd | sort | grep -v '^$'
- 18 cut -d : -f 1 /etc/passwd | sort | grep -v '^$' >/var/tmp/users
- 19 cat /var/tmp/users
- 20 man cut
- 21 man sort
- 22 sort -b /etc/passwd
- 23 sort -b /etc/passwd | cut -d : -f 1
- 24 cd
- 25 useradd bob
- 26 mkdir userfiles
- 27 find / -user "bob" -type f
- 28 find / -user "bob" -type f -exec cp {} /root/userfiles \; 2>/dev/null
- 29 ls -al /root/userfiles/
- 30 history
- 31 ls -l $(which yum) $(which dnf)
- 32 DNF
- 33 dnf install nmap
- 34 df -h
- 35 dd if=/dev/sr0 of=/rhel9.iso bs=1M
- 36 mkdir /repo
- 37 vim /etc/fstab
- 38 mount -a
- 39 ls /repo
- 40 cd /repo
- 41 ls BaseOS/
- 42 ls BaseOS/Packages/
- 43 cd
- 44 history
- 45 lsblk
- 46 dnf config-manager --add-repo="file:///repo/AppStream"
- 47 dnf config-manager --add-repo="file:///repo/BaseOS"
- 48 dnf repolist
- 49 dnf search nmap
- 50 dnf install nmap
- 51 cd /etc/yum.repos.d/
- 52 ls
- 53 vim repo_BaseOS.repo
- 54 vim repo_AppStream.repo
- 55 history
- 56 dnf install nmap
- 57 history
- 58 tail -1 /etc/fstab
- 59 cd /repo/AppStream/Packages/
- 60 ls
- 61 cd
- 62 dnf install -y git
- 63 git clone https://github.com/sandervanvugt/rhcsa9
- 64 cd rhcsa9/
- 65 ls
- 66 cd labs/
- 67 ls
- 68 ./live-lab1-grade.sh
- 69 vim live-lab1-grade.sh
- 70 history
- 71 dnf groups list
- 72 dnf groups install "Development Tools"
- 73 history
- 74 cd
- 75 ./countdown.sh 13
- 76 history
- 77 lsblk
- 78 exit
- 79 visudo
- 80 tail -1 /etc/passwd
- 81 id bob
- 82 su - bob
- 83 passwd bob
- 84 su - bob
- 85 journalctl
- 86 usermod -aG wheel bob
- 87 su - bob
- 88 visudo
- 89 useradd linda
- 90 echo password | passwd --stdin linda
- 91 su - linda
- 92 visudo
- 93 su - linda
- 94 history
- 95 #find / -name ".bash_history" -type f -exec rm -f {} \;
- 96 dnf repolist
- 97 ps aux | less
- 98 less /etc/passwd
- 99 usermod --help
- 100 vim /etc/login.defs
- 101 cd /etc/skel
- 102 ls
- 103 ls -a
- 104 touch hello
- 105 ls -a
- 106 useradd sander
- 107 ls -al /home/sander
- 108 cd
- 109 less /etc/passwd
- 110 id bob
- 111 grep bob /etc/passwd
- 112 grep bob /etc/group
- 113 lid wheel
- 114 lid -g wheel
- 115 useradd -g wheel baduser
- 116 id baduser
- 117 grep wheel /etc/group
- 118 grep baduser /etc/passwd
- 119 lid -g wheel
- 120 chage bob
- 121 history
- 122 cd rhcsa9/labs/
- 123 ls
- 124 vim live-lab2-grade.sh
- 125 ./live-lab2-grade.sh
- 126 vim /etc/login.defs
- 127 touch /etc/skel/newfile
- 128 groupadd profs
- 129 groupadd students
- 130 useradd -G students linda
- 131 useradd -G students lisa
- 132 usermod -aG students linda
- 133 useradd -G profs anna
- 134 useradd -G profs anouk
- 135 history | grep git
- 136 ./live-lab2-grade.sh
- 137 ls -l
- 138 cd /home/linda
- 139 echo linda > lindafile
- 140 ls -l lindafile
- 141 chmod u-rw
- 142 chmod u-rw linda
- 143 chmod u-rw lindafile
- 144 chown linda lindafile
- 145 ls -l lindafile
- 146 su - linda
- 147 cd
- 148 cd /etc/skel
- 149 mkdir tryme
- 150 chmod 2770 tryme
- 151 useradd pablo
- 152 ls -l pabl
- 153 ls -l /home/pablo
- 154 mkdir -p /data/profs /data/students
- 155 cd /data
- 156 ls -l
- 157 id
- 158 chown :profs profs
- 159 ls -l
- 160 chgrp students students
- 161 ls -l
- 162 chmod 770 students
- 163 ls -l
- 164 chmod g+w,o-rx profs
- 165 ls -l
- 166 su - anna
- 167 chmod g+s /data/profs
- 168 ls -ld /data/profs
- 169 su - anna
- 170 su - anouk
- 171 chmod +t /data/profs
- 172 su - anouk
- 173 chmod g-x,o+x /data/profs
- 174 ls -ld /data/profs
- 175 chmod g+x,o-x /data/profs
- 176 cd /profs
- 177 cd profs
- 178 mkdir one two three
- 179 for i in one two three; do touch $i/four; done
- 180 for i in one two three; do touch $i/five; done
- 181 tree
- 182 ls -lR
- 183 chmod -R g+s .
- 184 ls -lR
- 185 chmod -R g-s .
- 186 find . -type d
- 187 find . -type d -exec chmod g+s {} \;
- 188 ls -lR
- 189 history
- 190 who; find . -exec ls -l {} \;
- 191 umask
- 192 touch '-'
- 193 ls -l
- 194 echo hello > \-
- 195 ls
- 196 rm \-
- 197 rm -- \-
- 198 cd
- 199 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement