Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #### root commands
- [root@localhost devices]# history
- 1 usermod -aG wheel bob
- 2 id bob
- 3 exit
- 4 echo password | passwd --stdin linda
- 5 exit
- 6 dd if=/dev/zero of=/dev/null &
- 7 top
- 8 killall dd
- 9 ps fax
- 10 ps aux | grep defunct
- 11 top
- 12 ps -ef | less
- 13 ps aux --sort pmem | less
- 14 ps aux | grep crond
- 15 kill -9 1318
- 16 lscpu
- 17 cd /sys
- 18 ls
- 19 cd bus/
- 20 ls
- 21 cd cpu/
- 22 ls
- 23 cd devices/
- 24 pwd
- 25 ls
- 26 ls cpu0/
- 27 ls cpu0/online
- 28 cat cpu0/online
- 29 echo 0 > cpu1/online
- 30 lscpu
- 31 dd if=/dev/zero of=/dev/null &
- 32 top
- 33 killall dd
- 34 htop
- 35 systemctl status NetworkManager
- 36 ip a
- 37 ip route show
- 38 ifconfig
- 39 ip a
- 40 ifconfig
- 41 man ifconfig
- 42 which ifconfig
- 43 rpm -qf $(which ifconfig)
- 44 rpm -ql net-tools
- 45 rpm -ql net-tools | grep bin
- 46 dnf remove net-tools
- 47 journalctl
- 48 lsblk
- 49 umount /dev/sdb1
- 50 mount /dev/sdb1 /mnt
- 51 ls /mnt
- 52 history
- ### user commands
- 3 ls
- 4 ls -a
- 5 ls .ssh/
- 6 cat .ssh/known_hosts
- 7 ssh 192.168.29.199
- 8 sudo useradd bob
- 9 sudo passwd bob
- 10 su - bob
- 11 history
- 12 w
- 13 exit
- 14 vi countdown
- 15 countdown
- 16 echo $PATH
- 17 ./countdown
- 18 ls -l countdown
- 19 chmod +x countdown
- 20 ./countdown 12
- 21 history
- 22 cat countdown
- 23 vi countdown
- 24 echo $(( 2 x 2 ))
- 25 echo $(( 2 * 2 ))
- 26 vi countdown
- 27 which true
- 28 vi countdown
- 29 countdown
- 30 echo $PATH
- 31 which true
- 32 pwd
- 33 ls -l countdown
- 34 ls
- 35 chmod +x countdown
- 36 ./countdown 12
- 37 history
- 38 echo $PATH
- 39 cp countdown /usr/local/bin
- 40 ls /usr/local/bin
- 41 ls -ld /usr/local/bin
- 42 whoami
- 43 sudo cp countdown /usr/local/bin
- 44 countdown 0
- 45 which countdown
- 46 history
- 47 ls -l /etc/shadow
- 48 cat /etc/shadow
- 49 sudo cat /etc/shadow
- 50 ls -l /etc/shadow
- 51 id
- 52 useradd linda
- 53 sudo useradd linda
- 54 tail /etc/passwd
- 55 sudo passwd linda
- 56 history
- 57 su - linda
- 58 sudo usermod -aG wheel linda
- 59 id linda
- 60 su - linda
- 61 history | tail -10
- 62 countdown 12
- 63 ssh [email protected]
- 64 history
- 65 exit
- 66 history
- 67 ls -a
- 68 ls
- 69 LS
- 70 uname --help
- 71 uname -a
- 72 uname --all
- 73 uname -srv
- 74 uname --srv
- 75 df --help
- 76 df -h
- 77 df --help
- 78 whoami
- 79 whoami --help
- 80 hostname
- 81 hostname --help
- 82 who am i
- 83 whoami
- 84 who --help
- 85 who mom likes
- 86 ssh [email protected]
- 87 date
- 88 date --help | less
- 89 date %N
- 90 date +%d-%m-%y
- 91 date +%d-%m-%y:%h:%m:%N
- 92 uname --help | less
- 93 uname -op
- 94 uname -p
- 95 uname -po
- 96 passwd --help | less
- 97 sudo dnf install tldr
- 98 ssh [email protected]
- 99 sudo dnf repolist
- 100 sudo dnf install epel-release
- 101 sudo dnf repolist
- 102 sudo dnf install tldr
- 103 tldr lvcreate
- 104 tldr semanage
- 105 history
- 106 touch helloworld
- 107 ls -l
- 108 touch /usr/bin/helloworld
- 109 touch helloworld
- 110 ls -l
- 111 last
- 112 sudo dnf provides */semanage
- 113 countdown 12
- 114 tldr ls
- 115 man ls
- 116 info '(coreutils) ls invocation'
- 117 pinfo '(coreutils) ls invocation'
- 118 man lvcreate
- 119 man -k user
- 120 mandb
- 121 sudo mandb
- 122 man -k user
- 123 man -k user | wc
- 124 man -k user
- 125 man man
- 126 man -k user | grep 8
- 127 cd /etc
- 128 ls
- 129 sudo vi sudoers
- 130 ls -lrt
- 131 cd /var/log
- 132 ls -lrt
- 133 tail messages
- 134 sudo tail messages
- 135 cd /etc
- 136 ls l
- 137 ls l*
- 138 ls -d l*
- 139 ls -d l?.*
- 140 ls [klm]* -d
- 141 ls [k-m]* -d
- 142 mkdir blah
- 143 pwd
- 144 cd
- 145 pwd
- 146 mkdir myfiles
- 147 cd myfiles/
- 148 ls
- 149 pwd
- 150 cd ..
- 151 cd -
- 152 cd ../..
- 153 rmdir student/myfiles/
- 154 cd
- 155 mkdir myfiles
- 156 cp /etc/[a-d]* myfiles/
- 157 ls myfiles/
- 158 rmdir myfiles
- 159 rm -rf myfiles/
- 160 sudo dnf search epel
- 161 man fhs
- 162 man hier
- 163 cd /
- 164 ls
- 165 history
- 166 sudo poweroff
- 167 ls
- 168 pwd
- 169 ls -l /var/log/messages
- 170 cd /var
- 171 ls -l log/messages
- 172 ls
- 173 cd gopher/
- 174 ls
- 175 ls -l log/messages
- 176 pwd
- 177 ls
- 178 ls -l ../log/messages
- 179 mkdir blah
- 180 sudo mkdir blah
- 181 cd blah/
- 182 ls -l ../log/messages
- 183 ls -l ../../log/messages
- 184 ls -l /var/log/messages
- 185 touch afile.txt
- 186 sudo touch afile.txt
- 187 cp afile.txt ~/myfiles
- 188 ls -l ~/myfiles
- 189 rm ~/myfiles
- 190 cp afile.txt ~/myfiles/
- 191 mkdir ~/myfiles; cp afile.txt ~/myfiles/
- 192 cd
- 193 ls
- 194 ls -a
- 195 cp -a .* myfiles/
- 196 ls -a myfiles/
- 197 man cp
- 198 echo a ; echo b
- 199 touch /var/log/blah ; echo b
- 200 touch /var/log/blah && echo b
- 201 touch /var/log/blah || echo b
- 202 echo a || echo b
- 203 ls
- 204 cd myfiles/
- 205 cp -R /tmp/ .
- 206 ls
- 207 cd tmp/
- 208 ls
- 209 cd ..
- 210 rm -rf *
- 211 cp -R /tmp .
- 212 ls
- 213 cd tmp
- 214 ls
- 215 history
- 216 cd
- 217 ls
- 218 mv helloworld hellomoon
- 219 ls
- 220 mv hellomoon /tmp/
- 221 ls /tmp/
- 222 ls /tmp
- 223 mkdir /tmp/trash/files
- 224 mkdir -p /tmp/trash/files
- 225 cp -a . /tmp/trash/files/
- 226 ls /tmp/trash/files
- 227 tree /tmp/trash/files
- 228 cp -a /tmp/ .
- 229 ls
- 230 ln /etc/hosts myhosts
- 231* ls -l /etc/hosts
- 232 sudo ln /etc/hosts myhosts
- 233 ls -il /etc/hosts myhosts
- 234 sudo vim myhosts
- 235 ls -il /etc/hosts myhosts
- 236 cat /etc/hosts
- 237 sudo /etc/hosts
- 238 sudo rm /etc/hosts
- 239 cat myhosts
- 240 ls -il /etc/hosts myhosts
- 241 sudo ln myhosts /etc/hosts
- 242 ln -s myhosts symhosts
- 243 ls -il /etc/hosts myhosts symhosts
- 244 echo hello >> myhosts
- 245 rm myhosts
- 246 ls -il /etc/hosts myhosts symhosts
- 247 cat symhosts
- 248 ln /etc/hosts symhosts
- 249 ln /etc/hosts myhosts
- 250 sudo ln /etc/hosts myhosts
- 251 history
- 252 ls -il /etc/hosts myhosts symhosts
- 253 vim symhosts
- 254 ls -l
- 255 sudo touch rootfile
- 256 ls -l rootfile
- 257 cat rootfile
- 258 echo hello >> rootfile
- 259 rm rootfile
- 260 ls -ld .
- 261 ls -l /
- 262 df -h
- 263 sudo ls -l /boot
- 264 sudo ln /boot/vmlinuz-4.18.0-348.el8.0.2.x86_64 kernel
- 265 sudo ln -s /boot/vmlinuz-4.18.0-348.el8.0.2.x86_64 kernel
- 266 ls -l
- 267 sudo find / -name "hosts"
- 268 sudo find / -name "*hosts*"
- 269 find / -name "*hosts*"
- 270 find / -name "*hosts*" 2>/dev/null
- 271 sudo find / -name linda
- 272 sudo find / -size +500M
- 273 sudo find / -size +500M 2>/dev/null
- 274 mkdir linda; sudo find / -user linda -exec cp {} linda/ \;
- 275 mkdir linda; sudo find / -user linda -exec cp -r {} linda/ \;
- 276 ls linda/
- 277 history
- 278 man find
- 279 sudo tar -cvf myfiles.tar /etc/hosts /home
- 280 ls -l
- 281 tar -tvf myfiles.tar | less
- 282 tar -xvf myfiles.tar
- 283 ls
- 284 ls etc
- 285 ls home
- 286 rm -rf etc home
- 287 sudo tar -czvf myfiles.tar.gz /etc/hosts /home
- 288 man tar
- 289 ls
- 290 sudo tar -czvf myfiles.tar.gz /etc/hosts /home --exclude=myfiles*
- 291 ls
- 292 rm myfiles.tar.gz
- 293 sudo tar -czvf myfiles.tar.gz /etc/hosts /home --exclude=myfiles*
- 294 rm myfiles*; sudo tar -czvf /tmp/myfiles.tar.gz /etc/hosts /home
- 295 time sudo tar -cjvf /tmp/myfiles.tar.bz2 /etc/hosts /home
- 296 time sudo tar -cJvf /tmp/myfiles.tar.xz /etc/hosts /home
- 297 ls -l /tmp/myfiles.tar.*
- 298 history
- 299 nano whatever
- 300 vimtutor
- 301 vim whatever
- 302 vim countdown
- 303 sudo less /var/log/messages
- 304 sudo more /var/log/messages
- 305 head /etc/passwd
- 306 head -5 /etc/passwd
- 307 head -n 5 /etc/passwd
- 308 tail -5 /etc/passwd
- 309 tail -5 /etc/passwd | head -1
- 310 sudo tail -f /var/log/messages
- 311 cat countdown
- 312 tac countdown
- 313 cd /etc
- 314 sudo grep linda *
- 315 sudo grep linda * 2>/dev/null
- 316 sudo grep -l linda * 2>/dev/null
- 317 sudo grep -li linda * 2>/dev/null
- 318 sudo grep -li LINDA * 2>/dev/null
- 319 ps aux
- 320 ps aux | wc
- 321 ps aux | grep ssh
- 322 ps aux | grep ssh | grep -v grep
- 323 sudo grep wheel /etc/sudoers
- 324 sudo grep -A 5 -B 5 wheel /etc/sudoers
- 325 grep linda *
- 326 grep linda * 2>/dev/null
- 327 grep -R linda * 2>/dev/null
- 328 grep -R root * 2>/dev/null
- 329 sudo grep -C 5 wheel /etc/sudoers
- 330 man 7 regex
- 331 tldr regex
- 332 cd
- 333 vim users.txt
- 334 grep 'l' users.txt
- 335 grep '^l' users.txt
- 336 grep '^anna' users.txt
- 337 echo anna
- 338 echo anna >> users.txt
- 339 grep '^anna' users.txt
- 340 grep 'anna$' users.txt
- 341 grep '^anna\b' users.txt
- 342 grep '^anna ' users.txt
- 343 grep 'b.t' users.txt
- 344 grep 'b.*t' users.txt
- 345 grep 'bt' users.txt
- 346 echo bt >> users.txt
- 347 grep 'b.*t' users.txt
- 348 grep 'b.+t' users.txt
- 349 grep -E 'b.+t' users.txt
- 350 grep -E 'b.?t' users.txt
- 351 grep 'bo\{12\}t' users.txt
- 352 grep 'bo\{9\}t' users.txt
- 353 grep '^$' users.txt
- 354 grep '^.$' users.txt
- 355 echo x >> users.txt
- 356 grep '^.$' users.txt
- 357 man semanage-fcontext
- 358 sed -n 5p /etc/passwd
- 359 sed -i 's/anna/bananna/g' users.txt
- 360 cat users.txt
- 361 sed -i -e '2d' users.txt
- 362 cat users.txt
- 363 echo hello > myfile{1..100}.txt
- 364 touch myfile{1..100}.txt
- 365 ls
- 366 for i in myfile*; do echo $i; done
- 367 for i in myfile*; do echo hello > $i; done
- 368 rm -rf myfile
- 369 rm -rf myfiles
- 370 ls
- 371 for i in myfile*; do echo 'hello > $i'; done
- 372 for i in myfile*; do echo hello > $i; done
- 373 cat myfile1
- 374 cat myfile1.txt
- 375 cat myfile18.txt
- 376 history
- 377 for i in myfile*; do sed -i 's/hello/goedemiddag/g' $i; done
- 378 cat myfile66.txt
- 379 cat /etc/passwd
- 380 awk -F : '{ print $4 }' /etc/passwd
- 381 awk -F : '/student/ { print $4 }' /etc/passwd
- 382 awk -F : '$3 > 999 { print $1 }' /etc/passwd
- 383 history
- 384 cut -d : -f 1 /etc/passwd
- 385 cut -d : -f 1 /etc/passwd | sort
- 386 cut -d : -f 3 /etc/passwd | sort
- 387 cut -d : -f 3 /etc/passwd | sort -n
- 388 cut -d : -f 1 /etc/passwd | sort -n | tr [a-z] [A-Z]
- 389 cut -d : -f 1 /etc/passwd | sort -n | tr [:lower:] [:upper:]
- 390 echo $SHELL
- 391 chsh --help
- 392 chsh -l
- 393 #chsh /bin/bash
- 394 sort < /etc/services
- 395 sort /etc/services
- 396 ls
- 397 ls > outfile.txt
- 398 cat outfile.txt
- 399 who > outfile.txt
- 400 cat outfile.txt
- 401 who >> outfile.txt
- 402 grep -R root /proc
- 403 grep -R root /etc
- 404 grep -R root /etc 2> /dev/null
- 405 grep -R root /etc 2> errors.txt
- 406 ls -l errors.txt
- 407 less errors.txt
- 408 grep -R root /etc &> all.txt
- 409 ls -l *txt
- 410 ls -l [ae]*txt
- 411 ps aux | less
- 412 ps aux | grep ssh
- 413 sudo kill 1120
- 414 ps aux | grep ssh
- 415 ps aux | tee psfile | grep ssh
- 416 cat psfile
- 417 ps aux | grep ssh
- 418 sudo systemctl status sshd
- 419 sudo systemctl start sshd
- 420 ps aux | grep ssh
- 421 sudo -i
- 422 sudo 'echo password | passwd --stdin linda'
- 423 sudo bash -c 'echo password | passwd --stdin linda'
- 424 history
- 425 history -d 424
- 426 history
- 427 history -d 422
- 428 sudo dnf install bash-completion
- 429 sudo nmcli connection modify ens160 ipv4.address 10.0.0.10/24
- 430 sudo nmtui
- 431 ip a
- 432 env
- 433 echo $USER
- 434 echo $SHELL
- 435 echo $PATH
- 436 alias
- 437 alias help='echo what do you want'
- 438 help
- 439 unalias help
- 440 help
- 441 sleep 3600
- 442 sudo vim /etc/profile
- 443 sudo vim /etc/bashrc
- 444 sudo ls /etc/profile.d/
- 445 ls -a
- 446 vim .bash_profile
- 447 vim .bashrc
- 448 history
- 449 sleep 3600
- 450 bg
- 451 jobs
- 452 sleep 1800 &
- 453 jobs
- 454 fg 2
- 455 fg
- 456 sudo dd if=/dev/zero of=/dev/null &
- 457 jobs
- 458 sudo -i
- 459 history
Advertisement
Add Comment
Please, Sign In to add comment