Skip to main content

Both redirect stdout to file.

ls > list 

If the file exists it'll be replaced.

ls >> list 

If the file does not existsexist it'll be created. If it exists, it'll be appended to the end of the file.

Find out more: IO Redirection

Both redirect stdout to file.

ls > list 

If file exists it'll be replaced.

ls >> list 

If file not exists it'll be created. If it exists, it'll be appended to the end of file.

Find out more: IO Redirection

Both redirect stdout to file.

ls > list 

If the file exists it'll be replaced.

ls >> list 

If the file does not exist it'll be created. If it exists, it'll be appended to the end of the file.

Find out more: IO Redirection

spelling
Source Link
Albert
  • 1.3k
  • 3
  • 12
  • 19

Both redirect stdout to file.

ls > list 

If file exists it'll be replaced.

ls >> list 

If file not exists it'll be created. If it exists, it'll be appendappended to the end of file.

Find out more: IO Redirection

Both redirect stdout to file.

ls > list 

If file exists it'll be replaced.

ls >> list 

If file not exists it'll be created. If it exists, it'll be append to the end of file.

Find out more: IO Redirection

Both redirect stdout to file.

ls > list 

If file exists it'll be replaced.

ls >> list 

If file not exists it'll be created. If it exists, it'll be appended to the end of file.

Find out more: IO Redirection

Source Link
Albert
  • 1.3k
  • 3
  • 12
  • 19

Both redirect stdout to file.

ls > list 

If file exists it'll be replaced.

ls >> list 

If file not exists it'll be created. If it exists, it'll be append to the end of file.

Find out more: IO Redirection