1

I was wondering what the difference is between ls > list and ls >> list is and what the purpose of these commands is?

Rui F Ribeiro
  • 56,709
  • 26
  • 150
  • 232
Jess Louise
  • 1,761

1 Answers1

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