- Check whether Screen is installed
which screen
- If Screen is not installed on your system, run the following command:
- If your system uses yum, you can install Screen with the command below
yum install screen
- If your system uses apt, you can install Screen with the command below
apt install screen
- If your system uses yum, you can install Screen with the command below
- To run a Screen session, enter the screen command.
screen
- If your session disconnects for some reason, log back in to your server and run the screen -r command.
screen -r
This will reconnect you to your Screen session.
How to check your Linux version?
Easy ways to view the distribution and version number of Linux OS.
Distribution version number
cat /etc/*release
For OS release details
cat /etc/os-release
For name and version number of your current distribution
lsb_release -d
To show additional information of current distribution version
lsb_release -a
Linux kernel version number
To shows the version of the Linux kernel that you’re currently using.
uname -r
For more information
uname -a
View everything at once
You have to install Inxi for this
apt-get -y install inxi
Once installed, you can view hardware, host, Linux kernel, desktop environment, and distribution with this simple command:
Inxi -Sz
Move files in the Linux terminal
The mv command moves file(s) from one location to another.
To move a file from one directory to another with mv, remember the syntax below
mv <source> <destination>
For example,
mv example.zip /home
Check whether, it moves example.zip
ls /home
Rename the file as you move it
mv example.zip /home/newexample.zip
Rename a file without moving it to another location
mv example.zip renameexample.zip
Moving a directory
mv exampledir /home
Moving a file safely
mv --interactive example.zip /home
This will ask
mv: overwrite '/home/example.zip'?
If you do not want to manually intervene, use –no-clobber or -n instead.
mv --no-clobber example.zip /home
iRedmail/nginx adding website to home server
Two easy steps
- Just add a new config with the full “server {}” block in /etc/nginx/sites-available/
For example, /etc/nginx/sites-available/gene.jinabs.com.confserver { listen 443; listen [::]:443; root /var/www/gene.jinabs.com/html; index index.html index.htm index.nginx-debian.html; server_name gene.jinabs.com www.gene.jinabs.com; location / { try_files $uri $uri/ =404; } }
- Create symbol link for gene.jinabs.com and restart/reload Nginx as follows.
ln -s /etc/nginx/sites-available/gene.jinabs.com.conf /etc/nginx/sites-enabled/ nginx -t systemctl restart nginx
That’s it.
MariaDB Upgrade to the new version | Plesk – CentOS 7 / RHEL 7
- For CWP and CentOS 7
MariaDB Upgrade to the new version | CWP
By default, CentOS 7 is shipped with MariaDB 5.5. MariaDB 10.x version is a drop-in replacement for MySQL 5.5-5.7.
Automatic method
Note: The script below is applicable only for upgrading default MariaDB 5.5 to the MariaDB 10.5 version, for other cases apply the steps from the Manual Method section. Make sure Obsidian 18.0.30 or later is installed on the server.
- Download the attached script and provide it with executable rights:
wget https://raw.githubusercontent.com/plesk/kb-scripts/master/c7-mariadb-10-5-upgrade/c7-mariadb-10-5-upgrade.sh && chmod +x c7-mariadb-10-5-upgrade.sh
- Execute the script via CLI:
./c7-mariadb-10-5-upgrade.sh
- « Previous Page
- 1
- …
- 6
- 7
- 8
- 9
- 10
- …
- 43
- Next Page »