Save this video free

Lecture 3: Command structure; Globbing

Burton Ma · 50:53 · Watch on YouTube

Lecture 3: Command structure; Globbing Watch on YouTube →

Overview

Burton Ma explains how Bash interprets commands and how the `ls` utility uses options, arguments, and file-name patterns. The lecture covers built-ins, executables, aliases, and functions; demonstrates command discovery and help tools; and shows how globbing characters such as `*`, `?`, bracket sets, ranges, and POSIX character classes select files.

Key takeaways

Chapters

0:00 Bash Command Types: Built-ins, Programs, Aliases, and Functions
5:48 Finding Command Types and Executable Locations
8:49 `ls` Arguments, File Sizes, and Human-Readable Output
13:09 `ls -a`, Hidden Files, and Command-Line Syntax
18:30 `ls -d` and the First Uses of `*` Globbing
23:49 Reading `ls` Documentation with `--help` and `man`
31:00 Bash History and Tab Completion for Faster Command Entry
38:05 Using `*` and `?` to Match File-Name Patterns
43:09 Bracket Globs, Character Sets, and Ranges
47:49 POSIX Character Classes for Portable Globbing

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

0:03 Okay, good afternoon everybody. Uh so you can either follow along in the uh lecture slides for this particular lecture or you can just look in the bash command notebook. Um the content is almost the same uh regardless of which one you look at. So I'm just going to use the slides for now. Uh so these commands that I've been typing into the terminal um they can be one of four different things uh in Bash. Uh so either the command is something that bash understands on its own. So it's a built-in command and we talked a little bit about those in the previous lecture. Um it can be an executable program. So that is you can write your program in perhaps some other language. So C or Java or Python. Um and then you can save it somewhere on your system. um if the location of the program happens to be

0:53 known to the shell uh then you can run that program um from the shell directly right and so um uh so for example the ls program is a program that's written in C uh that's been compiled uh and is runnable for your system um and so that's a command that's available to bash right so your bash uh so your uh your shell can also run programs There are these things called aliases. So an alias is basically a shortcut that the user has created that does some task. Typically it runs some program with some command line options and some inputs. Uh and rather than typing in this long sequence of command uh this long sequence of options and inputs uh you can make a little shortcut. I don't

1:40 actually show you how to do this in the course, but if you want to just look up

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Burton Ma.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.