How to check CPU temperature on Ubuntu Linux

To check the CPU temperature on Ubuntu Linux, you can use the ‘sensors’ command. This command is part of the lm-sensors package, which is not installed by default on Ubuntu. To install it, you can run the following command: sudo apt-get install lm-sensors Once the package is installed, you can run the ‘sensors’ command to … Read more

Can I delete /var/cache/apt/archives for Ubuntu/Debian Linux?

Yes, you can delete the contents of the /var/cache/apt/archives directory on Ubuntu/Debian Linux. The directory contains package files that have been downloaded by the apt package manager, and they can be safely removed if you need to free up space on your system. You can use the command “sudo rm -rf /var/cache/apt/archives/*” to remove all … Read more

How to check disk space on Unix servers

There are several commands that can be used to check disk space on Unix servers. Some common ones include: df -h: This command shows the file system disk space usage in human-readable format. It shows the total, used and available space on each file system. du -sh: This command shows the disk space usage for … Read more

How to set up automatic updates for Ubuntu Linux 18.04

To set up automatic updates for Ubuntu Linux 18.04, you can use the unattended-upgrades package. First, make sure that the package is installed by running: sudo apt-get update sudo apt-get install unattended-upgrades Next, open the configuration file: sudo nano /etc/apt/apt.conf.d/50unattended-upgrades In the file, uncomment the line that starts with “//Unattended-Upgrade::Origins-Pattern”. This will allow the package … Read more

How to install LAMP on Debian 10 (Buster)

  To install LAMP (Linux, Apache, MySQL, PHP) on Debian 10 (Buster), you can use the following steps: Install Apache web server: sudo apt-get update sudo apt-get install apache2 -y Install MySQL server: sudo apt-get install mysql-server -y Install PHP and necessary modules: sudo apt-get install php php-mysql libapache2-mod-php -y After installation, start Apache and … Read more