Colorado Technical University
Instructor Jeffery Scheetz
Intro to UNIX
1- Description of filters: Is a small and usually specialized program in UNIX-like operating systems that transform plain text data in some meaningful way be used other filters and pipes to form a series of operations that produce highly specific results. The three standard files every filter uses are * Standard input.
* Standard output.
* Standard error.
2- Description of pipes: The symbol | is the Unix pipe symbol that is used on the command line. What it means is that the standard output of the command to the left of the pipe gets sent as standard input of the command to the right of the pipe. Note that this functions a lot like the > symbol used to redirect the standard output of a command to a file. However, the pipe is different because it is used to pass the output of a command to another command, not a file.
3- Description of redirection: Redirection is usually thought of in terms of redirection operators, which can be used to switch both the source and the destination of standard streams of data in commands. They can be classified as input, output, error and pipe. Redirection operators are formed mainly from three characters: the leftward pointing angle bracket ( < ), the rightward pointing angle bracket ( > ) and the vertical bar ( | ). In some cases the ampersand ( & ) and the numeral 2 are also used.
* In the first step, I typed this command ls /etc then hit enter. A huge list of all the files in alphabetical order popped out. when I typed ls, I asked to give me the lists of the files in the current directory.
ls /etc | grep conf
* Ls /etc | grep conf, when I entered that and hit enter, it replied that: “No such file or directory”. That means that I asked for a file name grep...
Please join StudyMode to read the full document