Linux please don't copy other answers
this is the third time when i post it Please don't answer unlessposting a different solution.
do not just copy paste from other answers questions.
L1 sec 3
Working with Files and Output Redirection (> and>>): Enter a command, using output redirection(>),
1, to send the output of the date command to a file calledtodaysdate. What command did you enter? .
2, Enter 2 different commands to view the contents of thetodaysdate file? _____) and ______.
3,,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?
4,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?
5) . Enter a command, which will display the last 10 lines ofthe todaysdate file:
6) . Now, enter a command, which will display ONLY the first 3lines of the todaysdate file:
7.) . 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 allquestions 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