Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@linfun log]# history
- 1 #cp -R /tmp/ .
- 2 ls
- 3 cp -R /tmp/ .
- 4 ls
- 5 ls tmp/
- 6 rm -rf tmp/
- 7 cp -R /tmp .
- 8 ls
- 9 cp /etc/hosts somedir/
- 10 cp /etc/hosts somedir
- 11 ls -l
- 12 ls
- 13 mv somedir myfile
- 14 ls -l
- 15 ls -il /etc/hosts
- 16 ln /etc/hosts hardhosts1
- 17 ln /etc/hosts hardhosts2
- 18 ls -il /etc/hosts hardhosts1 hardhosts2
- 19 echo hello >> /etc/hosts
- 20 ls -il /etc/hosts hardhosts1 hardhosts2
- 21 ln /etc etc
- 22 ln -s /etc etc
- 23 ls
- 24 ls -l
- 25 ls /boot
- 26 ln /boot/vmlinuz-5.14.0-47.el9.x86_64 kernel
- 27 ln -s /boot/vmlinuz-5.14.0-47.el9.x86_64 kernel
- 28 ls
- 29 ls -l
- 30 cd /
- 31 ls -l
- 32 countdown 1
- 33 cd
- 34 ls -l\
- 35 ls -l
- 36 ln -s hardhosts1 symhost
- 37 ls -il hardhosts1 symhost
- 38 rm hardhosts1
- 39 ls -il hardhosts1 symhost hardhosts2
- 40 cat symhost
- 41 lsblk
- 42 findmnt
- 43 find / -name "hosts"
- 44 find / -name "*hosts*"
- 45 useradd linda
- 46 find / -user linda
- 47 su - linda
- 48 find / -user linda 2 > /dev/null
- 49 find / -user linda 2> /dev/null
- 50 find / -size +1G
- 51 find / -size +1G 2>/dev/null
- 52 mkdir /root/linda; find / -user linda -exec cp {} /root/linda \;
- 53 ls linda/
- 54 tar -cvf myarchive.tar /home
- 55 ls -l
- 56 ls
- 57 tar -tvf myarchive.tar
- 58 tar -xvf myarchive.tar
- 59 ls
- 60 tree home
- 61 tar -czvf myarchive.tar.gz /home
- 62 tar -cjvf myarchive.tar.bz2 /home
- 63 tar -cJvf myarchive.tar.xz /home
- 64 ls -l myarch*
- 65 history
- 66 countdown 1
- 67 countdown 15
- 68 mkdir -p /tmp/files/pictures /tmp/files/photos /tmp/files/videos
- 69 cp /etc/[a-c]* /tmp/files/
- 70 cd /tmp/files/
- 71 ls
- 72 mv [ab]* photos/
- 73 mv c* videos/
- 74 tree
- 75 man find
- 76 find /etc -size -1000c
- 77 find /etc -size -1000c -exec cp {} pictures/ \;
- 78 ls pictures/
- 79 pwd
- 80 ln -s /var var
- 81 ls
- 82 tar -czvf homes.tgz /home/
- 83 cd ..
- 84 mkdir archive
- 85 cd archive/
- 86 tar -xvf ../files/homes.tgz
- 87 ls
- 88 tree
- 89 history
- 90 cd
- 91 which countdown
- 92 nano /bin/countdown
- 93 ls -l $(which vi) $(which vim)
- 94 vimtutor
- 95 vim myfile
- 96 ls -l $(which vi)
- 97 file /bin/vi
- 98 file /bin/vim
- 99 vim /bin/vi
- 100 ls -l /usr/libexec/vi
- 101 vim myfile
- 102 less /etc/passwd
- 103 more /etc/passwd
- 104 head /etc/passwd
- 105 head /etc/passwd -5
- 106 head -5 /etc/passwd
- 107 tail -5 /etc/passwd
- 108 tail -f /var/log/messages
- 109 cat /etc/passswd
- 110 cat /etc/passwd
- 111 tac /etc/passwd
- 112 cd /etc
- 113 grep linda *
- 114 grep linda * 2> /dev/null
- 115 ps aux
- 116 ps aux | grep ssh
- 117 ps aux | grep ssh | grep -v grep
- 118 ps aux | grep SSH
- 119 ps aux | grep -i SSH
- 120 grep RootLogin /etc/ssh/sshd_config
- 121 grep -A 5 -B 5 RootLogin /etc/ssh/sshd_config
- 122 grep -l root * 2>/dev/null
- 123 grep -lR root * 2>/dev/null
- 124 cd
- 125 vim texfile
- 126 grep '^l' texfile
- 127 grep '^a' texfile
- 128 grep 'a' texfile
- 129 grep 'a$' texfile
- 130 vim texfile
- 131 grep '^lea\b' texfile
- 132 grep '^lea' texfile
- 133 vim texfile
- 134 grep 'b.t' texfile
- 135 vim texfile
- 136 grep 'b.t' texfile
- 137 grep 'b.*t' texfile
- 138 grep 'bo+t' texfile
- 139 grep -E 'bo+t' texfile
- 140 grep -E 'bo*t' texfile
- 141 grep -E 'bo?t' texfile
- 142 grep -E 'bo\{3\}t' texfile
- 143 grep 'bo\{3\}t' texfile
- 144 history
- 145 man semanage-fcontext
- 146 countdown 13
- 147 history
- 148 cut -f 1 /etc/passwd
- 149 cut -f 1 -d : /etc/passwd
- 150 cut -f 1 -d : /etc/passwd | sort
- 151 cut -f 3 -d : /etc/passwd | sort
- 152 cut -f 3 -d : /etc/passwd | sort -n
- 153 echo hello | tr a-z A-Z
- 154 echo hello | tr [:lower:] [:upper:]
- 155 echo hello | tr a-k l-z
- 156 sed -n 5p /etc/passwd
- 157 sed -i s/bananna/apple/ texfile
- 158 grep apple texfile
- 159 cat texfile
- 160 sed -i -e '2d' texfile
- 161 cat texfile
- 162 vim a.conf
- 163 vim b.conf
- 164 vim c.conf
- 165 for i in *conf; do sed -i 's/apple/orange/g' $i; done
- 166 cat c.conf
- 167 awk -F : '{ print $4 }' /etc/passwd
- 168 awk -F '/linda/ { print $4 }' /etc/passwd
- 169 awk -F : '/linda/ { print $4 }' /etc/passwd
- 170 awk -F : '$3 > 999 { print $1 }' /etc/passwd
- 171 vim /etc/passwd
- 172 history
- 173 sort < /etc/services
- 174 sort /etc/services
- 175 ls > lsfile
- 176 cat lsfile
- 177 who > lsfile
- 178 cat lsfile
- 179 ls >> lsfile
- 180 cat lsfile
- 181 grep -R oot /proc 2>/dev/null
- 182 grep -R oot /etc &> myfile
- 183 ps aux | tee psfile | grep ssh
- 184 less psfile
- 185 history
- 186 tail /etc/shadow
- 187 echo password | passwd --stdin linda
- 188 tail /etc/shadow
- 189 history
- 190 #history -d 187
- 191 cat c.conf
- 192 sort /etc/services
- 193 grep -R oot /etc &> myfile
- 194 users
- 195 dnf install bash-completion
- 196 #apt install bash-completion
- 197 env
- 198 echo $PATH
- 199 echo $HISTSIZE
- 200 echo $HISTFILESIZE
- 201 export HISTFILESIZE=5000
- 202 vim /bin/countdown
- 203 countdown 1
- 204 countdown 12
- 205 visudo
- 206 su - linda
- 207 grep linda /etc/sudoers
- 208 dd if=/dev/zero of=/dev/null &
- 209 top
- 210 dd if=/dev/zero of=/dev/null &
- 211 ps aux | grep dd
- 212 kill -9 42800
- 213 ls -l $(which yum)
- 214 ls -l $(which dnf)
- 215 dnf repolist
- 216 dnf search nmap
- 217 dnf install nmap
- 218 dnf remove bash
- 219 dnf provides */Containerfile
- 220 dnf install buildah-tests-1
- 221 dnf install buildah-tests
- 222 groupadd sales
- 223 id linda
- 224 usermod -aG sales linda
- 225 id linda
- 226 usermod -G wheel linda
- 227 id linda
- 228 usermod -aG sales linda
- 229 id linda
- 230 su - linda
- 231 ls -l /etc/hosts
- 232 id linda
- 233 mkdir -p /data/sales
- 234 cd /data
- 235 ls -l
- 236 chown linda:sales sales
- 237 ls -l
- 238 chmod g+w sales
- 239 ls -l
- 240 chmod 770 sales
- 241 ls -l
- 242 useradd -G sales jenny
- 243 su - jenny
- 244 useradd -G sales -m lisa
- 245 cd /home/lisa/
- 246 touch rootfile
- 247 su - lisa
- 248 systemctl status NetworkManager
- 249 cd
- 250 ip addr
- 251 ifconfig
- 252 ip addr add dev ens33 10.0.0.10/24
- 253 ip a
- 254 ifconfig
- 255 man ifconfig
- 256 ip route show
- 257 ping nu.nl
- 258 lslbk
- 259 lsblk
- 260 ls /dev/sd*
- 261 lsblk
- 262 umount /dev/sdb1
- 263 lsblk
- 264 mount /dev/sdb1 /mnt
- 265 ls /mnt
- 266 findmnt
- 267 umount /mnt
- 268 journalctl
- 269 cd /var/log
- 270 ls -lrt
- 271 tail -f messages
- 272 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement