Basic System Controls with Terminal in Linux

Sometimes some of the basic services of the system stop working or starts malfunctioning. And it becomes really difficult to solve the problem through Graphical User Interface so here is the list of Terminal Command to solve the problem and to control the basic services manually.

Installing the required packages

To control the basic system services, install the basic required tools. For Debian based systems use the following command to install the required tools.

sudo apt-get install Bluetooth bluez bluez-tools rfkill

Check whether the Bluetooth device is blocked or not using the following command.

sudo rfkill list

It will display the status of the Bluetooth device.



bluetooth-device-status-rfkill

Unblocking the blocked service

If the service is blocked execute the following command to unblock the services. To unblock Bluetooth enter the following command.

sudo rfkill unblock bluetooth

To unblock wifi enter the following command.

sudo rfkill unblock wifi

Bluetooth Services

Starting Bluetooth service

To start the Bluetooth services enter the following command.

sudo service bluetooth start

Stopping Bluetooth service

To stop the Bluetooth services enter the following command.



sudo service bluetooth stop

Executing the above command will output the following results.

working-with-bluetooth-services

Wifi Services

Starting Wi-Fi service

To start wifi services enter the following command.

nmcli radio wifi on

Stopping Wi-Fi service

To stop wifi services enter the following command.

nmcli radio wifi off

Executing the above command will output the following results.

working-with-wifi-services

Locking screen

Enter the following command to lock the screen.

gnome-screensaver-command -l

Executing the above command will output the following results.



locking-screen-linux

System Power related services

Shutting down system

To shut down, the system instantly enters the following command.

shutdown 0

Shutting down at specific time

To shut down the system at 13:30 enters the following command.

shutdown -h 13:30

Change 13:30 with the time you want to shut the system down. Executing the above command will output the following results.

shutdown-linux

Rebooting system

To reboot the system instantly, enter the following command.

shutdown -r now

Rebooting at specific time

To reboot the system at 13:30 enter the following command.

shutdown -r 13:30

Change 13:30 with the time you want to shut the system down. Executing the above command will output the following results.

rebooting-linux

My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.


Article Tags :

2


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.