Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##### USER COMMANDS
- [student@localhost tmp]$ history
- 1 vim countdown
- 2 bash countdown 13
- 3 vim countdown
- 4 history
- 5 countdown 13
- 6 echo $PATH
- 7 pwd
- 8 cp countdown /usr/local/bin
- 9 ./countdown 13
- 10 ls -l
- 11 chmod +x countdown
- 12 ./countdown 13
- 13 history
- 14 sleep 15 ; cat countdown
- 15 sudo useradd linda
- 16 su -
- 17 sudo useradd linda
- 18 id
- 19 w
- 20 date
- 21 history
- 22 sudo useradd linda
- 23 id linda
- 24 sudo -i
- 25 sudo passwd linda
- 26 sudo su -
- 27 su -
- 28 history
- 29 history -d 28
- 30 history
- 31 sudo visudo
- 32 su - linda
- 33 sudo visudo
- 34 su - linda
- 35 visudo
- 36 sudo visudo
- 37 sudo vim /etc/sudoers.d/linda
- 38 echo $PATH
- 39 sudo cp countdown /usr/bin/
- 40 countdown 12
- 41 vimtutor
- 42 vim mynewfile
- 43 ls
- 44 ls -a
- 45 cat .bash_history
- 46 cat .bash_history | grep sudo
- 47 sudo journalctl | grep sudo
- 48 sudo ip addr show
- 49 sudo ip a
- 50 ip a
- 51 systemctl status sshd
- 52 firewall-cmd --list-all
- 53 sudo systemctl disable --now sshd
- 54 sudo systemctl status sshd
- 55 sudo systemctl enable --now sshd
- 56 sudo systemctl status sshd
- 57 cd /
- 58 ls
- 59 cd /usr
- 60 ls
- 61 touch hello
- 62 cd /tmp
- 63 touch hello
- 64 sudo -i
- 65 history
- ### ROOT COMMANDS
- [root@localhost ~]# history
- 1 visudo
- 2 id student
- 3 usermod -aG wheel student
- 4 id student
- 5 exit
- 6 journalctl
- 7 exit
- 8 cd /etc
- 9 ls
- 10 cd /proc
- 11 ls
- 12 touch hello
- 13 less cpuinfo
- 14 cd sys
- 15 ls
- 16 cd net
- 17 ls
- 18 cd ipv6
- 19 ls
- 20 cd cond
- 21 ls
- 22 cd conf
- 23 ls
- 24 cd all
- 25 ls
- 26 ip a
- 27 echo 1 > disable_ipv6
- 28 ip a
- 29 pwd
- 30 cd /dev
- 31 ls
- 32 cd
- 33 echo 1 > muyfule
- 34 cat muyfule
- 35 cd /var
- 36 ls
- 37 cd log
- 38 ls
- 39 less /etc/passwd
- 40 cd /dev
- 41 ls
- 42 ls -l
- 43 cd
- 44 man hier
- 45 countdown 13
- 46 cd /
- 47 ls -l
- 48 cd /bin
- 49 ls
- 50 pwd
- 51 ls | wc
- 52 cd /usr/bin
- 53 ls | wc
- 54 cd
- 55 ls -il /etc/hosts
- 56 cd /boot
- 57 mount | grep ext4
- 58 ls -il
- 59 debugfs /boot
- 60 debugfs /dev/sda1
- 61 cd
- 62 ls -il /etc/hosts
- 63 ln /etc/hosts myhosts
- 64 ls -il /etc/hosts myhosts
- 65 echo hello >> /etc/hosts
- 66 ls -il /etc/hosts myhosts
- 67 ln -s /etc/hosts myshosts
- 68 ls -il /etc/hosts myhosts myshosts
- 69 cat myshosts
- 70 rm /etc/hosts
- 71 cat myhosts
- 72 cat myshosts
- 73 ls -il /etc/hosts myhosts myshosts
- 74 ln myhosts /etc/hosts
- 75 history
- 76 ln /etc myetc
- 77 ln -s /etc myetc
- 78 ln /boot/vmlinuz-4.18.0-193.el8.x86_64 mykernel
- 79 ln -s /boot/vmlinuz-4.18.0-193.el8.x86_64 mykernel
- 80 history
- 81 mount
- 82 mount | grep '^/'
- 83 cd /boot
- 84 ls
- 85 cd /
- 86 umount /dev/sda1
- 87 cd boot
- 88 ls
- 89 cd ..
- 90 mount /dev/sda1 /boot
- 91 ls
- 92 cd boot
- 93 ls
- 94 mount /dev/sdb1 /mnt
- 95 man -k user
- 96 man man
- 97 man apropos
- 98 mandb
- 99 man -k user
- 100 man -k user | wc
- 101 man man
- 102 man -k user | grep 8
- 103 man -k user | grep 8 | wc
- 104 man useradd
- 105 man ls
- 106 info '(coreutils) ls invocation'
- 107 find / -name "hosts"
- 108 find / -name "*hosts*"
- 109 find / -user linda
- 110 find / -size +106M
- 111 find / -size +106M 2>/dev/null
- 112 exit
- 113 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement