In Linux, how do you save the output of running "ls" to a file, called "ls.output", that does NOT already exist.
Answer
ls > ls.output
^^ note if ls.output already existed, it would be overwritten with output of ls.
Question
In Linux, how do you save the output of running "ls" to a file, called "ls.output", that does NOT already exist.
Answer
?
Question
In Linux, how do you save the output of running "ls" to a file, called "ls.output", that does NOT already exist.
Answer
ls > ls.output
^^ note if ls.output already existed, it would be overwritten with output of ls.
If you want to change selection, open document below and click on "Move attachment"
8. Streams and sed -- The Stream Editor hat contain the word GNU and one line that contains the word GNU as well as the word Linux . Then run grep GNU myfile.txt . The result is printed to stdout as usual. Now try grep GNU myfile.txt <span>> gnu_lines.txt . What is happening here is that the output of the grep command is being redirected into a file. The > gnu_lines.txt tells the shell to create a new file gnu_lines.txt
Summary
status
not learned
measured difficulty
37% [default]
last interval [days]
repetition number in this series
0
memorised on
scheduled repetition
scheduled repetition interval
last repetition or drill
Details
No repetitions
Discussion
Do you want to join discussion? Click here to log in or create user.