[cs631apue] hopefully last question

Jan Schaumann jschauma at stevens.edu
Sun Sep 18 17:55:29 EDT 2016


mseaton <mseaton at stevens.edu> wrote:
> /home/mseaton/tcp big file
> Does this mean I need a larger buffer size?

This tests copying a large file.  I don't know _why_ your program fails,
but using a larger buffer is not likely the way to fix it.

> /home/mseaton/tcp /etc/passwd .
> Is the script trying to copy the passwd file to the current 
> directory(which is what the . means)?

Correct.  '.' refers to the current directory.

> These I am a bit confused about, from what I can see here is the script 
> is trying to copy a file from a directory to some current directory
> /home/mseaton/tcp g ./sub/dir/.

This tries to copy the file 'g' into the directory 'sub/dir' under the
current directory.

> /home/mseaton/tcp /etc/passwd ./sub/dir/.

This tries to copy the file '/etc/passwd' into the directory 'sub/dir'
under the current directory.

> /home/mseaton/tcp /etc/passwd /tmp/f

This tries to copy the file /etc/passwd to /tmp/f .

-Jan


More information about the cs631apue mailing list