None. Same thing.
The CWD is assumed in some cases (e.g. ls
) but not
always. Sometimes a location directory is required, such as
the cp
command.
The dot allows us to refer to the current directory. For example,
in the cp
command, you can copy a file to the current
directory by using .
as the destination. I also recently saw some Python code where the import statement was
from . import foo
The mv
command requires a destination, so it's up to you.
Tarfiles and zipfiles are a suitcase that contains a copy of all the files and their contents.
The -l
command line argument (called a "switch")
requests that the ls
command give a long
listing, with lots more information on each entry. We won't use it
often, but it's occasionally useful, like how big a file is, or what
its permissions are.
Yeah, that's basically right. Here's a recursive definition:
To recursively delete a directory means to recursively delete its contents and then the directory itself.
I use rm -r
a lot. There's nothing wrong with it,
except that it does a lot, so if you delete the wrong thing, you do
more damage. It's a sledgehammer, not a mallet.
Yes, that's right. The ~/
is like the pronoun "me" or "my"
while ~wendy
refers to Wendy.
LTS backs up our server automatically every night, so deleted files from yesterday can be recovered from backups.
If you create a file and five minutes later you delete it, well, you've just lost five minutes work.
A relative pathname is a series of steps from *the starting point*, which is typically the referring file.
I suppose it's similar to a deep copy in Python, in that the contents of every file is copied into the suitcase. There are no "pointers" to existing files.
The name comes from "tape archive" so think of it like copying your files onto a tape and handing that tape to someone.
I think we will!