Copying files and directories on the command line is far more powerful and faster than doing the same operations in the GUI. Copying directories requires adding the recursive option. The copy command can update files if they're newer than existing files, overwrite old files and even backup destination files before overwriting them.
- [Instructor] Everyday file management…requires us to copy files and directories.…We can do these tasks from the GUI…but they're usually faster on the command line.…The command we use to copy files on Linux is cp.…The syntax for cp is cp space options…space source space destination.…The options can take the form of single letters…preceded by a hyphen or complete words…preceded by two hyphens.…If they are single letters,…they can be combined into one sequence.…For instance, dash pf.…
The source file is the path to the file…you want to make a copy of.…If you want to copy multiple files,…just separate them with spaces.…You can also use file globbing covered in this course…to match multiple files.…The destination is where you want the file copied to.…Both source and destination paths…can either be relative paths or absolute paths.…Relative paths are relative to where you are.…Absolute paths start with a forward slash…and are from the root or top level directory.…You can combine relative and absolute paths…for source and destination files.…
- Define file Access Control Lists.
- Describe what extended globs add to Linux pattern matching.
- State why file system recovery tools are so important for Linux users.
- Recall what execute permissions on a directory allows.
- Cite the maximum allowed default permissions on a file in Linux.
- List some of the advantages of ACLs over standard Unix permissions.
Skill Level Intermediate
Linux: Desktops and Remote Accesswith Grant McWilliams1h 44m Intermediate
1. Linux Files
2. Manipulate Files
3. Standard Unix Permissions
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.