Flashcards
Ch 2.18 Inout-output redirection
Cards in this deck (6)
- 1What is the name of directory of black hole of Linux/dev/null
- 2Find lines starting with The in /etc/ directory and redirect errors to /dev/nullgrep -r '^The' /etc/ 2>/dev/null
- 3Find lines starting with The in /etc/ directory and redirect output to output.txt' errors to errors.txtgrep -r '^The' /etc/ 1>output.txt 2>errors.txt
- 4Find lines starting with The in /etc/ directory and mix normal text with output into all_output.txtgrep -r '^The' /etc/ 1>all_output.txt 2>&1
or
grep -r '^The' /etc/ all_output.txt 2>&1 - 5sort EOF - fill laterfill later
- 6Calculate 1+2+3 and print it outbc <<< 1+2+3
Information
- Description
- Easy KodeKloud - Linux Flashcards on Ch 2.18 Inout-output redirection, created by Archimed Nemes on 26/04/2022.
- Created by
- Archimed Nemes
- Views
- 1
- Rating