‫So redirection is a feature in Linux, so that when executing a command, you can change the standard
‫input output devices.
‫The standard input device, of course, is a keyboard in the standard output device is the screen.
‫But check this out.
‫A single greater than symbol is used to overwrite the output file with the result set.
‫The double greater than symbol is used to upend the result set to the target file.
‫The single less than symbol is used to add the results as an input for another command.
‫As you may remember, we practiced output redirection while running the cat in echo commands.
‫I wonder if you noticed?
‫Well, let's try it here and see if you recognize.
‫So first run, Echo Hello, World, single greater than my text file.
‫Now, look at the content of the file.
‫We overwrite the file.
‫So this time, let's use a double greater than symbol.
‫And this time we add a new line to the text file.
‫So let's use input redirection.
‫So in the previous lectures, we looked at the Etsy or Etsy slash password file, and that contains
‫a list of the system's accounts.
‫There were some values on a line separated by a colon.
‫Run cut, dash de colon dash F1 less than ETSI slash password.
‫So in the first command, we got the first values of each row with the dash of one parameter.
‫We needed a delimiter to separate them, and we use the colon for this with the dashti parameter.
‫So he gave the Etsy slash password file as the input to the first command by using input redirection.
‫So do you remember what this fire looked like before?
‫And as you can see, we extracted the first column of each line.