×

Reboot Linux Mint 20 - How to do it ?

This article covers methods to reboot the Linux Mint. If you want to shut down your Linux Mint instead of rebooting, Learn How to Shutdown Linux Mint 20 .

Rebooting is the same as restarting, and close enough to powering off and then turning off your device. The purpose is to close and reopen the operating system. Resetting, on the other hand, means taking the device back to the state in which it left the factory. Resetting wipes all your personal data.


The systemctl command accepts, among many other options, halt (halts disk activity but does not cut power) reboot (halts disk activity and sends a reset signal to the motherboard) and poweroff (halts disk acitivity, and then cut power). These commands are mostly equivalent to starting the target file of the same name.


To reboot Linux:

1. To reboot the Linux system from a terminal session, sign in or "su"/"sudo" to the "root" account.

2. Then type " sudo reboot " to reboot the box.

3. Wait for some time and the Linux server will reboot itself.


To shut down Linux Mint:

Execute the following command:

sudo chmod u+s /sbin/shutdown

You will be prompted for your root password. After that, you're done and can type "exit" to exit out of the Terminal.


Linux Commands to Shutdown and Reboot the System:

1. Linux shutdown / reboot command. On Linux, like all tasks, the shutdown and restart operations can also be done from the command line.

2. "shutdown" command.

3. "reboot" command.

4. "halt" command.

5. "poweroff" command.

6. REISUB - R E I S U B key strokes.


Job for mariadb.service failed because the control process exited with error code - How to fix it ?

This article covers how to resolve the above maiadb problem "Job for mariadb.service failed because the control process exited with error code" which may arise during the installation of #MariaDB on #CentOS 8.

The /var/lib/mysql directory is not empty when MariaDB is installed, it contains e.g. the 'mysql' database and some other files. 

Recreating the folder, even with correct permissions, will not help you. 

Either MariaDB has not been successfully installed or the directory was removed. Reinstall MariaDB to get a working basic database system back.

Also, you can give access /var/log/mysql/* to mysql by running the command:

sudo chown mysql:mysql /var/log/mysql/*


MariaDB offers more and better storage engines, NoSQL support, provided by Cassandra, allows you to run SQL and NoSQL in a single database system. 

MariaDB also supports TokuDB, which can handle big data for large organizations and corporate users.


To view mysql error logs:

1. edit /etc/my.cnf [mysqld] log=/tmp/mysql.log.

2. restart the computer or the mysqld service service mysqld restart.

3. open phpmyadmin/any application that uses mysql/mysql console and run a query.

4. cat /tmp/mysql.log ( you should see the query )


Reboot CentOS 8 - Different methods to do it ?

This article will guide you on the different methods to reboot a #CentOS system which includes the keyboard shortcut, command line, and GUI based methods. 

There's nothing different in running sudo reboot in a instance versus on your own server. This action shouldn't cause any problems. 

You can shutdown/start/reboot the instance and your data will persist.

When used with no arguments, the shutdown command will power off the machine. sudo shutdown. 

The shutdown process starts after 1 minute, which is the default time interval.

It is recommended that you do a #reboot of your Server at least once per month. 

The Dedicated Hosting Servers are just computers, you would not leave your computer on for months straight without a single reboot, so the same rules apply for servers.


To reboot your Linux Server via #SSH:

1. Open Command Prompt. If you have a graphical interface, open the terminal by right-clicking the Desktop > left-clicking Open in terminal.

2. Use SSH Connection Issue reboot Command. In a terminal window, type: ssh –t user@server.com 'sudo reboot'.


Different methods to Reboot Ubuntu 20.04 LTS ?

This article will guide you on the different methods through which you can effectively reboot your #Ubuntu 20.04 system without any difficulty. 

To #reboot immediately, append the -r flag: $ sudo shutdown -r now. 

To power down immediately: $ sudo shutdown -P now. 

You can use the poweroff #command: $ poweroff. 

To reboot after 10 minutes: $ sudo shutdown -r 10.


To reboot Linux using the command line:

1. To reboot the Linux system from a terminal session, sign in or "su"/"sudo" to the "root" account.

2. Then type " sudo reboot " to reboot the box.

3. Wait for some time and the Linux server will reboot itself.


Steps to restart network services in Linux ?

This article will guide you on how to start, stop, and restart the #network service on different Linux distribution like Ubuntu, #Debian, Linux Mint, and CentOS 8. Moreover, you can troubleshoot the network #error through the #NetworkManager tool on #CentOS 8.

Please don't stop services if you have a remote ssh connection that may create a problem.

Restarting networking on a desktop machine will cause dbus and a bunch of #service to stop and never be started again, usually leading to the whole system being unusable.

To restart a Linux service:

1. Linux provides fine-grained control over system services through #systemd, using the systemctl command.

2. To verify whether a service is active or not, run this command: sudo systemctl status apache2.

3. To stop and restart the service in Linux, use the command: sudo systemctl restart SERVICE_NAME.


Steps to start, stop or restart services in Ubuntu 20.04 LTS ?

This article will guide you steps on how you stop, start, or restart a #service in #Ubuntu 20.04. service operates on the files in /etc/init. d and was used in conjunction with the old init system. #systemctl operates on the files in /lib/systemd . If there is a file for your service in /lib/systemd it will use that first and if not it will fall back to the file in /etc/init. To list all loaded services on your system (whether active; running, exited or failed, use the list-units subcommand and --type switch with a value of service. To Check running process in #Linux: 1. Open the #terminal #window on Linux. 2. For remote Linux server use the ssh command for log in purpose. 3. Type the ps aux command to see all running process in Linux. 4. Alternatively, you can issue the top command or htop command to view running process in Linux.