Dired is the main mode for Emacs file-manager operations. The name “Dired” stands for “directory editor”.
A single Dired buffer can display the contents of a single directory, or it can include listings of one or more sub-directories. A Dired buffer can alternatively display an arbitrary set of files and directories, from any file systems.
A Dired buffer can display a filtered subset of directory contents, and it can show either just file names or additional file details.
All the operations you expect from a typical file-manager application are available in Dired, plus some that are specific to Emacs.
You can use ‘C-x C-q’
to make a Dired buffer editable. This enters WDired mode (writable Dired). For example, you can use this to bulk-rename files, or to change file ownerships and privileges.
You can operate on multiple files after marking them. The usual mark is ‘*’
, but the mark used for deletion is ‘D’
. ‘D’
marks are also called flags, and the operation of marking with ‘D’
is also called flagging.
You visit a directory in Dired mode using key bindings ‘C-x d’
, ‘C-x 4 d’
, and ‘C-x 5 d’
.
The menu bar is helpful for learning operations and key bindings. As always, ‘C-h m’
provides information on the mode. Consult the Emacs manual (‘C-h r’
) for more info – choose Dired under Advanced Features. You can also read about Dired online.)
dired-x.el
.dired-aux.el
.‘find-dired’
and ‘find-grep-dired’
with only Emacs Lisp code.‘dired’
M-d >
’ opens Dired on the marked file and directory bookmarks (only).‘C-j’
jumps among different “views” or states of the same Dired buffer.‘J’
in Dired (or ‘C-x j d’
globally).‘M-b’
bookmarks each of the marked files and dirs.dired.el
, dired-aux.el
, and dired-x.el
in many ways. (see also: DiredPlus)‘avfs’
support, coloring and more.‘dired-jump’
(‘C-x C-j’
)‘file-name-history’
.‘find-file’
(‘C-x C-f’
) and related commands with Dired‘insert-directory’
so that Dired’s second header line lists the number of files: files 691
space used 49439 available 56233408
C-M-<
’), that is, names that you previously saved as an Emacs fileset or as an Icicles completion candidates set.‘isearch’
in Dired, but match only file names‘isearch’
in Dired mode, no need to use keys to activate ‘isearch-mode’
.‘find-dired’
.CategoryDirectories CategoryFiles CategoryModes CategoryProgrammerUtils