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 automatically mount zfs file system on Linux/Unix/FreeBSD
rn rn rn rn rn To automatically mount a ZFS file system on boot, you will need to create a new entry in the /etc/fstab file. The entry should include the following information:rn rn The ZFS file system's name rn The mount point, the directory where the file system should be mounted rn The filesy
How to run commands on Linux Container (LXD) instance at provision launch time
To run commands on an LXD container instance at provision launch time, you can use cloud-init. Cloud-init is a tool that is commonly used to customize Linux instances when they launch in a cloud environment. It can be used to run commands, install packages, write files, and perform other tasks. H
How to use curl command with http/2 on MacOS X
To use curl with HTTP/2 on MacOS X, you need to have a version of curl that supports HTTP/2 and a version of OpenSSL that supports ALPN (Application-Layer Protocol Negotiation). To check if your system meets these requirements, run the following command:rn rn rn curl --version rn rn rnIf the output
How to install LXD container hypervisor on Ubuntu 16.04 LTS
To install LXD container hypervisor on Ubuntu 16.04 LTS, follow these steps:rn rn Add the LXD PPA (Personal Package Archive) to your system: rn rn rn rn sudo add-apt-repository ppa:ubuntu-lxc/lxd-stablern rn rn rn Update the package list: rn rn rn rn sudo apt update rn rn rn rn Install the LXD packa
How to remove all old and outdated brew packages on MacOS
To remove all old and outdated packages installed with Homebrew on MacOS, you can use the following command: n n n brew cleanup n n n This command will remove any older versions of installed packages, as well as any cache files, logs, and other unnecessary files. You can also use the brew upgrade co
Linux kvm exit from a virsh console command
To exit from a virsh console session in KVM (Kernel-based Virtual Machine), you can use the CTRL + ] key combination. This will return you to the virsh prompt, allowing you to execute other commands or exit virsh entirely. Alternatively, you can type quit or exit at the virsh prompt to exit the v
How to check if port is in use on Linux or Unix
To check if a port is in use on a Linux or Unix machine, you can use the following command:rn rn rn lsof - i :port_numberrn rn rnReplace port_number with the desired port number. The command will list all the processes using the specified port number. If no process is using the port, the command wil
How to setup HTTP Strict Transport Security With Lighttpd Web Server
HTTP Strict Transport Security (HSTS) is a security feature that forces clients to communicate with a web server only over HTTPS, even if they try to access it via HTTP. This helps protect against man-in-the-middle attacks and other security threats. Here’s how to set up HSTS with the Lighttpd
How to add to bash $PATH permanently on Linux
To add a directory to your $PATH environment variable on a Linux system permanently, you can edit the shell profile file. The exact file you need to edit depends on your shell. For the bash shell, you can add a directory to the $PATH environment variable by editing the .bashrc file in your home dire
How to install wget on RHEL/CentOS 6/7/8/9 using yum
To install wget on RHEL/CentOS 6/7/8/9, you can use the yum package manager.rn rn Update the package repository: To ensure that you have the latest packages available, run the following command: rn rn rn rn sudo yum update rn rn rn rn Install wget: To install wget, run the following command: rn rn r
How to pair Pi-hole with an OpenVPN to block ads and increase privacy on Ubuntu / Debian Linux
To pair Pi-hole with OpenVPN on Ubuntu or Debian Linux, you need to follow these steps:rn rn Install OpenVPN: Install OpenVPN on your Ubuntu or Debian Linux system by running the following command: rn rn rn rn sudo apt - get update && sudo apt - get install openvpnrn rn rn rn Download OpenVP
How to create a permanent Bash alias on Linux/Unix
A bash alias is a shorthand way to reference a longer command. Aliases can be created temporarily, but they will be lost when you log out or restart your computer. To create a permanent bash alias on Linux or Unix, follow these steps:rn rn Open your bash profile file: You can open your bash profile
How to install yaourt in Arch Linux
Yaourt is a package manager for Arch Linux and its derivatives such as Manjaro Linux. It extends the functionality of the pacman package manager by providing support for the installation of packages from the Arch User Repository (AUR). To install yaourt on Arch Linux, follow these steps: n n Install
How to change root password on CentOS Linux
To change the root password on CentOS Linux, follow these steps:rn rn Boot into Single User Mode: You can boot your CentOS system into single user mode by adding single to the kernel command line during boot. rn Mount the root partition: In single user mode, the root partition will be mounted read-o
How to change the screenshots save file location in MacOS X
To change the screenshots save file location in macOS X, follow these steps:rn rn Open Terminal: You can find Terminal by searching for it using Spotlight, or you can find it in the Utilities folder within the Applications folder. rn Enter the following command: rn rn rn rn defaults write com. apple
How to compile and install Tarsnap on a Ubuntu/Debian Linux
To compile and install Tarsnap on an Ubuntu/Debian Linux system, follow these steps:rn rn Install dependencies: Tarsnap requires several libraries and tools to be installed on your system before you can compile and install it. To install these dependencies, run the following command: rn rn rn rn sud
Ubuntu Linux Install GNU GCC Compiler and Development Environment
To install the GNU GCC compiler and development environment on Ubuntu Linux, follow these steps:rn rn Update the package list: rn rn rn rn sudo apt - get update rn rn rn rn Install the build-essential package: The build-essential package includes the GCC compiler and a number of other development to
How to assign a grep command value to a variable in Linux/Unix
In Linux/Unix, you can assign the output of a grep command to a variable using command substitution. Command substitution allows you to capture the output of a command and use it as the value of a variable. Here's an example of how to assign the output of a grep command to a variable in a bash sh
How to change the ssh port on Linux or Unix server
To change the SSH port on a Linux or Unix server, follow these steps:rn rn Open the SSH daemon configuration file: The SSH daemon configuration file is usually located at /etc/ssh/sshd_config . rn Find the line that specifies the Port : Look for the line that starts with Port and change the default
Linux find process by name
You can find a process by its name in Linux using the ps and grep commands. Here's an example of how to find a process by its name:rn rn rn ps -ef | grep process-namern rn rnThe ps -ef command lists all running processes on the system, and the grep command filters the output to show only the line
2,685 guides published.
