Introduction to the Bash Shell on Mac OS and Linux

This course introduces you to the basic concepts and commands you need to start using Bash on Linux and Mac OS X.
Course info
Rating
(644)
Level
Intermediate
Updated
Jul 2, 2013
Duration
3h 29m
Table of contents
Overview
First Steps
Basic File Management
Using Bash More Effectively
Filtering and Processing Text
Jobs and Processes
Customization
Description
Course info
Rating
(644)
Level
Intermediate
Updated
Jul 2, 2013
Duration
3h 29m
Description

The command line is one of the most important tools for a Linux/UNIX power user. Bash is the default login shell on Linux and Mac OS, and adding it to your skillset will open up a whole new world of possibilities. For one thing, it gives you access to a huge number of command line utilities, simplifying many everyday tasks. But Bash also provides you with a powerful scripting language for automating just about anything. For remote access and system administration, Bash is an absolute must.

About the author
About the author

After years of working in software development, Reindert-Jan Ekker has decided to pursue another passion of his: education. He currently works as a college professor of Computer Science in the Netherlands, teaching many subjects like web development, algorithms and data structures and Scrum.

More from the author
Python Best Practices for Code Quality
Intermediate
1h 15m
May 17, 2019
Pandas Playbook: Visualization
Intermediate
2h 11m
Oct 9, 2018
More courses by Reindert-Jan Ekker
Section Introduction Transcripts
Section Introduction Transcripts

Overview
Hi, I'm Reindert-Jan Ekker and welcome to this introductory course about the Bash common line shell. The goal of this course is to help you become a Linux or Micro power user by teaching you the basics of the command line. I'll start with explaining to you what bash is, what it does, and why knowing bash is a valuable skill. Next, I'll give you a short overview of the material in this course. Then I'll explain a bit about the relationship between Linux and Mac OS and what the term UNIX really means. And finally, I'll talk a bit about the philosophy behind the UNIX software that you're about to start using.

First Steps
In this module I will guide you through your first steps on the command line. First we'll take a short look at what you need to set up to start using Bash. Then, I'll show you how to actually start your first Bash session. During this first session, you'll learn how to move around on your file system and how to list files and Directories. I'm going to explain a bit about what command looks like and the various kinds of arguments you can give to a command. And I'm also going to show you how to get help, when working on the command line. Finally I'll show you a very nice feature, which is best history which makes editing a lot easier.

Basic File Management
Hi, I'm Reindert-Jan Ekker, and in this module we'll go into basic file management, with Bash. After watching this module, you'll know how to display files, what kind of characters can go into a filename, and how to use two different kinds of paths. Also, you'll be able to create, copy, move, and delete files and directories. Now this module will give you a lot of information, including quite a number of new commands. Now there's no need to try and remember all of them because there is a cheat sheet available in the exercise files and that will give you a nice overview of everything I cover in the course. So, in case your subscription gives you access to the exercise files, you can find the cheat sheet there. Also remember that you can always use the manual pages to get an overview of the available options for any command.

Using Bash More Effectively
Hi, this is Reindert-Jan Ekker and welcome to the fourth module which is titled Using Bash More Effectively. Until now we have been working with simple commands that execute a simple task but in this module we'll see how to use the same commands in a more powerful way. Now if you view the commands we've used as building blocks, Bash provides the cement that lets you put them all together to a large structure. And this module, I will introduce you to some of the features of Bash that will let you use commands more effectively. At the end of this module, you'll know how to use wildcards, which let you select groups of files in a convenient way. Brace expansion which let you generates strings on the command line. IO redirection which let you save the files at command output for later use. Pipes which pass output from one command into another command. And also command substitution which replaces a command with its output. Furthermore I'll tell you about some powerful ways of editing your input on the command line. And we'll have a short look at how to search through your history.

Filtering and Processing Text
Hi this is Reindert Ekker and welcome to this module entitled Filtering and Processing text. Now a lot of the Unix world revolves around text files. For example, most important system configuration as well as the system lock files are based on text files. So, effectively handling text files is an important skill in the Unix world. Now after viewing this module, you'll know how to edit text files, how to sort, search, and filter text, how to replace text, and also, how to find files on your file system. Finally, we'll take a look at how to handle files that contain data in columns.

Jobs and Processes
Hi. This is Reindert-Jan Ekker and welcome to this module titled Jobs and Processes. At the end of this module, you'll learn how to multitask on the command line, how to inspect processes and jobs, and how to end processes.

Customization
Hi. This is Reindert-Jan Ekker and welcome to the final module of this course called customization. In this last module, I'd like to show you how to customize your Bash environment. We'll take a look at how to set up aliases to customize commands, how to save your customization in a file, how to work with environment variables, and we'll take a look at the most important one of those, the prompt, the path, and the editor. And also we're going to see how to change your default shell.