‫So a pipe is a form of redirection, and it sends the output of one command to another command for further
‫processing.
‫So Pipe is used to combine two or more commands, and in this the output of one command acts as the
‫input of another command.
‫And this commands output may act as an input to the next command and it can continue, believe me.
‫Now, pipes, it's important to note our uni directional, right?
‫In other words, data flows from left to right through the pipeline.
‫All right, so now, you know, all that, let's try it out.
‫Now in Cali, there is an important file that stores the actual password in encrypted format for the
‫user's account with additional properties related to the user password.
‫The name of this file is Shadow.
‫It's under the slash Etsy folder.
‫So why don't we dig in and have a look at the content of this file?
‫Oh, and of course, it requires root privileges.
‫So just add pseudo to the beginning of the command.
‫OK, so these are the encrypted form of the user's passwords.
‫Let's read the first three lines of this fire with the head command.
‫So we'll combine the two commands with the pipe redirection.
‫So the output of the one command acts as an input to another command.
‫Yeah.
‫OK, so now change the directory to the slash users slash bin folder.
‫Run L s dash l pipe grip my.
‫And the command takes the output of dollar sign less dash well as its input, the net effect of this
‫command is that the output of the less dash L is displayed one screen at a time.
‫So the pipe acts as a container, which takes the output of less dash l and gives it to the grip as
‫input.