cp bash 1

cp bash

# use cp to copy files, -r for folders
cp  

Here is what the above code is Doing:
1. Create a new directory called “my_folder”
2. Change the current working directory to “my_folder”
3. Create a new file called “my_file.txt”
4. Create a new directory called “my_sub_folder”
5. Change the current working directory to “my_sub_folder”
6. Create a new file called “my_sub_file.txt”
7. Change the current working directory to “my_folder”
8. Copy “my_file.txt” to “my_sub_folder”

Similar Posts