Changes

Jump to: navigation, search

Tutorial5: Redirection

35 bytes removed, 13:05, 25 January 2020
INVESTIGATION 1: BASICS OF REDIRECTION
# Press <span style="color:blue;font-weight:bold;font-family:courier;">ctrl-d</span> to exit the command.<br><br>
# Issue the '''cat''' command to view the contents of the file: '''output3.txt'''<br><br>
# Issue the following Linux command: <span style="color:blue;font-weight:bold;font-family:courier;">cp ~murray.saul/uli101/cars .</span><br><br>
# Issue the '''cat''' command to view the contents of the '''cars''' file.<br><br>
# Issue the following Linux command: <span style="color:blue;font-weight:bold;font-family:courier;">cut -c1-10 uli101/cars</span><br><br>What did this command do?<br><br># Issue the following Linux command: <span style="color:blue;font-weight:bold;font-family:courier;">cut -f5 uli101/cars > field5.txt</span><br><br>What did this command do?<br><br># Issue the following Linux command: <span style="color:blue;font-weight:bold;font-family:courier;">cut -f1-3 uli101/cars > field123.txt</span><br><br>What did this command do?<br><br># Issue the following Linux command: <span style="color:blue;font-weight:bold;font-family:courier;">cut -f1,5 uli101/cars > field15.txt</span><br><br>What did this command do?<br><br>
# Issue the following Linux command: <span style="color:blue;font-weight:bold;font-family:courier;">wc cars > count1.txt</span><br><br>What information does the count1.txt file contain?<br><br>
# Issue the following Linux command: <span style="color:blue;font-weight:bold;font-family:courier;">wc cars > count2.txt</span><br><br>What information does the count2.txt file contain?<br><br>
13,420
edits

Navigation menu