Skip to content

Latest commit

 

History

History
61 lines (36 loc) · 3.85 KB

new_to_bash.md

File metadata and controls

61 lines (36 loc) · 3.85 KB

New to Bash?

""

Do you need to how to use the "shell" (or bash, the command line, or the terminal) and don't know where to start? This guide will provide a very brief overview of what these are, and will give you some resources where you can find more information.

What is the Shell?

The "shell" is an program that allows you to interface with your computer by passing commands directly to the operating system. One of the most common shell programs is called a bash shell (this is what is used in the Arcus Labs). Usually, users interact with the bash shell using a command-line interface, or CLI. In the Arcus Labs, this interface is called the Terminal.

Why use bash in the Terminal?

Interacting with a computer using bash and a CLI like the Terminal has several benefits:

  • Preparing files for processing, and actually processing them, can be time-consuming and error-prone to do one file at a time.
  • By writing bash scripts and running them in the Terminal, you can repeatedly perform a series of commands on a file (or multiple files).
  • Bash scripts can make use of other programming languages (like R or Python), other applications, and APIs.
  • Using scripts (which can be saved and run over and over again on new data) helps make your analyses reproducible!

Resources

Bash can be challenging to learn, but you have several options when it comes to growing in your skills.

We have created several bash training modules as part of the DART (Data and Analytics for Research Training) program.

DART includes dozens of data science modules that are each 1 hour or less in duration and with a narrow focus and clear learning objectives. They are asynchronous and you can take them at any time!

Training modules:

Bash / Command Line 101

Bash: Searching and Organizing Files

Bash: Conditionals and Loops

Bash: Combining Commands

Bash: Reusable Scripts

Additionally, beyond the DART modules, we have other articles and miscellany we suggest, whether those are resources we've created in Arcus.

Compendia of Resources:

Tutorials:

Cheat sheets: