-
Notifications
You must be signed in to change notification settings - Fork 0
Linux Commands
Tarun Mahajan edited this page Nov 11, 2023
·
4 revisions
Welcome to the solutions wiki! Linux Commands
| Type | Command |
|---|---|
| Find or search file | sudo find /etc -name "my.cnf" -or -name "mysql.conf.d" |
| Update | sudo apt update |
| Check mysql status | sudo systemctl status mysql.service |
| Connect to host |
ssh hostname@XX.XX.XX.XX(replace with your host-name and IP address) |
| Grep mysql | sudo netstat -tuln | grep 3306 |
| Installing Mariadb-server (replaced with mysql-server) |
sudo apt-get install mariadb-server |
| Change file permission (ugo) u=users, g=groups, o=others |
sudo chmod ugo=rwx XXXX(XXX need to replace with your file or folder name) |
| List with details | ls -l |
| Active Internet connections | sudo netstat |
| To remove | sudo apt autoremove |
| Installing UFW | sudo apt install ufw |
| All currently available UFW application profiles |
sudo ufw app list |
| Installing phpmyadmin with required php packages |
sudo apt install phpmyadmin php-mbstring php-zip php-gd php-json php-curl |
| Enable phpmyadmin | 1. You need to add phpmyadmin to the apache configuration:sudo nano /etc/apache2/apache2.conf2. Add phpmyadmin config to the file at last Include /etc/phpmyadmin/apache.conf3. Restart Apache2 sudo service apache2 restart
|