Using command and variable substitution we can stack up small commands to do big jobs. Command substitution allows you to execute commands in the middle of text. Variable substitution allows you to insert variables into your commands.
- [Instructor] We can insert a variable into…a text string or command line and have…the variable value substituted for the variable name.…For instance, in a terminal type echo, space,…double quote, my space name, space, is, space,…dollar sign, capital USER, double quote and hit enter.…This outputs the text my name is…followed by the value and the user variable.…As we've seen elsewhere in this course,…we need to be careful with quoting.…
In order to have variable substitution,…we need to use double quotes.…This echo command is pretty basic.…Now let's use a command to process…the value of a variable.…To set this up, let's create a couple of variables.…In a terminal, type in PDIR equals double quote…slash TMP, slash files, slash today,…double quote and hit enter.…Let's create a second variable called fname.…Fname equals double quote, report, double quote.…
And hit enter.…Variable names can be uppercase or lowercase.…Most system variables are uppercase.…Now let's use these variables in a command.…Type in mkdir, space, dash P, space,…
- Topics include:
- Shell tips and tricks
- Pattern matching with globs
- Pattern matching with extended globs
- Using the Bash shell
- Monitoring processes using ps
- Monitoring processes graphically
- Managing processes
- Job scheduling
- Limiting access to AT and cron jobs
- Managing system services
Skill Level Intermediate
Linux: User and Group Managementwith Grant McWilliams1h 8m Intermediate
1. Linux Shells Overview
2. Using the Bash Shell
3. Linux Processes
4. Job Scheduling
5. System Services
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.