Category: Linux

Linux Server Managment

CentOS 7 Run Script When Network Interface is Up (Network Manager) nixCraft

I want to run a shell script or other program immediately after my network interface goes up on a CentOS 7 / RHEL 7 server. I created /sbin/ifup-local, but it is not working on a CentOS 7 box but works perfectly on CentOS 6.…

Linux Make Sure /etc/resolv.conf Never Get Updated By DHCP Client nixCraft Updated Tutorials/Posts

I am using GNU/Linux with the Internet Systems Consortium DHCP Client. The dhclient, provides a means for configuring one or more network interfaces using the Dynamic Host Configuration Protocol.…
blank

Ansible reboot Linux machine or server with playbooks nixCraft

I need to reboot the VM or bare metal Linux machine/server using Ansible and wait for it to come back, but it does not work with playbook as descried here.…
blank

Check Debian/Ubuntu Linux package version using apt-get/aptitude command nixCraft Updated Tutorials/Posts

I am a new Debian / Ubuntu Linux sysadmin. I would like to find out what version I would install if I ran the apt-get command.…
blank

Linux Command To Find SATA Link Speed Such as 1.5 / 3.0 / 6.0 Gbps [ Hard Disk ] nixCraft Updated Tutorials/Posts

How do I find out my SATA link speed? How do I make sure my sata hard disk is working at 6Gbps speed and how do I verify this on a Linux server running on HP or IBM amd64 hardware?Introduction:…
blank

Linux Delete All Files In Directory Using Command Line nixCraft Updated Tutorials/Posts

I want to remove all files from a directory. Can you tell me Linux command to delete all files in a directory?Introduction: You can remove all files in a directory using unlink command.…
blank

CentOS 7.0 Set Up OpenVPN Server In 5 Minutes nixCraft

I am a new CentOS Linux 7.0 server user. How do I set up an OpenVPN Server on CentOS Linux version 7.0 server to shield my browsing activity from bad guys on public Wi-Fi, and more?Introduction…
blank

CentOS 7 dig command not found – How to install dig on CentOS nixCraft

I deployed CentOS 7 Linux minimal deployed in the cloud. However, I am unable to find the dig command on my newly created CentOS 7 server.…
blank

Ubuntu 18.04 LTS Set Up OpenVPN Server In 5 Minutes nixCraft

I am a new Ubuntu Linux 18.04 LTS server user. How do I set up an OpenVPN Server on Ubuntu Linux version 18.04 LTS server to shield my browsing activity from bad guys on public Wi-Fi, and more?Introduction…
blank

FreeBSD add a user to group nixCraft Updated Tutorials/Posts

How do I add a user to group under FreeBSD operating system? How can I add a user named top to existing group on a FreeBSD?…
blank

FreeBSD Install Nginx Webserver Tutorial nixCraft Updated Tutorials/Posts

How do I install an Nginx webserver under a FreeBSD Unix operating system? How can I install Nginx web server on FreeBSD?nginx [engine x] is a HTTP server, reverse proxy and mail proxy server written by Igor Sysoev.…
blank

FreeBSD install PHP 7.2 with FPM for Nginx nixCraft

How do I install install PHP 7.2 with FPM for Nginx web server running on FreeBSD operating system?Introduction: PHP is an acronym for “PHP: Hypertext Preprocessor.”…
blank