Changes

Jump to: navigation, search

Tutorial5: Redirection

1 byte removed, 13:35, 25 January 2020
INVESTIGATION 2: REDIRECTION USING PIPES
# Issue the following Linux pipeline command: <span style="color:blue;font-weight:bold;font-family:courier;">ls /bin/?? | sort -r | head -5</span><br><br>What did you notice?<br><br>
# Issue the following Linux pipeline command: <span style="color:blue;font-weight:bold;font-family:courier;">ls /bin/???? | sort -r | grep r | tail -2</span><br><br>What did you notice?<br><br>
# Issue the following Linux pipeline command: <span style="color:blue;font-weight:bold;font-family:courier;">ls /bin/???? | sort -r | grep r | cut -c-1c1-3</span><br><br>
# Issue the following Linux pipeline command: <span style="color:blue;font-weight:bold;font-family:courier;">ls /bin/???? | tee unsorted.txt | sort -r | tee sorted.txt | tee unmatched.txt | grep r | tail -2</span><br><br>What did you notice?<br><br>
# Check the files that were created to see how the '''tee''' command was used in the previous pipeline command.<br><br>
13,420
edits

Navigation menu