How to make a folder in Linux or Unix

To make a folder (also known as a directory) in Linux or Unix, use the mkdir command. For example: mkdir folder_name This will create a new folder named folder_name in the current working directory. You can also specify the path where you want to create the folder. For example: mkdir /path/to/folder_name Note: Replace folder_name and … Read more

How To Find My Public IP Address From Linux CLI

Here are a few ways to find your public IP address from the Linux command line interface (CLI): Use curl: curl ifconfig.co Use dig: dig +short myip.opendns.com @resolver1.opendns.com Use wget: wget -qO- http://ipecho.net/plain Use ip command: ip addr show dev eth0 | grep ‘inet ‘ | awk ‘{print $2}’ | cut -d/ -f1 Note: Replace … Read more

How To Join Several Partition Together To Form a Single Larger One On a Linux Using mhddfs

Here are the steps to join several partitions together to form a single larger one on a Linux using mhddfs: Install mhddfs: sudo apt-get install mhddfs Create a directory to mount the combined partitions: sudo mkdir /mnt/combined Mount the partitions using mhddfs: sudo mhddfs /path/to/partition1,/path/to/partition2 /mnt/combined Note: Replace /path/to/partition1 and /path/to/partition2 with the actual paths … Read more

How To Install pfSense Firewall On a Hard Disk Drive With Serial Console Support On the Soekris net5501 Router

Here are the steps to install pfSense firewall on a hard disk drive with serial console support on the Soekris net5501 router: Download the pfSense ISO file from the official website. Burn the ISO file to a CD. Connect the Soekris router to a computer with a serial cable. Configure the serial terminal software on … Read more

How to Prevent & Disable Mac OS X From Sleeping From the Command Line Terminal Application

To prevent and disable Mac OS X from sleeping from the Command Line Terminal application, you can use the caffeinate command. Here’s how to use caffeinate: Open the Terminal application. Run the following command to prevent the system from sleeping indefinitely: caffeinate To prevent the system from sleeping for a specific duration, you can use … Read more

How To: Restart Apple Mac OS X Airport Networking From the Bash Terminal

You can restart the Wi-Fi network in Apple Mac OS X from the Terminal by using the airport command. Here’s how: Open the Terminal application. Turn off Wi-Fi: sudo /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -z Turn on Wi-Fi: sudo /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I Note: The airport command may not be present on all versions of Mac OS X. If it’s not … Read more

How To Install Google Chrome On a RHEL/CentOS 7/8 and Fedora Linux 34 Using Yum Command

Here are the steps to install Google Chrome on a RHEL/CentOS 7/8 and Fedora 34 system using the yum command: Add the Google Chrome repository to the system: sudo tee /etc/yum.repos.d/google-chrome.repo <<EOF [google-chrome] name=google-chrome baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64 enabled=1 gpgcheck=1 gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub EOF Install Google Chrome: sudo yum install google-chrome-stable Launch Google Chrome: google-chrome Note: Before installing Google Chrome, … Read more

How to find out information about a LXC (Linux container) CPU & Memory Usage

To find information about CPU and memory usage of a Linux Container (LXC), you can use the following commands: CPU usage: lxc-info -n <container_name> | grep ‘CPU use’ This will show you the percentage of CPU utilization by the container. Memory usage: lxc-info -n <container_name> | grep ‘Memory use’ This will show you the amount … Read more

How To Install ncurses Library on a Linux

The ncurses library can be installed on a Linux system using the package manager. Here are the steps to install ncurses on different distributions: On Debian and Ubuntu: sudo apt-get update sudo apt-get install libncurses5-dev On Fedora, CentOS, and Red Hat: sudo yum update sudo yum install ncurses-devel On Arch Linux: sudo pacman -Sy sudo … Read more