Enrollments closing soon for Post Graduate Certificate Program in Applied Data Science & AI By IIT Roorkee | 3 Seats Left
Apply NowLogin using Social Account
     Continue with GoogleLogin using your credentials
We have to use -r
or -R
option with cp
to copy directories. Remember, the directory gets copied along with it's sub-directories.
Create a directory "src"
mkdir src
Create a file in "src"
touch src/myfile.txt
Create a directory "proj"
mkdir proj
Copy the src into "proj"
cp -r src proj
Taking you to the next exercise in seconds...
Want to create exercises like this yourself? Click here.
Note - Having trouble with the assessment engine? Follow the steps listed here
Loading comments...