Linux
please don't copy other answers this is the third time when ipost it
Please don't answer unless posting a differentsolution.
do not just copy paste from other cheggquestions.
L1 sec 3
7,Working with Files and Output Redirection (> and >>):Enter a command, using output redirection (>), to send theoutput of the date command to a file called todaysdate. Whatcommand did you enter? .
8, Enter 2 different commands to view the contents of thetodaysdate file? _____) and ______.
9,,Now, using output redirection with append (>>), enter acommand, which will append an ls -al listing of files at the end ofthe todaysdate file. What command did you enter?
11,Again view the contents of the todaysdate file. (Remember touse the more command if the contents of the file scroll off thescreen). Verify that it contains date output at the top and ls -aloutput at the bottom. Does it?
12.) . Enter a command, which will display the last 10 lines ofthe todaysdate file:
13) . Now, enter a command, which will display ONLY the first 3lines of the todaysdate file:
14.) . Again send the output of the date command into thetodaysdate file, using output redirection (>), and then viewthis file. What can you conclude about the difference inredirection operators (> and >>)?
please answer all questions its part of one question
Thank you
Linux please don't copy other answers this is the third time when i post it Please don't answer unless posting a differe
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am