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