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 copy and transfer files remotely on Linux using scp and rsync
ZFS on Linux uses the Adaptive Replacement Cache (ARC) to store frequently accessed data in memory. On Ubuntu/Debian, you can set the size of the ARC by modifying the kernel parameters.rn rn Check your current ARC size by running the following command: rn rn rn rn cat /proc/spl/kstat/zfs/arcstatsrn
How to set up ZFS ARC size on Ubuntu/Debian Linux
To copy files remotely on Linux using scp , the basic syntax is:rn rn rn scp @ : rn rn rnFor example, to copy a file called "file.txt" from your local machine to a remote host called "example.com" in the user's home directory, you would use the following command:rn rn rn scp file .txt user @example
How to convert man page to HTML on Linux and Unix
There are a few ways to convert a man page to HTML on Linux and Unix. One method is to use the command line tool "groff" to format the man page as HTML. Here is an example command:rn rn rn groff -mandoc -Thtml manpage.1 > manpage.htmlrn rn rnAnother method is to use the command line tool "man2htm
How to uninstall Nginx on Ubuntu / Debian Linux
To uninstall Nginx on Ubuntu or Debian Linux, you can use the following steps: n n Stop the Nginx service by running the following command: n n n n sudo systemctl stop nginx n n n n Remove the Nginx package and its dependencies by running the following command: n n n n sudo apt- get remove nginx -y
How to install Docker on Amazon Linux 2
To install Docker on an Amazon Linux 2 EC2 instance, you can use the following steps:rn rn Connect to your EC2 instance via SSH. rn Update the package index by running the following command: rn rn rn rn sudo yum update - yrn rn rn rn Add the Docker repository to your system by running the following
How to Set or Change Hostname in Amazon Linux EC2 Instance
o set or change the hostname on an Amazon Linux EC2 instance, you can use the hostnamectl command. Here are the steps to set the hostname:rn rn Connect to your EC2 instance via SSH. rn Use the following command to set the hostname: rn rn rn rn sudo hostnamectl set-hostname new -hostnamern rn rnRepla
How to switch boot target to text or GUI in systemd Linux
You can switch the boot target to text or GUI mode in a system running Linux with systemd by performing the following steps:rn rn To switch to text mode, enter the following command in the terminal: rn rn rn rn sudo systemctl set - default multi-user.targetrn rn rn rn To switch to GUI mode, enter th
CentOS / RHEL: dnf Command Reinstall Package
You can reinstall a package on a system running CentOS or RHEL using the dnf command. The dnf command is a package manager for RPM-based Linux distributions, such as CentOS and RHEL. Here's an example of how to reinstall a package using the dnf command:rn rn rn sudo dnf reinstall package_namern r
How to disable core dumps in Linux including systemd
You can disable core dumps in Linux, including systems that use systemd, by performing the following steps:rn rn Change the core dump pattern to prevent core dumps from being written to disk by adding the following line to the file /etc/sysctl.conf : rn rn rn rn fs.suid_dumpable = 0rn rn rn rn Reloa
How to upgrade Debian 10 to Debian 11 Bullseye using the CLI
Upgrading Debian 10 to Debian 11 Bullseye using the command line interface (CLI) involves several steps:rn rn Make sure your system is up-to-date by running: rn rn rn rn sudo apt update && sudo apt upgradern rn rn rn Backup your important data and configuration files, it's always a good idea
How to search multiple directories with find command
The "find" command is a powerful command-line utility that can be used to search for files and directories in one or more directories. Here's an example of how to search for files with the ".txt" extension in the directories "/home/user/dir1" and "/home/user/dir2":rn rn rn find /home/user/dir1 /h
How to generate WireGuard QR code on Linux for mobile
You can generate a QR code for a WireGuard configuration on Linux by using the qrencode command. The qrencode command is a command-line utility to generate QR codes. Here's an example of how to use the qrencode command to generate a QR code for a WireGuard configuration:rn rn Create a WireGuard c
How to install sshpass on macOS / OS X
sshpass is a command-line utility that allows you to provide a password for an SSH login on the command-line, rather than being prompted for it interactively. Here's an example of how to install sshpass on macOS/OS X:rn rn Install Homebrew: The easiest way to install sshpass on macOS/OS X is by u
How to stop cat command in Linux
You can stop the cat command in Linux by sending an interrupt signal ( CTRL + C ) to the terminal where the command is running. When you press CTRL + C it sends an interrupt signal to the process running in the terminal. This signal causes the process to terminate immediately. Alternatively, y
How do I list lxc snapshots for LXD on Linux?
In Linux, you can use the command-line utility “lxc” to list snapshots for a container managed by LXD. n Here’s an example of how to list snapshots for a container called “container1”: n n n lxc info container1 | grep Snapshots n n n This command uses the “lxc inf
How to upgrade OpenSUSE 15.2 to 15.3 using the CLI
Upgrading OpenSUSE 15.2 to 15.3 using the command line interface (CLI) involves several steps:rn rn Make sure your system is up-to-date by running: rn rn rn rn sudo zypper refresh && sudo zypper update rn rn rn rn Backup your important data and configuration files, it's always a good idea to
How to list all installed packages on OpenSUSE/SUSE Linux
In OpenSUSE/SUSE Linux, you can use the package manager "zypper" to list all installed packages. Here's an example of how to list all installed packages on OpenSUSE/SUSE Linux:rn rn rn zypper se -i -t package rn rn rnThis command uses the "zypper" command with the "se" (search) option, followed b
How to compress the whole directory using xz and tar
You can compress a whole directory using xz and tar by using the following command:rn rn rn tar -cJf directory.tar.xz directory/rn rn rnThis command will create a compressed archive called directory.tar.xz of the entire directory directory. Here's a breakdown of the options used in the command:rn
How do I copy a file to the clipboard in Linux?
In Linux, you can use the command-line utility "xclip" to copy a file to the clipboard. Here's an example of how to copy a file called "file.txt" to the clipboard:rn rn rn xclip -sel clip < file .txt rn rn rnThis command uses the xclip utility to copy the contents of the file "file.txt" to the
How to check SHA1 hash on Linux, FreeBSD and Unix
You can check the SHA1 hash of a file on Linux, FreeBSD, and Unix by using the sha1sum command. The sha1sum command calculates and verifies SHA1 message digests. n Here are some examples of how to use the sha1sum command: n n To check the SHA1 hash of a file, use the following command and replace fi
2,685 guides published.
