Linux Survival
Search
Primary Menu
Skip to content
Home
Blog
Testimonials
Linux Links
Command List
Contact
Search for:
Linux Survival
Maybe we should give up on Greg Jester for a while and try to get some more interesting files from another friend. It so happens that your friend Belinda Bookie has several sports pools which she keeps online. You decide to copy Belinda's "pools" directory to your home directory, so you can set up your own pools. The regular "cp" command will not let you copy directories, but if you use the "-r" option, it will. For example, if you wanted to copy a directory called "jokes" from Jester's home directory to your own, you would type cp -r ~jester/jokes ~ This would copy the entire "jokes" directory tree. Type the command which will copy Belinda's "pools" directory to your home directory.
Page 54
Click the right arrow.
Where learning Linux is easy
Module 1 Introduction
Directory Structure
List Directory
View File Contents
Create Directory
Move and Rename File
Change Directory
Get Current Location
Quiz 1
End of Module 1
Module 2 Introduction
Pathnames
Copy File
Remove File
Remove Directory
File Security
Change File Permissions
Wildcards
Groups Memberships
Quiz 2
End of Module 2
Module 3 Introduction
Home Directories
Manual Pages
User Information
Find File
Concatenate Files
Redirect Output
Print
Print Job Status
Cancel Print Job
Quiz 3
End of Module 3
Module 4 Introduction
Copy Tree
Disk Space
Remove Tree
Process Status
Pipe Output
Pattern Matching
Kill Process
Quiz 4
Conclusion