I was wondering what the difference is between ls > list and ls >> list is and what the purpose of these commands is?
Asked
Active
Viewed 9,857 times
1
1 Answers
3
> writes to a file, replacing its contents. >> appends to a file, adding on more contents. this is set up by the shell with a open file descriptor (handle) passed on to the program (ls in your case)
Skaperen
- 716
ls? Or the two redirection operators>and>>? Does this answer your question? – terdon Sep 11 '15 at 10:58