LinuxCommandLibrary

edit

MIME-type aware file editor launcher

TLDR

Edit a file using mailcap configuration

$ edit [filename]
copy
Using run-mailcap directly
$ run-mailcap --action=edit [filename]
copy

SYNOPSIS

edit filename

DESCRIPTION

edit is an alias for run-mailcap's edit action. It opens files in the appropriate editor based on MIME type configuration in mailcap files.
The actual editor used depends on the file type and system mailcap configuration.

PARAMETERS

filename

File to edit

CONFIGURATION

/etc/mailcap

System-wide MIME type to application mappings.
~/.mailcap
User-specific MIME type overrides.

CAVEATS

Debian/Ubuntu specific. The editor used depends on mailcap configuration and MIME type detection.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community