📚 Practice Mode
Linux/Unix Shell Scripting Basics
Learn at your own pace with hints and detailed explanations
1 / 8
Multiple Choice
You are executing the following commands in a shell $ cp ~/myfile.dat /media/mounted/ext/drive1/newmyfile.dat $ cd /media/mounted/ext/drive1 $ mv newmyfile.dat oldmyfile.dat and now you are asked to display the long listing of the file "newmyfile.dat". Which of the following will you use ?
- ls -lrt !cp:2
- ls -lrt !mv:1
- ls -lrt /media/mounted/ext/drive1/newmyfile.dat
- a and b will give "Command not found error" and c will work fine and all other options are incorrect.
- a,b and c will give correct results.