What is the proper way to redirect the output of the ls command to a file named LS txt?

Giang Phạm

New member
What is the proper way to redirect the output of the ls command to a file named LS txt?
Answer
The command ls *. txt will be run, then redirect the result to STDOUT. This result, rm -f *. txt will be now executed because of the backquotes.
 

Tìm kiếm

Back
Top