Tag: linux commands

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, …

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 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 …

Running Commands Automatically Over SSH

In this quick and simple post I will be showing you an easy way to automatically run commands over SSH. This method works great with bash loops if you need to run the same commands over multiple servers. Using this method automatically disconnects once the command or commands are finished executing, you will receive the full output however.

How To Kill Processes In Linux

Today I will be showing you how to kill Linux processes. There are a few ways to accomplish this and I will be highlighting them all below. If I miss anything then feel free to comment below and I will add the information to this post as-well.

How To Use The Shred Command In Linux

While you can use the dd command to overwrite your files, you can also use shred. Shred by default will overwrite your files 3 times and is designed to make it very hard to recover those files. There are several options you can use such as how many times you wish to overwrite the specified file or files, how many …