Guides
How website valuation actually works, what traffic estimates can and cannot tell you, and which once-standard metrics have quietly stopped existing.
nixCraft → Howto → AIX → How to check running process in Unix using command line How to check running process in Unix using command line
To check the running processes on an AIX system, you can use the ps command. Here's an example: $ ps -efrn This command will show a list of all the running processes and their status information. The output includes the following columns: UID : the user ID of the owner of the process. PID : the proc
How to add ssh key to qcow2 Linux cloud images using virt-sysprep
You can add an SSH key to a Linux cloud image in a qcow2 format using the virt-sysprep utility. Here are the steps: Boot the cloud image in a virtual machine. Install the virt-sysprep utility: # apt - get update rn# apt - get install libguestfs - toolsrn Copy your SSH public key to the virtual machi
How to exclude file when using scp command recursively
You can exclude files when using the scp command recursively by using the --exclude option of the rsync utility, which is used by scp to transfer files and directories. For example, to exclude files with the .log extension while copying all files and directories from the local directory /path/to/sou
How to check running process in Linux using command line
To check the running processes on a Linux system, you can use the ps command. Here’s an example: n n n $ ps aux n n n This command will show a list of all the running processes and their status information. The output includes the following columns: n n USER : the username of the owner of the
How to check list of users in Unix
The password file /etc/passwd contains one line for each user account. The passwd files are the local source of password information. To check the list of users on a Unix-like system, you can use the cut and /etc/passwd command as follows: $ cut -d: -f1 /etc/passwd rn The /etc/passwd file contains i
How to install curl on FreeBSD using pkg command
The curl command is a tool to download or transfer files/data from or to a server using FTP, HTTP, HTTPS, SCP, SFTP, SMB, and other supported protocols on FreeBSD, Linux, or Unix-like system. You can install curl on FreeBSD using the pkg command as follows: # pkg install curl rn This will download a
Turn off color in Linux terminal/bash session
You can turn off color in a Linux terminal/bash session by setting the environment variable TERM to dumb . You can do this by running the following command in your terminal:rn rn rn export TERM =dumbrn rn rnThis will disable color output in the terminal until the terminal is closed or the environmen
How to patch Meltdown CPU Vulnerability CVE-2017-5754 on Linux
To patch the Meltdown CPU vulnerability (CVE-2017-5754) on a Linux system, you need to install the latest security updates and patches from your Linux distribution vendor. The exact steps to do this will depend on the distribution and version you’re using, but some common methods include using
Howto patch Spectre Vulnerability CVE-2017-5753/CVE-2017-5715 on Linux
The Spectre vulnerability (CVE-2017-5753 and CVE-2017-5715) is a hardware-based vulnerability that affects modern microprocessors and can be exploited by attackers to access sensitive information, such as passwords and encryption keys. To patch the Spectre vulnerability on Linux, you will need to in
yum find out path where is package installed to on CentOS/RHEL
n You can find the path where a package is installed to on a CentOS/RHEL system using the yum provides command. n n n n n n For example, to find the path for the package httpd , you can run the following command: n n n yum provides '*/httpd' n n n The output will list the packages that provide the s
FreeBSD Change Hostname without reboot
To change the hostname of a FreeBSD system without rebooting, you can use the hostname command. To set the hostname to "new-hostname", you can run the following command:rn rn rn hostname new -hostnamern rn rnTo make the change permanent, you will need to edit the /etc/rc.conf file and modify the hos
How to check Linux for Spectre and Meltdown vulnerability
To check if a Linux system is vulnerable to Spectre and Meltdown vulnerabilities, you can use various tools and techniques.rn rn Using the in-kernel command line tool: Use the following command to check if the system is vulnerable:rn rn rn grep -Ew ^flags /proc/cpuinfo | grep -Eqw "spectre_v2|l1tf"
How to install/update Intel microcode firmware on Linux
The Intel microcode firmware update can be installed or updated on Linux using the following steps: n n Determine the version of your processor:n n n $ cat /proc/cpuinfo | grep -m1 "model name" n n n n Download the appropriate firmware update package from Intel’s website or your Linux distribu
How to install and setup Docker on RHEL 7/CentOS 7
To install and setup Docker on RHEL 7/CentOS 7:rn rn Update the system: rn rn rn rn $ sudo yum updatern rn rn rn Add the Docker CE repository: rn rn rn rn $ sudo yum install -y yum-utilsrn $ sudo yum-config-manager --add-repo https: / /download.docker.com/linux /centos/docker -ce.reporn rn rn rn Ins
How to install and use Nginx on CentOS 7 / RHEL 7
To install Nginx on CentOS 7 or RHEL 7, you can use the following steps:rn rn Add the Nginx repository to your system: rn rn rn sudo nano /etc/yum.repos.d/nginx.reporn rn rn rn Paste the following configuration in the file and save it: rn rn rn rn rnname=nginx repornbaseurl=http://nginx.org/packages
How to install Spotify on Linux
To install Spotify on Linux, follow these steps:rn rn Add the Spotify repository to your system: rn rn rn rn sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 931FF8E79F0876134EDDBDCCA87FF9DF48BF1C90rn echo deb http://repository.spotify.com stable non-free | sudo tee /etc/apt/so
How to install PHP 7.2 on CentOS 7/RHEL 7
To install PHP 7.2 on CentOS 7/RHEL 7, follow these steps:rn rn Add the remi repository: rn rn rn rn sudo yum install https: / /dl.fedoraproject.org/pub /epel/epel -release-latest- 7 .noarch.rpmrnsudo yum install http: / /rpms.remirepo.net/enterprise /remi-release-7.rpmrn rn rn rn Enable the remi-ph
Fix client intended to send too large body: xyz bytes in Nginx
To fix the error "client intended to send too large body: xyz bytes" in Nginx, you can increase the client_max_body_size value in the Nginx configuration file. The default value is often set to 1MB, but you can increase it to match your needs. Here's how you can make the change:rn rn Open the Ngi
How to configure Nginx with Let’s Encrypt on CentOS 7
To configure Nginx with Let's Encrypt SSL certificate on CentOS 7, follow these steps:rn rn Install certbot:rn rn rn sudo yum install certbotrn rn rn Install the Nginx plugin for certbot:rn rn sudo yum install certbot-nginxrn rn rn Stop Nginx:rn rn rn sudo systemctl stop nginxrn rn rn Obtain a SSL c
How to set and use sudo password for Ansible Vault
Ansible Vault allows you to encrypt sensitive data such as passwords, certificates, and keys, so that they can be stored safely in version control. To set a sudo password for Ansible Vault, you need to use the ansible-vault command as follows: n n Create an encrypted file: n n n n ansible-vault crea
2,685 guides published.
