tar: create
1
1 2.6 How to Create Archives
1 ==========================
1
1 One of the basic operations of 'tar' is '--create' ('-c'), which you use
1 to create a 'tar' archive. We will explain '--create' first because, in
1 order to learn about the other operations, you will find it useful to
1 have an archive available to practice on.
1
1 To make this easier, in this section you will first create a
1 directory containing three files. Then, we will show you how to create
1 an _archive_ (inside the new directory). Both the directory, and the
1 archive are specifically for you to practice on. The rest of this
1 chapter and the next chapter will show many examples using this
1 directory and the files you will create: some of those files may be
1 other directories and other archives.
1
1 The three files you will archive in this example are called 'blues',
1 'folk', and 'jazz'. The archive is called 'collection.tar'.
1
1 This section will proceed slowly, detailing how to use '--create' in
1 'verbose' mode, and showing examples using both short and long forms.
1 In the rest of the tutorial, and in the examples in the next chapter, we
1 will proceed at a slightly quicker pace. This section moves more slowly
1 to allow beginning users to understand how 'tar' works.
1
Menu