Marks vs Flags Dired Shell Commands in Dired
This section describes the basic Dired commands to operate on one file or several files. All of these commands are capital letters; all of them use the minibuffer, either to read an argument or to ask for confirmation, before they act. All of them give you several ways to specify which files to manipulate:
*
', the command operates
on all those files.
Here are the file-manipulating commands that operate on files in this
way. (Some other Dired commands, such as ! and the `%
'
commands, also use these conventions to decide which files to work on.)
C new RET
|
Copy the specified files (
If |
D |
Delete the specified files ( |
R new RET
|
Rename the specified files ( Dired automatically changes the visited file name of buffers associated with renamed files so that they refer to the new names. |
H new RET
|
Make hard links to the specified files ( |
S new RET
|
Make symbolic links to the specified files ( |
M modespec RET
|
Change the mode (also called ``permission bits'') of the specified files
( |
G newgroup RET
|
Change the group of the specified files to newgroup
( |
O newowner RET
|
Change the owner of the specified files to newowner
(
The variable |
P command RET
|
Print the specified files ( |
Z |
Compress the specified files ( |
L |
Load the specified Emacs Lisp files ( |
B |
Byte compile the specified Emacs Lisp files
( |
A regexp RET
|
Search all the specified files for the regular expression regexp
(
This command is a variant of |
Q from RET to RET
|
Perform
This command is a variant of |
One special file-operation command is +
(dired-create-directory
). This command reads a directory name and
creates the directory if it does not already exist.