Next: , Previous: , Up: System Interface   [Contents][Index]


12.1 File Utility Commands

This section describes some general file operation commands and quick directory commands.

See section dired for a description Hemlock’s directory editing mechanism, Dired mode.

Command: Copy File

This command copies a file, allowing one wildcard in the filename. It prompts for source and destination specifications.

If these are both directories, then the copying process is recursive on the source, and if the destination is in the subdirectory structure of the source, the recursion excludes this portion of the directory tree. Use dir-spec-1/* to copy only the files in a source directory without recursively descending into subdirectories.

If the destination specification is a directory, and the source is a file, then it is copied into the destination with the same filename.

The copying process copies files maintaining the source’s write date.

See the description of Dired Copy File Confirm, page copy-confirm, for controlling user interaction when the destination exists.

Command: Rename File

This command renames a file, allowing one wildcard in the filename. It prompts for source and destination specifications.

If the destination is a directory, then the renaming process moves file(s) indicated by the source into the directory with their original filenames.

For Unix-based implementations, if you want to rename a directory, do not specify the trailing slash in the source specification.

Command: Delete File

This command prompts for the name of a file and deletes it.

Command: Directory (bound to C-x C-d)
Command: Verbose Directory (bound to C-x C-D)

These commands prompt for a pathname (which may contain wildcards), and display a directory listing in a pop-up window. If a prefix argument is supplied, then normally hidden files such as Unix dot-files will also be displayed. Directory uses a compact, multiple-column format; Verbose Directory displays one file on a line, with information about protection, size, etc.


Next: Printing, Previous: System Interface, Up: System Interface   [Contents][Index]