Sei sulla pagina 1di 4

1- Kill -l

2- Lsblk
3-
4- Systemctl status
5- Shutdown –r +5 –k El sistema se reiniciará en 5 minutos
6- Catman
7- Verdadera
8-
9- Verdadera
10- Touch archivo.sh
Vim archivo.sh
#!/bin/bash
#apaga la maquina
Shutdown now

Crontab –e
*17*** /opt/archivo.sh
11- Useradd afcld
Passwd afcld
12- Groupadd clase |grep clase /etc/group
13- Useradd linus && gpasswd –a linus clase usermod –dm /opt/clase linus
14- Gpasswd –a afcld clase
15- Id afcld
16- Useradd bolgeses && gpasswd -a bolgeses clase
Usermod -e bolgeses 2019-04-20
chage -l
17- Mkdir data && Chgroup golgeses data
18- Chmod 770 data
19- Ps aux |grep selinux
Kill -9 16593
Ps aux |grep iptables
Kill -19 16603
20- Systemctl disable iptables
21- Useradd meidy
Useradd valentin
Useradd elvyn
Useradd omar
passwd meidy
passwd valentin
passwd elvyn
passwd omar
usermod –g curry meidy
usermod –g curry valentin
usermod –u 6401 elvyn
usermod –L omar
22- Sudoers
afcld ALL=(ALL) ALL
23- Su – afcld
tar cvf backup.tar /etc
tar czvf backup.tar.gz backup.tar
tar cjvf backup.bz2 /etc/
tar cJvf backup.bz2 backup.tar
24- Userdel –r afcld
25- Chage –l bolgese
26- Vi /etc/securetty
Entrar modo de edición y comentar las tty
#tty1
#tty2
27-
28- Nos da el número de line del log del proceso kernel
29- Tar cvf backup.tar /etc/yum.repos.d /home/bolgeses
30- Yum install –y epel-release
31- Yum repolist
32- Yum install –y nmap
Yum install –y emacs
Yum install –y filezilla
Yum install –y htop
Yum install –y vim
Yum install –y gedit
33- Yumdownloader charmap
Rpm –i charmap
34- scp exam@192.168.0.30:/opt/exam/backups exam
password: exam2017
35- watch free –m
36- hosname Almeida.acl
37- #!/bin/bash
#muestra la hora de trabajo y el espacio en Disco
sleep 1
df -h
sleep 3
uptime
38-
39- 761 rwx-rw-x
231 w-wx-x
754 rwx-rx-r
651 rw-rx-x
2457 r-rx-rwx
4765 rwx-rw-rx
657 rw-rx-rwx
651 rw-rx-x
40- En la line de arranque le damos a la letra e
Luego bajamos hasta el finarl de la línea de kernel y digitamos init=/bin/bash
Luego se preciona contro x para arrancar el sistema al final cuando cargue aparecerá
un terminal. Systemctl set-default runlevel3.target
41- Primero hacer el sh
#!/bin/bash
#obtiene el size del archivo messages
du –h /var/log/messages>>/tmp/messages.size
Crontab –e
*/59-21**1,2,3,4,5 /opt/messagessize.sh
42- dd if =/dev/zero of =/swap_file bs=1024 count=1048576
chmod 600 /swap_file
mkswap /swap_file
swapon /swap_file
vim /etc/fstab
/swap_file swap swap defaults 0 0
43- cetos Linux 7 (core), kernel 3.10.0-957.5.1.el.7.x86_64
44- enp0s3
RX packets 17068 bytes 1986657
Fe80: :e328:2ble:c74c:dca5
192.168.1.25
255.255.255.0
192.168.1.1
45- ifconfig enp0s3 192.168.1.24
46- ifconfig enp0s3 192.168.100.71 netmask 255.255.255.0
47- ping –c 5 192.168.0.12
48- cat /etc/resolv.conf |grep nameserver
49- Lista las conexiones establecidas y tablas de rutas
50- Host www.acl.edu.do
51- Mxl.ipnz74ifvlrm8q65.do.
Ipnz74i5v1rm8q65.dom
52-
53-
54- Systemctl status httpd
Systemctl status sshd
Systemctl status vsftpd
Systemctl start httpd
Systemctl stop httpd
Systemctl start sshd
Systemctl stop sshd
Systemctl start vsftpd
Systemctl stop vsftpd

Potrebbero piacerti anche