You are on page 1of 7

# find -name arquivo.

php
Comandos CentOS 7 | SAN https://docs.saninternet.com/comandos-centos-7

# find /home/usuario -name *.php

# grep palavra arquivo.php

# ps aux

# free -m

# df -h

# ls -la

# cp original.txt copia.txt

# cp -R /home/original /home/copia

2 of 7 07/06/2023, 14:56
Comandos CentOS 7 | SAN https://docs.saninternet.com/comandos-centos-7

# chmod 777 arquivo.php

# yum -y install net-tools

# ip addr show

# ip addr add 10.1.1.21/8 dev ens160

# ip route add default via 10.1.1.1 dev ens160

# echo “nameserver 8.8.8.8″ >> /etc/resolv.conf

3 of 7 07/06/2023, 14:56
Comandos CentOS 7 | SAN https://docs.saninternet.com/comandos-centos-7

# systemctl list-unit-files -t service

# systemctl stop postfix

# systemctl disable postfix

# systemctl enable postfix

# systemctl start postfix

# timedatectl set-timezone America/Sao_Paulo

# timedatectl

4 of 7 07/06/2023, 14:56
Comandos CentOS 7 | SAN https://docs.saninternet.com/comandos-centos-7

# rpm -ivh http://repo.mysql.com/mysql-community-


release-el7-5.noarch.rpm

# yum install mysql-server

# systemctl start mysqld

# mysql -u root

mysql> use mysql;


mysql> update mysql.user set
Password=PASSWORD('suasenha') where user='root';
mysql> flush privileges;
mysql> quit

5 of 7 07/06/2023, 14:56

You might also like