Previous Next Chapter

CLONE

The timestamp, comments, and protection bits of the FROM file are copied to the TO file.

DATES

The timestamp of the FROM file is copied to the TO file.

COM

Any comment attached to the FROM file is copied to the TO file.

NOPRO

The protection bits of the FROM file are not copied to the TO file. The TO file is given standard protection bits or r, w, e, and d.

COPY displays a requester if the COPY cannot continue. When the NOREQ option is given, all requesters are suppressed. Use this in scripts to prevent a COPY failure from stopping the script to wait for a response. With the NOREQ option, the COPY command is aborted and the script continues.

Example 1:

1> COPY File1 TO :Work/File2

copies File1 in the current directory to the Work directory in the root of the current device, renaming it File2.

Example 2:

1> COPY Chapter#? TO DF1:Backup

copies all the files whose names start with Chapter in the current directory to the Bakkup directory on the disk in DF1:. The Backup directory is created if it does not already exist.

Example 3:

1> COPY Work:Test TO " "

copies the files in the Test directory on Work to the current directory; subdirectories in Test are not copied.

Example 4:

1> COPY Work:Test TO DF0:Test ALL

copies all the files and any subdirectories of the Test directory on Work to the Test directory on DF0:. If a Test directory does not already exist on DF0:, COPY creates one.

Example 5:

1> COPY DF0: TO DF1: ALL QUIET

copies all files and directories on the disk in DF0: to DF1:, without displaying on the screen any file/directory names as they are copied. (For disks less than half full, this can be faster than DiskCopy.)

For more examples using COPY, see Chapter 8.

CPU

Sets or displays processor options.

Format

CPU [CACHE | NONCACHE] [BURST | NOBURST] [DATACAHCE | NODATACACHE] [DATABURST | NODATABURST] [INSTCACHE | NOINSTCACHE] [INSTBURST | NOINSTBURST] [FASTROM | NOFASTROM] [TRAP | NOTRAP] [COPYBACK | NOCOPYBACK] [EXTERNALCACHE | NOEXTERNALCACHE] [NOMMUTEST] [CHECK 68010 | 68020 | 68030 | 68040 | 68881 | 68882 | 68851 | MMU | FPU]

Template

CACHES/S,BURST/S,NOCACHE/S,NOBURST/",DATACACHE/S,NODATACHE/S,DATABURST/S,NODATABURST/S,INSTCACHE/S,NOINSTCACHE/S,INSTBURST/S,NOINSTBURST/S,COPYBACK/S,NOCOPYBACK/S,EXTERNALCACHE/S,NOEXTERNALCACHE/S,FASTROM/S,NOFASTROM/S,TRAP/S,NOTRAP/S,NOMMUTEST/S,CHECK/K

Location

C:

CPU adjusts various options of the microprocessor installed in your Amiga. CPU also shows the processor and options that are currently enabled.

Many options only work with certain members of the 680x0 processor family. The 68020 has a special type of memory known as instruction cache. When instruction cache is used, instructions are executed more quickly. The 68030 and 68040 have two types of cache memory: instruction and data.

If mutually exclusive options are specified, the safest option is used. Availability of the following options depends on the type of microprocessor present.

CACHE

Turns on all caches.

NOCACHE

Turns off all caches.

BURST

Turns on burst mode for both data and instructions.

NOBURST

Turns off burst mode for data and instructions.

DATACACHE

Turns on data cache.

NODATACACHE

Turns off data cache.

DATABURST

Turns on burst mode for data.

NODATABURST

Turns off burst mode for data.

INSTCACHE

Turns on instruction cache.

NOINSTCACHE

Turns off instruction cache.

INSTBURST

Turns on burst mode for instructions.

NOINSTBURST

Turns off burst mode for instructions.

FASTROM

With a processor having a supported MMU, copies the system ROM into 32-bit RAM, making access to operating system functions significantly faster. CPU then write-protects the RAM area so that the data cannot be changed.

NOFASTROM

Turns off FASTROM.

TRAP

This option is for developers only.

NOTRAP

This option is for developers only.

COPYBACK

Turns on 68040 copyback cache.

NOCOPYBACK

Turns off 68040 copyback cache.

EXTERNALCACHE

Turns on external cache.

NOEXTERNALCACHE

Turns off external cache.

NOMMUTEST

Allows the MMU settings to be changed without checking to see if an MMU is currently in use.

The CHECK option, when given with a keyword (68010, 68020, 68030, 68040, 68881, 68882, or 68851, MMU, FPU) checks for the presence of the processor indicated by the keyword.

Examples:

1> CPU

System: 68030 68881 (INST: Cache Burst) (DATA: Cache NoBurst)

1> CPU NODATACACHE FASTROM

System: 68030 68881 FastRom (INST: Cache Burst)

(DATA: NoCache NoBurst)

1> CPU NOBURST DATACACHE NOINSTCACHE

System: 68030 68881 (INST: NoCache NoBurst) (DATA: Cache NoBurst)

DATE

Displays or sets the system date and/or time.

Format

DATE [<day>] [<date>] [<time>] [TO | VER <filename>]

Template

DAY,DATE,TIME,TO=VER/K

Location

C:

DATE with no argument displays the currently set system time and date, including the day of the week. Time is displayed using a 24-hour clock.

DATE <date> sets only the date. The format for entry and display of <date> is DD-MMM-YY (day-month-year). The hyphens between the arguments are required. A leading zero in the date is not necessary. The number or the first three letters of the month (in English) must be used, as well as the last two digits of the year.

If the date is already set, you can reset it by specifying a day name. You can also use tomorrow or yesterday as the <day> argument. You cannot specify a day name to change the date to more than seven days into the future.

DATE <time> sets the time. The format for entry and display of <time> is HH:MM:SS (hours:minutes:seconds). Seconds is optional.

If your Amiga does not have a battery backed-up hardware clock and you do not set the date, when the system boots it sets the date to the date of the most recently created file on the boot disk.

If you specify the TO or VER option, followed by a file name, the output of the DATE command is sent to that file, overwriting any existing contents.

Adjustments made with DATE only change the software clock and do not survive powering off the system. To set the battery backed-up hardware clock from the Shell, you must set the date and use SETCLOCK SAVE.

Although DATE accepts and displays the date and time in a single format, programs such as Clock display the date and time according to your Locale country setting.

Example 1:

1> DATE

6-Sep-92

Example 2:

1> DATE 6-sep-92

sets the date to September 6, 1992. The time is not reset.

Example 3:

1> DATE tomorrow

resets the date to one day ahead.

Example 4:

1> DATE TO Fred

sends the current date to the file Fred.

Example 5:

1> DATE 23:00

sets the current time to 11:00 p.m.

Example 6:

1> DATE 1-jan-02

sets the date to January 1st, 2002. The earliest date you can set is January 1, 1978.

Top Previous Next Chapter