This lesson provides tips and tricks for using the Unix shell in order to get the most out of it.
This lesson is broken into the following sections:
Tips for using the shell to navigate between directories.
Tips for utilizing the shell's command history to reference previous commands.
Tips for using the shell to create, move, copy, remove, shred, and edit files and folders as well as modifying access and creation dates for files.
Showing the creation of example files and folders that will be used in later sections to demonstrate searching, editing, and scripting with the shell.
Tips for using the find
command for files and folders.
Tips for using the grep
command to search for words, phrases, or patterns inside of files.
Tips for using sed
and ed
for editing files programmatically.
Tips for creating and running shell scripts, as well as describing the types of actions that can be performed with shell programming.
Demonstrating how to create and run shell scripts with the step by step creation of a script which edits the example files and folders.
By the end of this lesson, readers should have a strong understanding of the Unix shell's capabilities and be able to use it independently to perform a wide range of actions.
This lesson requires an installation of a Bash shell. A link for installation is included in the introduction section.
This lesson is made available under the Creative Commons Attribution 4.0 License