You are on page 1of 5

cupcakeadmin@srvu-web1:~$ history

1 central123
2 sudo -I
3 sudo -i
4 uname -r
5 su root
6 timedate
7 su root
8 exit
9 sudo -i
10 sudo -I
11 su root
12 exit
13 su root
14 ls
15 cd /home/cupcakeadmin/public_html/
16 ls
17 nano index.html
18 su root
19 history
cupcakeadmin@srvu-web1:~$ su root
Password:
root@srvu-web1:/home/cupcakeadmin# history
1 adduser currito
2 init 0
3 adduser cupcakeadmin
4 addgroup
5 addgroup --help
6 addgroup cupcakeadmin root
7 exit
8 timedate
9 timedatectl
10 timedatectl set-timezone Europe/Madrid
11 timedatectl
12 apt-get install smbclient cifs-utils
13 deluser currito
14 ls
15 cd /home
16 ls
17 deluser currito
18 exit
19 sudo -I
20 cd /
21 addgroup cupcakeadmin sudo
22 delgroup cupcakeadmin root
23 su cupcakeadmin
24 exit
25 IP ADDR
26 ip addr
27 deluser currito
28 cd /home
29 ls
30 rm currito
31 rm -Rf currito
32 ls
33 nano/etc/hostname
34 nano/etc/hostsname
35 ls
36 cd /
37 ls
38 cd etc
39 ls
40 cd hostname
41 nano
42 nano hostname
43 nano hosts
44 hostname
45 nano hostname
46 nano hosts
47 init 3
48 init 6
49 init 6
50 nano /etc/hosts
51 nano /etc/hostsname
52 nano /etc/hostname
53 init 6
54 nano /etc/hostname
55 apt-get install apache2
56 cd /etc/apache2/conf-available/
57 ls
58 cd /etc/apache2/
59 ls
60 touch /etc/apache2/conf-available/servername.conf
61 nano /etc/apache2/conf-available/servername.conf
62 systemctl restar apache2
63 systemctl restart apache2
64 systemctl status apache2
65 cd /home
66 ls
67 cd cupcakeadmin/
68 find -d download
69 cd /etc
70 ls
71 cd /home/cupcakeadmin/
72 ls -lh
73 ls -lsa
74 mkdir download
75 sbmclient -L //40.1.1.10
76 smbclient
77 smbclient -L //40.1.1.10
78 mount -t cifs -o username=central //40.1.1.10/servertriz /mnt
79 cd /mnt
80 ls
81 cd lab_n1/
82 ls
83 cp cupscake.tar.xz /home/cupcakeadmin/download/
84 cp cupscake.tar.xz /home/cupcakeadmin/download/cupscake.tar.xz
85 cp /cupscake.tar.xz /home/cupcakeadmin/download/cupscake.tar.xz
86 cp -f cupscake.tar.xz /home/cupcakeadmin/download/cupscake.tar.xz
87 ls
88 ls -lsa
89 cp "caso-practico cupscake.tar.xz"
/home/cupcakeadmin/download/cupscake.tar.xz
90 cd /home/cupcakeadmin/download/
91 ls
92 cd ..
93 mkdir public_html
94 cp /var/www/html/index.html /home/usuario2/public_html/
95 cp /var/www/html/index.html /home/cupcakeadmin/public_html/
96 cd download/
97 ls
98 tar -cJF cupscake.tar.xz /home//cupcakeadmin/
99 apt-get install gzip
100 apt-get purge gzip
101 apt-get purge gzip
102 ls
103 mv cupscake.tar.xz cupscake.tar.gz
104 ls
105 descomprimir tar -xvf /home/cupcakeadmin/public_html/
106 tar -xvf /home/cupcakeadmin/public_html/
107 ls
108 tar -xvf
109 tar -xvf cupscake.tar.gz
110 ls
111 cd "caso-practico cupscake"
112 ls
113 cp index.html /home/cupcakeadmin/public_html/
114 cp -Rf images/ /home/cupcakeadmin/public_html/
115 cp -Rf css/ /home/cupcakeadmin/public_html/
116 cd /home/cupcakeadmin/public_html/
117 ls
118 cd images/
119 ls
120 cd..
121 cd..
122 cd..
123 cd /
124 ls -lsa /etc/apache2/sites-available/
125 cp -lsa /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-
available/cupcake-EAP.conf
126 cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-
available/cupcake-EAP.conf
127 nano /etc/apache2/sites-available/cupcake-EAP.conf
128 apt-get install curl
129 apt-get update
130 apt-get install curl
131 a2ensite cupcake-EAP.conf
132 systemctl restart apache2
133 journalctl -xe
134 nano /etc/apache2/sites-available/cupcake-EAP.conf
135 systemctl restart apache2
136 nano /etc/hosts
137 ip addr
138 nano /etc/hosts
139 apachectl -S
140 a2dissite 000-default.conf
141 systemctl restart apache2
142 curl -I www.cupcake-eap.com
143 ls
144 cd ..
145 ls -lsa /home/cupcakeadmin/
146 ls -lsa /home/cupcakeadmin/public_html/
147 chown -R cupcakeadmin:cupcakeadmin /home/cupcakeadmin/public_html/
148 ls -lsa /home/cupcakeadmin/public_html/
149 chown -R root:root /home/cupcakeadmin/public_html
150 ls
151 ls -lsa /home/cupcakeadmin/public_html/
152 ls -lsa /home/cupcakeadmin/public_html
153 ls -lsa /home/cupcakeadmin/
154 exit
155 exit
156 a2ensite 000-default.conf
157 systemctl restart apache2
158 history
159 ls -lsa /home/cupcakeadmin/
160 ls -lsa /home/cupcakeadmin/public_html/
161 chown -R cupcakeadmin:cupcakeadmin /home/cupcakeadmin/public_html/
162 ls -lsa /home/cupcakeadmin/public_html/
163 cd /
164 cat /etc/apache2/ports.conf
165 adduser mufin
166 ls
167 cp /etc/apache2/sites-available/cupcake-EAP.conf /etc/apache2/sites-
available/mafin.conf
168 ls/home/
169 ls /home
170 cd mufin
171 ls
172 cd mufin
173 cd home
174 ls -lsa
175 cd mufin/
176 mkdir public_html
177 cd /
178 cp -rf /home/cupcakeadmin/public_html/ /home/mufin/public_html/
179 ls -lsa /home/mufin/public_html/
180 rm -Rf/home/mufin/public_html/
181 rm -Rf /home/mufin/public_html/
182 ls
183 cd home
184 cd cupcakeadmin/
185 ls
186 cd public_html/
187 ls
188 cd /home/mufin/
189 ls
190 mkdir public_html
191 ls
192 cd ..
193 cd cupcakeadmin/
194 cd public_html/
195 cp -rf *.* /home/mufin/public_html/
196 cd /home/mufin/public_html/
197 ls
198 ls
199 cd ..
200 cd ..
201 cd cupcakeadmin/public_html/
202 ls
203 cp -rf css /home/mufin/public_html/
204 cp -rf images /home/mufin/public_html/
205 cd /home/
206 cd mufin/public_html/
207 ls
208 nano /etc/apache2/sites-available/mafin.conf
209 a2ensites mafin.conf
210 a2ensite mafin.conf
211 systemctl restart apache2
212 apachectl -S
213 nano /etc/hosts
214 curl -I www.mufin-eap.com:3000
215 nano /etc/apache2/ports.conf
216 a2dissite mafin.conf
217 systemctl restart apache2
218 a2ensite mafin.conf
219 systemctl restart apache2
220 curl -I www.mufin-eap.com:3000
221 init 0
222 history

You might also like