From the course: Red Hat Certified System Administrator (EX200) Cert Prep: 1 Deploy, Configure, and Manage (2021)
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Use input-output redirection (>, >>, |, 2>, and more)
From the course: Red Hat Certified System Administrator (EX200) Cert Prep: 1 Deploy, Configure, and Manage (2021)
Use input-output redirection (>, >>, |, 2>, and more)
- [Instructor] Every command has one input, standard in and two outputs, standard out and standard error. A pipe sends standard out from one command to the standard in of another. A redirect works in a similar manner, but the source of destination is the file system. By default, the output of a command goes to the screen. This includes standard out and standard error. Standard out is the successful output from a command. Standard error is used for error messages. Redirection allows us to split these two outputs individually. We can redirect either output or both to a disk. Commands also have a standard in. If we wanted to redirect a file to a command, we can with a redirect toward the command. Once the command has processed the output, we can then redirect that output back to the disc. Let's see what this looks like using commands. To redirect standard out from a command to a file, use a greater than symbol. One greater…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Use input-output redirection (>, >>, |, 2>, and more)5m 2s
-
Use grep and regular expressions to analyze text5m 55s
-
(Locked)
Archive files using tar4m 40s
-
(Locked)
Compress files and archives4m 14s
-
(Locked)
Create files and directories5m 18s
-
Copy files and directories5m 48s
-
(Locked)
Move files and directories4m 59s
-
(Locked)
Remove files and directories6m 2s
-
(Locked)
Create hard and soft links4m 55s
-
(Locked)
Introduction to vim3m 33s
-
(Locked)
Editing text with vim2m 45s
-
(Locked)
Locate, read, and use system documentation5m 2s
-
(Locked)
Locate and interpret system log files6m
-
(Locked)
Reading the system journal3m 18s
-
(Locked)
-
-