Which of the following commands creates or, in case it already exists, overwrites a file called data with the output of ls?
A. ls 3> data
B. ls >& data
C. ls > data
D. ls >> data
E. ls >>> data
Which of the following commands creates or, in case it already exists, overwrites a file called data with the output of ls?
A. ls 3> data
B. ls >& data
C. ls > data
D. ls >> data
E. ls >>> data
Tested in Linux Mint “ls > data” works