Changes

Jump to: navigation, search

Tutorial5: Redirection

406 bytes removed, 09:02, 25 January 2020
INVESTIGATION 1: BASICS OF REDIRECTION
# Issue the following Linux command: <span style="color:blue;font-weight:bold;font-family:courier;">cat listing.txt cars murray 2> result.txt</span><br><br>What information does the '''result.txt''' file contain?<br><br>
# Issue the following Linux command: <span style="color:blue;font-weight:bold;font-family:courier;">cat listing.txt cars murray > myoutput.txt 2> result.txt</span><br><br>What is displayed on the monitor? what do those files contain?<br><br>
# Make certain that your current directory is '''your home directory'''.<br><br># Issue the following Linux command run checking script:<br><span style="color:blue;font-weight:bold;font-family:courier;">bash /home/murray.saul/scripts/week5-check-1</span><br><br># If you encounter errors and re-run the checking script until you receive a congratulations message, and proceed to the next section.<br><br>
The problem with using redirection to create files, you have these files taking up space, which requires you remove them. In the next investigation, you will be learning how to issue pipeline commands which can provide information by issuing several Linux commands without creating temporary files.<br><br>
13,420
edits

Navigation menu