103 GNU and Unix Commands KA Flashcards
103.1 Work on the command line
Key Knowledge Areas:
Use single shell commands and one line command sequences to perform basic tasks on the command line.
Use and modify the shell environment including defining, referencing and exporting environment variables.
Use and edit command history.
Invoke commands inside and outside the defined path.
Use single shell commands and one line command sequences to perform basic tasks on the command line.
Practice using single shell commands. However, to use a line of commands then try the following:
pipe = |
separate commands = ;
Pipes will pass data via stdout from one command to the next. Whereas ; will execute one command after another and display any output to stdout vs. passing it on.
Use and modify the shell environment including defining, referencing and exporting environment variables.
Shell environments can be displayed by typing env or printenv into the CLI. when setting environmental variables they need to be exported using the export command. So env var1=test will add var1 to a temporary environment. To permanently change the environment use export var1=test. If changes just need to be made to the shell variables then use set. set var2=test will create a var2 variable for the shell to use. To delete any environmental or shell values then just use the unset command.
Use and edit command history.
a
Invoke commands inside and outside the defined path.
a
103.2 Process text streams using filters
Key Knowledge Areas:
Send text files and output streams through text utility filters to modify the output using standard UNIX commands found in the GNU textutils package.
Send text files and output streams through text utility filters to modify the output using standard UNIX commands found in the GNU textutils package.
a
103.3 Perform basic file management
Key Knowledge Areas:
Copy, move and remove files and directories individually.
Copy multiple files and directories recursively.
Remove files and directories recursively.
Use simple and advanced wildcard specifications in commands.
Using find to locate and act on files based on type, size, or time.
Usage of tar, cpio and dd.
Copy, move and remove files and directories individually.
a
Copy multiple files and directories recursively.
a
Remove files and directories recursively.
a
Use simple and advanced wildcard specifications in commands.
a
Using find to locate and act on files based on type, size, or time.
a
Usage of tar, cpio and dd.
a
103.4 Use streams, pipes and redirects
Key Knowledge Areas:
Redirecting standard input, standard output and standard error.
Pipe the output of one command to the input of another command.
Use the output of one command as arguments to another command.
Send output to both stdout and a file.
Redirecting standard input, standard output and standard error.
a
Pipe the output of one command to the input of another command.
a
Use the output of one command as arguments to another command.
a
Send output to both stdout and a file.
a
103.5 Create, monitor and kill processes
Key Knowledge Areas:
Run jobs in the foreground and background.
Signal a program to continue running after logout.
Monitor active processes.
Select and sort processes for display.
Send signals to processes.
Run jobs in the foreground and background.
a
Signal a program to continue running after logout.
a
Monitor active processes.
a
Select and sort processes for display.
a
Send signals to processes.
a
103.6 Modify process execution priorities
Key Knowledge Areas:
Know the default priority of a job that is created.
Run a program with higher or lower priority than the default.
Change the priority of a running process.
Know the default priority of a job that is created.
a
Run a program with higher or lower priority than the default.
a
Change the priority of a running process.
a
103.7 Search text files using regular expressions
Key Knowledge Areas:
Create simple regular expressions containing several notational elements.
Understand the differences between basic and extended regular expressions.
Understand the concepts of special characters, character classes, quantifiers and anchors.
Use regular expression tools to perform searches through a filesystem or file content.
Use regular expressions to delete, change and substitute text.
Create simple regular expressions containing several notational elements.
a
Understand the differences between basic and extended regular expressions.
a
Understand the concepts of special characters, character classes, quantifiers and anchors.
a
Use regular expression tools to perform searches through a filesystem or file content.
a
Use regular expressions to delete, change and substitute text.
a
103.8 Basic file editing
Key Knowledge Areas:
Navigate a document using vi. Understand and use vi modes. Insert, edit, delete, copy and find text in vi. Awareness of Emacs, nano and vim. Configure the standard editor.
Navigate a document using vi.
a
Understand and use vi modes.
a
Insert, edit, delete, copy and find text in vi.
a
Awareness of Emacs, nano and vim.
a
Configure the standard editor.
a