UP PREVIOUS NEXT - -Toolbox -Tecfa Manuel

4-4 La gestion de fichiers sous Emacs

Pour gérér vos fichiers Unix, vous pouvez également utiliser Emacs. Toutes les opérations UNIX sont disponibles sous unix, mais ne marchent pas forcément sour PC/MAC !. Pour accéder au "DIRED mode" il suffit d'ouvrir un répertoire avec la command C-x c-f (ou avec C-x d). Attention Emacs est un outil puissant (comme d'autres outils de gestion), ne détruisez rien par hasard!

Ensuite, tapez ? pour obtenir quelques commandes ou c-h M (pour avoir toute la liste dont nous reproduisons une partie ci-dessous:

Dired by name mode:
Mode for "editing" directory listings.
In dired, you are "editing" a list of the files in a directory and
  (optionally) its subdirectories, in the format of `ls -lR'.
 
"Editing" means that you can run shell commands on files, visit,
  compress, load or byte-compile them, change their file attributes
  and insert subdirectories into the same buffer.  You can "mark"
  files for later commands or "flag" them for deletion, either file
  by file or all files matching certain criteria.
You can move using the usual cursor motion commands.
 
Type m to Mark a file or subdirectory for later commands.
  Most commands operate on the marked files and use the current file
  if no files are marked.  Use a numeric prefix argument to operate on
  the next ARG (or previous -ARG if ARG<0) files, or just `1'
  to operate on the current file only.  Prefix arguments override marks.
  Mark-using commands display a list of failures afterwards.  Type ?
  to see why something went wrong.
Type u to Unmark a file or all files of a subdirectory.
Type DEL to back up one line and unflag.
Type x to eXecute the deletions requested.
Type f to Find the current line's file
  (or dired it in another buffer, if it is a directory).
Type o to find file or dired directory in Other window.
Type i to Insert a subdirectory in this buffer.
Type R to Rename a file or move the marked files to another directory.
Type C to Copy files.
Type s to toggle sorting by name/date or change the `ls' switches.
Type g to read all currently expanded directories again.
  This retains all marks and hides subdirs again that were hidden before.
SPC and DEL can be used to move down and up by lines.
 
If dired ever gets confused, you can type g 
 
Keybindings:
key             binding
---             -------
 
C-n		dired-next-line
C-o		dired-display-file
C-p		dired-previous-line
C-x		Prefix Command
ESC		Prefix Command
C-_		dired-undo
SPC		dired-next-line
!		dired-do-shell-command
#		dired-flag-auto-save-files
$		dired-hide-subdir
%		Prefix Command
*		dired-mark-executables
+		dired-create-directory
-		negative-argument
.		dired-clean-directory
/		dired-mark-directories
0 .. 9		digit-argument
<		dired-prev-dirline
=		dired-diff
>		dired-next-dirline
?		dired-summary
@		dired-mark-symlinks
B		dired-do-byte-compile
C		dired-do-copy
D		dired-do-delete
G		dired-do-chgrp
H		dired-do-hardlink
L		dired-do-load
M		dired-do-chmod
O		dired-do-chown
P		dired-do-print
R		dired-do-rename
S		dired-do-symlink
X		dired-do-shell-command
Z		dired-do-compress
^		dired-up-directory
c		dired-change-marks
d		dired-flag-file-deletion
e		dired-find-file
f		dired-advertised-find-file
g		revert-buffer
h		describe-mode
i		dired-maybe-insert-subdir
k		dired-do-kill-lines
l		dired-do-redisplay
m		dired-mark
n		dired-next-line
o		dired-find-file-other-window
p		dired-previous-line
q		dired-quit
s		dired-sort-toggle-or-edit
u		dired-unmark
v		dired-view-file
x		dired-do-flagged-delete
~		dired-flag-backup-files
DEL		dired-unmark-backward
 
C-x u		dired-undo
 
ESC $		dired-hide-all
ESC }		dired-next-marked-file
ESC {		dired-prev-marked-file
ESC C-p		dired-prev-subdir
ESC C-n		dired-next-subdir
ESC C-u		dired-tree-up
ESC C-d		dired-tree-down
ESC DEL		dired-unmark-all-files
ESC =		dired-backup-diff
 
% S		dired-do-symlink-regexp
% R		dired-do-rename-regexp
% H		dired-do-hardlink-regexp
% C		dired-do-copy-regexp
% r		dired-do-rename-regexp
% m		dired-mark-files-regexp
% d		dired-flag-files-regexp
% l		dired-downcase
% u		dired-upcase

UP PREVIOUS NEXT - -Toolbox -Tecfa Manuel