Guides
How website valuation actually works, what traffic estimates can and cannot tell you, and which once-standard metrics have quietly stopped existing.
How to determine number of CPUs on Linux using command line
You can determine the number of CPUs on a Linux system using the command nproc . This command is part of the GNU Core Utilities and is available on most Linux distributions. You can also use the command lscpu to get detailed information about the CPUs on your system. This command is part of the l
How to check hard drive health on FreeBSD with smartctl CLI
To check the health of a hard drive on a FreeBSD system using the smartctl command, you can use the following steps:rn rn Install the smartmontools package: rn rn rn rn sudo pkg install smartmontoolsrn rn rn rn Identify the hard drive you want to check. You can use the following command to list all
Check if a directory exists in Linux or Unix shell
You can use the test command or the rn if ; then echo "Directory exists"; else echo "Directory does not exist"; fi rn rnYou can also use the ls command with the -d option to check if a directory exists, and redirect stderr to /dev/null to avoid error messages. For example:rn rn ls -d /path/to/direct
How to install networked HP printer and scanner on Ubuntu Linux
To install networked HP printer and scanner on Ubuntu Linuxrn rn Install the HPLIP (HP Linux Imaging and Printing) package: rn rn rn rn sudo apt- get install hpliprn rn rn rn Run the HPLIP tool to detect the printer and scanner connected to your network: rn rn rn rn hp-setuprn rn rn rn Follow the pr
How to rename multiple folders in Linux using command line
You can use the rename command to rename multiple folders in Linux using the command line. The rename command is a Perl-based utility that allows you to rename multiple files based on a regular expression. Here's an example of how to use the rename command to rename all folders that have the name
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:rn rn rn sudo apt- get install lm-sensorsrn rn rnOnce the package is installe
How to install htop on Ubuntu Linux using apt
To install htop on Ubuntu Linux using apt, you can use the following command:rn rn rn sudo apt update rnsudo apt install htoprn rn rnThis will update your package repository and install htop on your system. Once the installation is complete, you can run the htop command to start the program.
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
How to check disk space on Unix servers
rn rn rn rn rn rn rn rn rn There are several commands that can be used to check disk space on Unix servers. Some common ones include:rn rn 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. rn du
How to check open ports in Linux using the CLI
To check open ports in Linux using the command line interface (CLI), you can use the "netstat" command. This command will show you all the active network connections, including information about the protocol (TCP or UDP), the local and remote addresses and ports, and the state of the connection.
Disable SELinux on CentOS 7 / RHEL 7 / Fedora Linux
To disable SELinux on CentOS 7, RHEL 7, or Fedora Linux, you can use the following steps:rn rn Open the SELinux configuration file: sudo nano /etc/selinux/config rn Change the SELINUX value to "disabled" SELINUX=disabled rn Save and close the file rn Reboot the system for the changes to take effect
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.rn rn First, make sure that the package is installed by running: rn rn rn rn sudo apt - get update rnsudo apt - get install unattended - upgradesrn rn rn rn Next, open the configuration file: rn rn rn rn
How to install LAMP on Debian 10 (Buster)
n n n n n n n n n n n To install LAMP (Linux, Apache, MySQL, PHP) on Debian 10 (Buster), you can use the following steps: n n Install Apache web server: n n n n sudo apt - get update nsudo apt - get install apache2 - y n n n n Install MySQL server: n n n n sudo apt- get install mysql-server -
How to delete a UFW firewall rule on Ubuntu / Debian Linux
To delete a UFW firewall rule on Ubuntu or Debian Linux, you can use the ufw command with the delete option. For example, if you want to delete a rule that allows incoming traffic on port 22 (SSH), you can use the following command:rn rn rn sudo ufw delete allow 22 rn rn rnAlternatively, you can
Debian 10 Set Up OpenVPN Server
Setting up an OpenVPN server on Debian 10 can be done in just a few minutes using the following steps:rn rn Install OpenVPN by running the command sudo apt-get install openvpn rn Create a directory to store the server configuration files by running the command sudo mkdir /etc/openvpn/server rn Gener
How to upgrade Debian 9 to Debian 10 Buster using the CLI
n First, make sure that your current system is up-to-date by running the following command: n n n n sudo apt - get update && sudo apt - get upgrade n n n n Then, backup all important data and configurations from your current system. n Next, run the following command to upgrade your system to
How to change hostname on Debian 11/10 Linux
You can change the hostname on Debian 11/10 Linux using the following steps:rn rn Open a terminal and use the command hostnamectl set-hostname new_hostname where new_hostname is the new hostname you want to set. rn Edit the file /etc/hosts and change the old hostname to the new hostname in the line
Fedora Linux install vnstat network traffic monitor
You can install vnStat on Fedora Linux using the following steps:rn rn Install vnStat package: To install vnStat, use the following command: rn rn rn rn sudo dnf install vnstatrn rn rn rn Create a database: Once the installation is complete, create a database for vnStat to store the network traffic
How to change default shell to bash on Macos Ventura/Monterey
To change the default shell to bash on macOS Ventura or Monterey, you can use the chsh command. This command allows you to change the login shell for a user. n n Open the terminal by searching for “terminal” in Spotlight or by using the command + spacebar shortcut. n Type the following c
Amazon Linux AMI install mysql client programs for RDS
You can install the MySQL client programs for RDS on Amazon Linux AMI using the following steps:rn rn Install the MySQL repository: Run the following command to install the MySQL repository: rn rn rn rn wget https: / / repo.mysql.com / mysql80 - community - release - el7 -1. noarch.rpmrnsudo yum loc
2,685 guides published.
