Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@linfun data]# history
- 1 exit
- 2 cd /var/log
- 3 ls
- 4 ls -l
- 5 tail messages
- 6 pwd
- 7 cd ..
- 8 pwd
- 9 tail -1 log/messages
- 10 tail -1 ./log/messages
- 11 ls
- 12 cd gopher/
- 13 pwd
- 14 ls
- 15 tail -1 ../log/messages
- 16 tail -1 ../../var/log/messages
- 17 tail -1 /var/log/messages
- 18 cp /etc/hosts .
- 19 ls
- 20 cp /etc/hosts mydir/
- 21 cp /etc/hosts mydir
- 22 ls
- 23 cat /etc/hosts mydir
- 24 cp /etc/passwd mydir
- 25 tail -1 mydir
- 26 cd
- 27 ls
- 28 ls -a
- 29 cp -a .* /tmp/rootfiles/
- 30 mkdir /tmp/rootfiles; cp -a .* /tmp/rootfiles/
- 31 mkdir /tmp/rootfiles; cp -a ~/.* /tmp/rootfiles/
- 32 rm -rf /tmp/rootfiles/*
- 33 mkdir /tmp/rootfiles; cp -a ~/.* /tmp/rootfiles/
- 34 cd /tmp/rootfiles/
- 35 ls
- 36 ls -a
- 37 cd ..
- 38 rm -rf rootfiles/
- 39 history
- 40 cd -
- 41 cd
- 42 mkdir /tmp/rootfiles; cp -a ~/.* /tmp/rootfiles/
- 43 ls /tmp/rootfiles/
- 44 ls -a
- 45 cp -R /etc /tmp/rootfiles/
- 46 ls
- 47 cp /etc/hosts .
- 48 ls -l
- 49 mv hosts whatever
- 50 ls
- 51 mv whatever /tmp/rootfiles/
- 52 ls -il /etc/hosts
- 53 ln /etc/hosts /root/hosts
- 54 ls -il /etc/hosts /root/hosts
- 55 echo hello >> /etc/hosts
- 56 ls -il /etc/hosts /root/hosts
- 57 ln -s /root/hosts /root/symhosts
- 58 ls -il /etc/hosts /root/hosts /root/symhosts
- 59 cat /root/symhosts
- 60 ln /etc/hosts /boot/hosts
- 61 rm /root/hosts
- 62 ls -il /etc/hosts /root/hosts /root/symhosts
- 63 cat /root/symhosts
- 64 cd /
- 65 ls -l
- 66 cd
- 67 history
- 68 lsblk
- 69 find / -name "hosts"
- 70 find / -name "*hosts*"
- 71 find / -user "linda"
- 72 find / -user "linda" 2>/dev/null
- 73 find / -size +2G
- 74 #mkdir /root/linda; find / -user linda -exec cp {} /root/linda \;
- 75 echo $PATH
- 76 echo \$PATH
- 77 mkdir /root/linda; find / -user linda -exec cp {} /root/linda \;
- 78 history
- 79 #find / -user linda -exec cp {} /root/linda \;
- 80 tar cvf my_archive.tar /home /etc
- 81 ls -l
- 82 tar -czvf my_archive /home /etc
- 83 ls -l
- 84 file my_archive
- 85 tar -cjvf my_archive.tar.bz2 /home /etc
- 86 ls -l
- 87 time tar -cJvf my_archive.tar.bz2 /home /etc
- 88 time tar -cjvf my_archive.tar.bz2 /home /etc
- 89 ls -l
- 90 time tar -cJvf my_archive.tar.xz /home /etc &
- 91 fg
- 92 time tar -cJvf my_archive.tar.xz /home /etc >/dev/null &
- 93 file my_archive.tar.xz
- 94 file my_archive.tar.bz2
- 95 ls -l
- 96 tar -tvf my_archive.tar
- 97 mkdir /somewhereelse
- 98 tar -xvf my_archive.tar -C /somewhereelse/
- 99 ls /somewhereelse/
- 100 echo $PATH
- 101 find / -name countdown
- 102 ln /usr/local/bin/countdown /usr/local/sbin/
- 103 countdown 12
- 104 nano
- 105 visudo
- 106 which nano
- 107 export EDITOR=/bin/nano
- 108 which nano
- 109 visudo
- 110 vimtutor
- 111 less /var/log/messages
- 112 more /var/log/messages
- 113 head /etc/passwd
- 114 head -5 /etc/passwd
- 115 head -n 5 /etc/passwd
- 116 head -n 5 /etc/passwd | tail -1
- 117 cat /etc/hosts
- 118 tac /etc/hosts
- 119 grep lisa /etc/passwd
- 120 grep 'lisa' /etc/passwd
- 121 ps aux
- 122 ps aux | grep ssh
- 123 ps aux | grep ssh | grep -v grep
- 124 cd /etc
- 125 grep root *
- 126 grep root * 2>/dev/null
- 127 grep -l root * 2>/dev/null
- 128 grep -lR root * 2>/dev/null
- 129 cd
- 130 vim myusers
- 131 grep 'anna' myusers
- 132 grep '^anna' myusers
- 133 grep 'anna$' myusers
- 134 grep '^anna$' myusers
- 135 vim myusers
- 136 grep '^lea\b' myusers
- 137 grep 'b.*t' myfile
- 138 grep 'b.*t' myusers
- 139 grep 'b.t' myusers
- 140 grep 'b*t' myusers
- 141 grep 'bo+t' myusers
- 142 grep -E 'bo+t' myusers
- 143 grep -E 'bo?t' myusers
- 144 grep 'bo\{3\)t' myusers
- 145 grep 'bo\{3\}t' myusers
- 146 grep 'bo\{2\}t' myusers
- 147 man semanage-fcontext
- 148 cat /etc/passwd
- 149 cut -d : -f 1 /etc/passwd
- 150 cut -d : -f 1 /etc/passwd | sort
- 151 cut -d : -f 3 /etc/passwd | sort
- 152 cut -d : -f 3 /etc/passwd | sort -n
- 153 echo hello
- 154 echo hello | tr [a-z] [A-Z]
- 155 echo hello | tr [:lower:] [:upper:]
- 156 echo hello | tr [a-k] [l-z]
- 157 echo hello | tr [a-l] [m-z]
- 158 sed -n 5p /etc/passwd
- 159 sed -i s/bananna/apple/g myusers
- 160 cat myusers
- 161 sed -i -e '2d' myusers
- 162 echo hello 1.conf
- 163 echo hello 2.conf
- 164 echo hello > 1.conf
- 165 echo hello > 2.conf
- 166 for i in *conf; do sed -i 's/hello/break/' $i; done
- 167 cat 1.conf
- 168 awk -F : '{ print $4 }' /etc/passwd
- 169 awk -F : '/lisa/ { print $4 }' /etc/passwd
- 170 awk -F : '$3 > 999 { print $1 }' /etc/passwd
- 171 tail -2 /etc/passwd
- 172 man awk
- 173 pinfo sed
- 174 countdown 12
- 175 ls > newout
- 176 cat newout
- 177 who > newout
- 178 cat newout
- 179 ls >> newout
- 180 cat newout
- 181 grep -R root /proc
- 182 grep -R root /proc 2>/dev/null
- 183 ps aux | tee psfile | grep ssh
- 184 cat psfile
- 185 history
- 186 ls -a
- 187 cat .bash_history
- 188 exit
- 189 echo $color
- 190 exit
- 191 echo $color
- 192 exit
- 193 history
- 194 history -d 188
- 195 history
- 196 countdown 12
- 197 grep -R root /proc 2>/dev/null
- 198 rpm -qa | grep completion
- 199 yum list installed | grep completion
- 200 nmcli connection show
- 201 nmcli connection edit ens33
- 202 ip a
- 203 nmcli connection add ipv4.addresses 192.168.29.111/24 ipv4.gateway 192.168.29.1 ipv4.dns 8.8.8.8
- 204 nmcli connection add ipv4.addresses 192.168.29.111/24 ipv4.gateway 192.168.29.1 ipv4.dns 8.8.8.8 type ethernet
- 205 echo $HISTFILE
- 206 echo $HISTFILESIZE
- 207 echo $PATH
- 208 env
- 209 echo $EDITOR
- 210 visudo
- 211 export EDITOR=/bin/nano
- 212 visudo
- 213 color=red
- 214 echo $color
- 215 bash
- 216 echo $color
- 217 export color=blue
- 218 bash
- 219 alias
- 220 unalias rm
- 221 alias
- 222 alias sander='man man'
- 223 sander
- 224 vim /etc/bashrc
- 225 sleep 100000
- 226 vim /etc/profile
- 227 cd /etc/profile.d/
- 228 ls
- 229 less lang.sh
- 230 cd
- 231 vim .bash_logout
- 232 exit
- 233 journalctl
- 234 sleep 1000
- 235 bg
- 236 jobs
- 237 sleep 2000 &
- 238 ps aux | grep 56647
- 239 jobs
- 240 fg 1
- 241 fg
- 242 sleep 2000 &
- 243 kill 56675
- 244 ps aux | grep sleep
- 245 while true; do true; done &
- 246 top
- 247 countdown 12
- 248 yum repolist
- 249 dnf repolist
- 250 dfn search nmap
- 251 dnf search nmap
- 252 dnf install nmap
- 253 dnf search emacs
- 254 dnf install emacs
- 255 emacs /etc/hosts
- 256 reset
- 257 which yum
- 258 ls -l /bin/yum
- 259 cd /home
- 260 ls -l
- 261 cd /etc
- 262 ls -l
- 263 useradd anna
- 264 useradd linda
- 265 groupadd sales
- 266 usermod -aG sales linda
- 267 usermod -aG sales anna
- 268 id anna
- 269 id linda
- 270 mkdir /data/sales
- 271 mkdir /data/sales -p
- 272 cd /data
- 273 ls -l
- 274 chgrp sales sales
- 275 chmod 770 sales
- 276 ls -l
- 277 su - linda
- 278 su - anna
- 279 ip addr
- 280 man ifconfig
- 281 ip
- 282 ip addr add dev ens33 10.0.0.10/24
- 283 ip a
- 284 ifconfig
- 285 ifconfig -a
- 286 historu
- 287 history
- 288 rpm -qf $(which ifconfig)
- 289 rpm -ql net-tools
- 290 rpm -ql net-tools | less
- 291 yum remove net-tools
- 292 cat /etc/redhat-release
- 293 cat /etc/os-release
- 294 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement