Contact us |
Using mv
To use mv1. Change directory to the folder1 directory and list its contents [root@localhost root]# cd folder1 [root@localhost folder1] ls file11 file12 2. You will rename file11 and file12 in the folder1 directory to temp_file11 and temp_file12 respectively. [root@localhost folder1]# mv file11 temp_file11 3. List the contents of folder1 again. [root@localhost folder1]# ls Write down the contents: 4. Rename the file12 to temp_file12 [root@localhost folder1]# mv file12 temp_file12 5. Without changing directory rename the file21 and file22 in folder2 to temp_file21 and temp_file22 respectively. [root@localhost folder1]# mv /root/folder2/file21 /root/folder2/temp_file21 [root@localhost folder1]# mv /root/folder2/file22 /root/folder2/temp_file22 6. Without changing your current directory list the contents of folder2. What is the command to do this? Also list the output of the command?
|
Login... |
||||