NAME

file - Manipulate file names and attributes

SYNOPSIS

file option name ?arg arg ...?

DESCRIPTION

This command provides several operations on a file's name or attributes. Name is the name of a file; if it starts with a tilde, then tilde substitution is done before executing the command (see the manual entry for filename for details). Option indicates what to do with the file name. Any unique abbreviation for option is acceptable. The valid options are:

file atime name

file copy ?-force? ?--? source target
file copy ?-force? ?--? source ?source ...? targetDir

file delete ?-force? ?--? pathname ?pathname ... ?

file dirname name
Returns a name comprised of all of the path components in name excluding the last element. If name is a relative file name and only contains one path element, then returns ``.'' (or ``:'' on the Macintosh). If name refers to a root directory, then the root directory is returned. For example,
file executable name

file exists name

file extension name

file isdirectory name

file isfile name

file join name ?name ...?

file lstat name varName

file mkdir dir ?dir ...?

file mtime name

file owned name

file pathtype name

file readable name

file readlink name

file rename ?-force? ?--? source target
file rename ?-force? ?--? source ?source ...? targetDir

file rootname name

file size name

file split name

file stat name varName

file tail name

file type name

file writable name

PORTABILITY ISSUES

Unix

SEE ALSO

filename

KEYWORDS

attributes, copy files, delete files, directory, file, move files, name, rename files, stat
Copyright © 1993 The Regents of the University of California.
Copyright © 1994-1996 Sun Microsystems, Inc.
Copyright © 1995, 1996 Roger E. Critchlow Jr.