Tag: linux command line

A Newbie’s Guide To Piping In Linux

Today I will be showing you how to use piping or pipe commands in Linux. Piping is used to take the output from one command and “pipe” it into another command. An example of this would be listing all your drives on an HP server with hpacucli and then piping it into grep to search for the term “fail” so that …

Bash: Passing Arguments Through Curl

In this quick guide I will show you how to pass arguments to scripts while using curl. Sometimes you may have a script that you wish to curl multiple times or on multiple servers but also need to pass arguments to them. Rather than wget, chmod, and then execute, you can curl and pipe said script directly into bash with …

How To Check IP Address In Linux

In this guide I will be showing you how to check both your internal and external IP addresses in Linux. The difference between these two types of IP addresses are that external IP addresses are the IP addresses that servers and other computers will see whenever there is a connection, while the internal is for communicating with your switch, router, …

How To Connect To OpenVPN In Linux

In this guide I will be showing you how to connect to your OpenVPN server using a Linux desktop. The following guide should work regardless of whether you are running Debian, Ubuntu, Fedora or any other Linux distribution.  You will need root or sudo access in order to connect to your VPN.

How To Change Time Zone In Linux

Today I will be showing you how to quickly and easily change your time zone on a Linux system. To do this we will be searching for the closest time zone file New York for example, and then copying it over /etc/localtime. This file is what your system uses to get the local time, you should not try to edit …

Restarting vs Reloading A Linux Service

If you are making changes to configuration files such as Apache or Postfix for example, you will need to either restart or reload the service for the changes to take effect. So what is the difference between a Linux service reload and a Linux service restart?

Display Password Change Requirements To Users

In this guide I will show you how to display the password requirements you have setup for your system to users when they are changing their password. The reason this is necessary is because usually they will not have any idea what the password requirements actually are. What we are going to do is add an extra function and alias …

How To Use Background And Foreground Processes

Today I will be showing you how to use background and foreground processes in Linux. What is a background process? You can send processes to the background when you don’t need to interact with them right away in order to continue using your current shell. You can actually have multiple background processes at the same time and switch back and …

How To Use The NOHUP Command

Today I will be showing you how to use the Linux nohup command. What the nohup command does is lets you run a script or command without fear of it exiting if you close your session while it is still running. For example if you have a spotty WIFI connection and need to execute an automatic script that will take …

Using The Date Command With Examples

In this easy guide I will be showing you how to use the Linux date command. The date command can be used to see what the date is, what time it is, as-well as set system time (with root/sudo privileges). I will give a few examples as-well as explain the options below since you can format the output to get …