Skip to Content
Learn Linux Shell Scripting - Fundamentals of Bash 4.4
book

Learn Linux Shell Scripting - Fundamentals of Bash 4.4

by Sebastiaan Tammer
December 2018
Beginner
452 pages
12h 17m
English
Packt Publishing
Content preview from Learn Linux Shell Scripting - Fundamentals of Bash 4.4

Chapter 6

  1. Which command do we use to copy files in Linux? cp.
  2. What is the difference between moving and renaming files? Technically, there is no difference. Functionally, moving changes the directory a file is in, while renaming keeps the file in the same directory. Both are handled in Linux by the mv command.
  1. Why is the rm command, used to remove files under Linux, potentially dangerous?
    • It can be used to recursively delete directories and anything in them
    • It does not (by default) present an 'Are you sure?' prompt
    • It allows you to delete files using wildcards
  2. What is the difference between a hard link and a symbolic (soft) link? Hard links refer to the data on the filesystem, while symbolic links refer to the file (which, in turn, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Bash Scripting Fundamentals

Bash Scripting Fundamentals

Sander van Vugt

Publisher Resources

ISBN: 9781788995597Supplemental Content