From 8ff4f2f51a6cf07fc33742ce3bee81328896e49b Mon Sep 17 00:00:00 2001 From: Patrick J Volkerding Date: Fri, 25 May 2018 23:29:36 +0000 Subject: Fri May 25 23:29:36 UTC 2018 patches/packages/glibc-zoneinfo-2018e-noarch-2_slack14.1.txz: Rebuilt. Handle removal of US/Pacific-New timezone. If we see that the machine is using this, it will be automatically switched to US/Pacific. --- slackbook/html/file-commands-copymove.html | 166 ----------------------------- 1 file changed, 166 deletions(-) delete mode 100644 slackbook/html/file-commands-copymove.html (limited to 'slackbook/html/file-commands-copymove.html') diff --git a/slackbook/html/file-commands-copymove.html b/slackbook/html/file-commands-copymove.html deleted file mode 100644 index ddb7179a9..000000000 --- a/slackbook/html/file-commands-copymove.html +++ /dev/null @@ -1,166 +0,0 @@ - - - - -Copy and Move - - - - - - - - - - - -
-

10.5 Copy -and Move

- -
-

10.5.1 cp

- -

cp(1) copies files. DOS users will notice its similarity to -the copy command. There are many options for cp , so you should have a look at the man page before using it.

- -

A common use is to use cp to copy a file from one location to -another. For example:

- - - - - -
-
-% cp hejaz /tmp
-
-
- -

This copies the hejaz file from the current directory to the -/tmp directory.

- -

Many users prefer to keep the timestamps preserved, as in this example:

- - - - - -
-
-% cp -a hejaz /tmp
-
-
- -

This ensures that the timestamps are not modified in the copy.

- -

To recursively copy the contents of a directory to another directory, you would issue -this command:

- - - - - -
-
-% cp -R mydir /tmp
-
-
- -

That will copy the mydir directory to the /tmp directory.

- -

Also if you wish to copy a directory or a file and keep all it's old permissions and -time stamps and keep it exactly the same use cp -p.

- - - - - -
-
-% ls -l file
--rw-r--r--    1 root     vlad            4 Jan  1 15:27 file
-% cp -p file /tmp
-% ls -l /tmp/file
--rw-r--r--    1 root     vlad            4 Jan  1 15:27 file
-
-
- -

cp has many more options that are discussed in detail in the -online manual page.

-
- -
-

10.5.2 mv

- -

mv(1) moves files from one place to another. Sounds simple -enough doesn't it?

- - - - - -
-
-% mv oldfile /tmp/newfile
-
-
- -

mv has a few useful command line options that are detailed in -the man page. In practice, mv is almost never used with -commandline options.

-
-
- - - - - -- cgit v1.2.3