LinuxCommandLibrary

mg

micro GNU Emacs-style editor

TLDR

Open file

$ mg [file.txt]
copy
Open at line
$ mg +[10] [file.txt]
copy
Read-only mode
$ mg -R [file.txt]
copy
Open multiple files
$ mg [file1.txt] [file2.txt]
copy

SYNOPSIS

mg [options] [files]

DESCRIPTION

mg is a micro GNU Emacs-style editor. It provides basic Emacs keybindings in a small package.
The tool is lightweight and fast. It's the default editor on OpenBSD and available elsewhere.

PARAMETERS

FILES

Files to edit.
+ LINE
Start at line number.
-R
Read-only mode.
-n
No backup files.
--help
Display help information.

CAVEATS

Limited compared to GNU Emacs. No Lisp extension. Basic editing only.

HISTORY

mg was originally MicroGNUEmacs, created for systems where full Emacs was too large.

SEE ALSO

emacs(1), nano(1), vi(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community