Category: Linux

Linux Server Managment

Linux / UNIX: Check If File Is Empty Or Not Using Shell Script nixCraft Updated Tutorials/Posts

How do I check if a file is empty or not using bash or ksh shell script under a UNIX / Linux / macOS / OS X / BSD family of operating systems? How do

How to Install Lighttpd with PHP, PHP-FPM and MariaDB on CentOS 7

Lighttpd is an open source, secure, fast, flexible and more optimized web server designed for speed-critical environments with less memory utilization as compared to other web servers. It can handle up-to 10,000 connections parallel...

How to setup a UFW firewall on Ubuntu 16.04 LTS server nixCraft Updated Tutorials/Posts

How do I setup a firewall with UFW (uncomplicated firewall) on an Ubuntu Linux 16.04 LTS server to restrict traffic on my personal web-server that hosts my pictures and blogs for my family members?UFW is

How to find out Raspberry Pi GPU and ARM CPU temperature on Linux nixCraft Updated Tutorials/Posts

I am using a Raspberry PI 2/3 credit size computer. How do I find out my Raspberry PI GPU or CPU temperature from Linux operating system command line option? How do I monitor the core

How to Install PM2 to Run Node.js Apps on Production Server

PM2 is a free open source, advanced, efficient and cross-platform production-level process manager for Node.js with a built-in load balancer. It works on Linux, MacOS as well as Windows. It supports app monitoring, efficient...

Bash get exit code of command on a Linux / Unix nixCraft

I am a new Linux system user. How do I get the exit code of a command? How do I get the exit code or status of Linux or Unix shell command and store it

Bash read file names from a text file and take action nixCraft

I need to read a list of file names from a text file named input.txt and take action each file name. How do I read file names from a text file and say run /bin/foo

How to set up a firewall using FirewallD on RHEL 8 nixCraft

I am a new Red Hat Enterprise Linux sysadmin. How do I set up a firewall using FirwallD on RHEL 8? Introduction – A Linux firewall used to protect your workstation or server from unwanted

How to install and use Nginx on OpenSUSE Linux server nixCraft

How do I install and configure the latest version of Nginx web server on OpenSUSE Linux server using the CLI and host a static site?Introduction – Nginx [engine x] is free and open source high-performance

FreeBSD Install wget Utility To Download Files From Internet nixCraft Updated Tutorials/Posts

How do I install wget the non-interactive network downloader under FreeBSD operating systems? How do I install wget on FreeBSD 8.x/9.x/10.x/11.x/12.x? You can use any one of the following method to install GNU Wget non-interactive

Define ssh key per host using ansible_ssh_private_key_file nixCraft

I set up SSH keys on a Linux or Unix as per my project needs and cloud hosting providers. I also new to Ansible IT automation and DevOps tool. My management node has keys for

How to Setup DHCP Server and Client on CentOS and Ubuntu

DHCP (short for Dynamic Host Configuration Protocol) is a client/server protocol that enables a server to automatically assign an IP address and other related configuration parameters (such as the subnet mask and default gateway)...

Multiple vulnerabilities in FreeBSD NFS server code nixCraft

FreeBSD is a free and open source operating system. The NFS (Network File System) is a server and client application that turn FreeBSD into a file sharing server. Users can upload or update files on

Linux Find Out What Process Are Using Swap Space nixCraft Updated Tutorials/Posts

The top and free command display the total amount of free and used physical and swap memory in the server. How do I determine which process is using swap space under Linux operating systems? How