149k views
3 votes
Move myguitar.txt to the directory "Guitar" with name guitartouchmkdir.txt Next Create five files name "file1.txt", "file2.txt", "file3.c", "file4.cpp", "file5.html" and place them in the Desktop directory.

1 Answer

2 votes

Final answer:

To move a file to a specific directory and change its name, you can use the 'mv' command in the command line. To create files and place them in a specific directory, you can use the 'touch' command.

Step-by-step explanation:

To move the file named myguitar.txt to the directory Guitar and change its name to guitartouchmkdir.txt, you can use the following command in the command line:

mv myguitar.txt Guitar/guitartouchmkdir.txt

To create the five files file1.txt, file2.txt, file3.c, file4.cpp, and file5.html and place them on the Desktop directory, you can use the following commands:

touch Desktop/file1.txt

touch Desktop/file2.txt

touch Desktop/file3.c

touch Desktop/file4.cpp

touch Desktop/file5.html

User Prostagma
by
7.4k points