Tag: bash Archive

Linux Command: cp (Copy)

Published on September 12, 2023 at 10:51 am by LEW

Introduction

The cp command is part of the Linux Core Utilities. It can be thought of as an acronym for copy or copy-paste if you like. It is used to create copies of files and directories. (more…)

SharePin It!

The Linux Command Line Part 2

Published on January 12, 2023 at 6:57 pm by LEW

Introduction

In this post we will be discussing some basic features of the Linux terminal and the bash shell. This is a basic introduction, and will focus on general setup. As per the previous post, we are taking a simplistic approach, as this series of posts is for those relatively new to using a terminal. (more…)

SharePin It!

Variable Odds and Ends! Shell Scripting Part 6

Published on September 16, 2022 at 6:18 pm by LEW

Introduction

In this post we will cover a few odds and ends of variables in bash scripting. Specifically local variables, variable expansion, and variable arrays. With the information presented in this series of posts, you should be able to write some bash shell scripts that can assist you in a variety of tasks. (more…)

SharePin It!

Using Functions! Shell Scripting Part 5

Published on September 15, 2022 at 1:02 am by LEW

Introduction

Today we will take a look at how to use functions in bash scripts. This is important, because functions in bash perform a little differently than in other programming languages. (more…)

SharePin It!

User Input! Shell Scripting Part 4

Published on September 12, 2022 at 6:27 pm by LEW

Introduction

In this installment we are going to up the complexity a little. We will be collecting input from the user while the script is running, and introducing a couple of new structures (while loop and case). (more…)

SharePin It!
Next Page »