Change Shell To Bash

H ow do I switch from a ksh shell to bash on Linux or Unix system? How to change shells on Unix-like system?   A shell is nothing but a command that provides a text-only…

Linux / Unix: “-bash: python: command not found” error and solution

I am a new user and trying to run Python program. I have a cloud based VM/VPS and when I type python mycode.py at the terminal of my server, I get the following error: -bash:…

How to copy a single file to multiple directories in Linux or Unix

I f I want to copy a single file into three locations (directories), by using a single cp command (e.g. cp file /dir1/ /dir2/ /dir3/. Would that be possible? If yes, please provide the command…

Linux/Unix: Force ssh client to use only password auth authentication when pubkey auth configured

I configured and use my openssh server to accept only public key based authentication. I need to test if my server accepting password. How to allow ssh client to use only password auth when pubkey…

How to log real user’s IP address with Nginx in log files

M y nginx server is behind a reverse proxy load balancer. How can I show the correct client IP address in nginx log files when nginx is behind a load balancer?   If you are…

How to ignore invalid and self singed ssl connection errors with curl command

I wanted to curl command to ignore SSL certification warning. Does curl command have a –no-check-certificate option like wget command on Linux or Unix-like system?   You need to pass the -k or –insecure option…

How to setup MariaDB SSL and secure connections from clients

I am looking to setup MariaDB SSL (Secure Sockets Layer) and secure connections from MySQL client and PHP application. How do I enable SSL for MariaDB server and client running on Linux or Unix-like system?…

How to install FreeBSD 11 on Google Cloud Compute

H ow can I deploy or install FreeBSD version 11.x Unix operating system on the Google cloud engine? Do I need to create my own FreeBSD disk image to start with the Google Cloud Compute?…

How to open a file in vim in read-only mode on Linux/Unix

I need of opening necessary files in reading (read-only) mode to avoid accidental editing of files such as /etc/resolv.conf or a large config or programming file on a production server. How do I open files…

How to configure Nginx for WordPress permalinks

I switched from Apache to Nginx web server. How do I configure permalinks under WordPress blog?   WordPress has the ability capacity to create a custom URL structure for your blog posts and archives. There…