Category: Bash

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 …

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 CAT And Bash Redirection To Write To Files

In this post I will show you how to use bash redirection to write to a file using the cat command. This is a very simple trick that you can use for all sorts of things when it comes to bash scripting including setting up certain configuration files when more powerful options aren’t available or aren’t worth using. You can …