Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ####ubuntu enable ssh
- student@student-virtual-machine:~$ history
- 1 ip addr
- 2 sudo apt install openssh-server
- 3 sudo systemctl status sshd
- 4 history
- 5 exit
- 6 history
- ####centos
- [student@l3h /]$ history
- 1 vim countdown
- 2 countdown 12
- 3 ls
- 4 echo $PATH
- 5 ./countdown 12
- 6 ls -l
- 7 chmod +x countdown
- 8 ls -l
- 9 vimtutor
- 10 ./countdown 12
- 11 ls
- 12 file countdown
- 13 mv countdown countdown.sh
- 14 ls
- 15 PATH=$PATH:.
- 16 ls
- 17 echo $PATH
- 18 cd /
- 19 ls
- 20 cd /usr
- 21 ls
- 22 cd local/
- 23 pwd
- 24 ls
- 25 cd
- 26 pwd
- 27 ls
- 28 cp countdown.sh /usr/local/bin/countdown
- 29 ls -ld .
- 30 ls -ld /usr/local/bin
- 31 whoami
- 32 id
- 33 sudo cp countdown.sh /usr/local/bin/countdown
- 34 echo $PATH
- 35 countdown 0
- 36 history
- 37 chvt 3
- 38 sudo chvt 3
- 39 useradd linda
- 40 sudo useradd linda
- 41 sudo passwd linda
- 42 sudo chvt 3
- 43 su - linda
- 44 id
- 45 id linda
- 46 sudo usermod -aG wheel linda
- 47 id linda
- 48 su - linda
- 49 su -
- 50 sudo -i
- 51 sudo su
- 52 history
- 53 sudo -i
- 54 vim hello
- 55 nano hello
- 56 systemctl status sshd
- 57 systemctl edit sshd
- 58 sudo systemctl edit sshd
- 59 export EDITOR=/usr/bin/vim
- 60 sudo systemctl edit sshd
- 61 sudo -i
- 62 sudo vim /etc/profile.d/editor.sh
- 63 echo helo
- 64 echo hello > hellofile
- 65 cat hellofile
- 66 ls -a
- 67 who > hellofile
- 68 cat hello
- 69 cat hellofile
- 70 echo hello >> hellofile
- 71 history
- 72 countdown 12
- 73 sudo dnf install git
- 74 git clone https://github.com/sandervanvugt/linuxin3hours
- 75 cd linuxin3hours/
- 76 ls
- 77 cd
- 78 man hier
- 79 cd /
- 80 ls
- 81 cd /home
- 82 ls -l
- 83 cd $USER
- 84 pwd
- 85 touch afile
- 86 cd /tmo
- 87 cd /tmp
- 88 ls
- 89 cd /etc
- 90 ls
- 91 cat motd
- 92 cat passwd
- 93 cat shadow
- 94 ls -l shadow
- 95 sudo tail -1 /etc/shadow
- 96 man -k user
- 97 man -k sander
- 98 sudo mandb
- 99 man -k user
- 100 man -k user | wc
- 101 man -k user
- 102 man man
- 103 man -k user
- 104 man -k user | grep 8
- 105 man -k user | grep 8 | grep create
- 106 ssh student@192.168.29.28
- 107 find / -name "hier*"
- 108 find / -name "hier*" 2>/dev/null
- 109 rpm -qf /usr/share/man/man7/hier.7.gz
- 110 sudo ps aux
- 111 sudo ps aux | grep ssh
- 112 sudo top
- 113 sudo systemctl status sshd
- 114 sudo systemctl stop sshd
- 115 sudo systemctl status sshd
- 116 sudo systemctl start sshd
- 117 sudo firewall-cmd --list-all
- 118 sudo firewall-cmd --get-services
- 119 sudo firewall-cmd --add-service http
- 120 sudo lsblk
- 121 sudo umount /dev/sdb1
- 122 sudo mount /dev/sdb1 /mnt
- 123 cd /mnt
- 124 ls
- 125 cd /
- 126 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement