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 Add, Delete, and Grant Sudo Privileges to Users on a FreeBSD Server
Here's how you can add, delete, and grant sudo privileges to users on a FreeBSD server:rn rn Add a new user: rn rn rn rn pw useradd rn rn rn rn Delete a user: rn rn rn rn pw userdel rn rn rn rn Grant sudo privileges to a user: rn rn rn rn pw usermod -G wheelrn rn rnNote: The pw command is used to ma
Install LEMP (Linux, Nginx, MySQL and PHP) Stack on Ubuntu Linux 14.04 LTS
Here's how you can install the LEMP (Linux, Nginx, MySQL, and PHP) stack on an Ubuntu Linux 14.04 LTS server:rn rn Update the package repository: rn rn rn sudo apt - get update rn rn rn rn Install Nginx web server: rn rn rn sudo apt- get install nginxrn rn rn rn Start Nginx and enable it to start at
HowTo: Use ps, kill, nice, and killall To Manage processes in FreeBSD and OS X Unix Operating System
Here are some common tasks for managing processes in FreeBSD and OS X Unix operating system using the ps , kill , nice , and killall commands: n n List running processes: n n n n ps aux n n n n Kill a process by PID: n n n n kill n n n n Change the priority of a process: n n n n nice -n n n n n Kill
Check The Number Of MySQL Open Database Connections on Linux Or Unix-like Server
To check the number of open database connections in MySQL on a Linux or Unix-like server, you can use the following command:rn rn rn mysqladmin status | grep "Threads_connected" rn rn rnAlternatively, you can also use the following SQL query to check the number of open connections in MySQL:rn rn rn
How To Install Apache, MySQL, PHP stack on FreeBSD Unix Server
Here's how you can install the Apache, MySQL, and PHP stack on a FreeBSD Unix server:rn rn Update the package repository: rn rn rn rn sudo pkg update rn rn rn rn Install Apache HTTP server: rn rn rn rn sudo pkg install apache24rn rn rn rn Start Apache and enable it to start at boot: rn rn rn rn sudo
How To Extract a Tar Files To a Different Directory on a Linux/Unix-like Systems
To extract a tar archive to a different directory, you can use the tar command with the -C option. The -C option allows you to specify the destination directory where the files will be extracted. Here's an example:rn rn rn tar -xf archive.tar.gz -C /path/to/destinationrn rn rnIn this example, the
Install MariaDB Databases on a FreeBSD 11 Unix Server
To install MariaDB on a FreeBSD 11 server, you can use the following steps:rn rn Add the MariaDB repository to your system's package sources list. This can be done by creating a file in the /usr/local/etc/pkg/repos directory with the following contents: rn rn rn rn sudo nano /usr/local/etc/pkg/repos
Unix / Linux: Initialize Dot Files Without Restarting The Current Shell Session
To initialize dot files without restarting the current shell session, you can use the source command. The source command is used to run a script in the current shell environment, without starting a new shell process. For example, if you have made changes to your .bashrc file and want to apply the
How to Run and Execute Command When I Log Out Of Linux Session?
You can run a command when you log out of a Linux session by using a shell script that is executed by the logout process. There are different methods for executing a script on logout, depending on the shell you are using. For the bash shell:rn rn Create a shell script with the commands you want t
How To Change Timezone on a CentOS 6 and 7
You can change the timezone on a CentOS 6 and 7 system using the following steps:rn rn Determine the correct timezone: rn rn rn rn timedatectl list-timezonesrn rn rnThis will display a list of available timezones. Look for the timezone you want to use and make a note of its name.rn rn Change the tim
How To PFSense Configure Network Interface As A Bridge / Network Switch
To configure a network interface on a pfSense system as a bridge or network switch, follow these steps:rn rn Log in to the pfSense web interface. rn Go to Interfaces > (assign). rn Click the plus sign (+) to add a new interface. rn Select the type of interface you want to create, such as "Bridge"
How to find out CPU information on Red Hat Linux (RHEL)
You can use the following command to find information about the CPU on a Red Hat Linux (RHEL) system:rn rn rn lscpurn rn rnThis command provides a detailed report of the CPU architecture, including the number of processors, cores, and threads, clock speed, cache size, and other information. You c
How To Add Swap on FreeBSD Unix Systems
Adding swap on a FreeBSD Unix system is a straightforward process that can be done using the following steps: n n Create a swap file: n n n sudo dd if =/dev/zero of=/swapfile bs=1M count=1024 n n n This creates a file called “/swapfile” with a size of 1024 MB. You can adjust the size of
How To Patch and Protect Linux Server Against the Glibc GHOST Vulnerability # CVE-2015-0235
To patch and protect a Linux server against the Glibc GHOST vulnerability (CVE-2015-0235), you need to upgrade the glibc package to a version later than 2.18. The exact steps for upgrading glibc may vary depending on your Linux distribution and the package management system used. Here are the steps
Glibc: GHOST Vulnerability Test To See If a Linux Sever Is Secure
The GHOST vulnerability is a critical vulnerability that affects the GNU C Library (glibc) versions prior to 2.18. To test if a Linux server is secure and not vulnerable to GHOST, you can use the following command:rn rn rn env 'x=() { :;}; echo vulnerable' 'BASH_FUNC_x()=() { :;}; echo vulnerable' b
How to check KVM (qemu-kvm) version on Linux
You can check the version of KVM (qemu-kvm) installed on a Linux system by using the following command:rn rn rn kvm --version rn rn rnorrn rn rn qemu-kvm --version rn rn rnThis will print the version number of the installed KVM (qemu-kvm) package. The output should look something like this:rn rn rn
Stress Test CPU and Memory (VM) On a Linux / Unix With Stress-ng
You can perform a stress test on your CPU and memory (in a virtual machine) on a Linux/Unix system using the stress-ng tool. stress-ng is a stress testing tool that can be used to test various aspects of a Linux/Unix system, including the CPU and memory. To stress test the CPU, you can use the fo
Linux check BIOS settings from the command line
On Linux, you can check BIOS settings from the command line by using the dmidecode utility. dmidecode is a tool that retrieves information from the system’s BIOS and reports it in a human-readable format. n To check the BIOS settings, you can use the following command: n n n sudo dmidecode -t
FreeBSD Force DHCP Client (dhclient) to Renew IP Address To Get A New Lease
To force a DHCP client (dhclient) on FreeBSD to renew its IP address and get a new lease, you can use the following command: n n n dhclient -r ndhclient n n n The first command, dhclient -r , releases the current DHCP lease, and the second command, dhclient , obtains a new lease from the DHCP server
How to install X Window System XQuartz on macOS for ssh X11 forwarding
To install the X Window System XQuartz on macOS for ssh X11 forwarding, follow these steps:rn rn Download the XQuartz installer from the official website: https://www.xquartz.org/ rn Install XQuartz by double-clicking on the downloaded installer package and following the instructions. rn Once XQuart
2,685 guides published.
