Linux/Unix Shell Scripting Basics
Casual Mode - Take your time!
1 / 8
Correct
0
Incorrect
0
Score
0%
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.