13,420
edits
Changes
→INVESTIGATION 1: BASICS OF REDIRECTION
# Issue the following Linux command: <span style="color:blue;font-weight:bold;font-family:courier;">tail -2 data.txt > output.txt</span><br><br>What does this command do? Check the contents of the '''output.txt''' file to confirm.<br><br>
# Issue the following Linux command: <span style="color:blue;font-weight:bold;font-family:courier;">tail -2 > output2.txt < data.txt </span><br><br>Why does this command render the same results as the previous command?<br><br>
# Issue the following Linux command to create a file: <span style="color:blue;font-weight:bold;font-family:courier;">cat > output3.txt </span><br><br>
# Enter the follow text displayed below:<br><br><span style="font-family:courier;font-weight:bold;">This is the file output3.txt</span><br><br>
# Press '''ctrl-d''' to exit the command.<br><br>
# x