Question: I am being asked to code the following. Redirect the output of the ls command to a file named file-list.txt in the ~/workspace/project-log directory I

I am being asked to code the following. Redirect the output of the ls command to a file named file-list.txt in the ~/workspace/project-log directory I code this as echo "$(ls)" > file-list.txt I then get an error message saying 'ls' ~/workspace/content to match file named ~/workspace/project-log/file-list.txt content. What am I doing wrong

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!