Copying Files Using mc

The Midnight Commander (available in the Universe repository, under the package "mc"; see Chapter 7, "Managing Software" for how to enable the Universe and Multiverse repositories) is a command-line file manager that is useful for copying, moving, and archiving files and directories. The Midnight Commander has a look and feel similar to the Norton Commander of DOS fame. By executing mc at a shell prompt, a dual-pane view of the files is displayed. It contains drop-down menu choices and function keys to manipulate files. It also uses its own virtual file system, enabling it to mount FTP directories and display the contents of tar files, gzipped tar files (.tar.gz or .tgz), bzip files, DEB files, and RPM

files, as well as extract individual files from them. As if that was not enough, mc contains a File Undelete virtual file system for ext2/3 partitions. By using cd to "change directories" to an FTP server's URL, you can transfer files using the FTP protocol. The default font chosen for Ubuntu makes the display of mc ugly when used in a tty console (as opposed to an xterm), but does not affect its performance.

Figure 13.4 shows a shot of the default dual-panel display. Pressing the F9 key drops down the menu, and pressing F1 displays the Help file. A "feature" in the default GNOME terminal intercepts the F10 key used to exit mc, so use F9 instead to access the menu item to quit, or simply click on the menu bar at the bottom with your mouse. The configuration files are well documented, and it would appear easy to extend the functionality of mc for your system if you understand shell scripting and regular expressions. It is an excellent choice for file management on servers not running X.

I Left FI le Corniaud DptIons Flight

S5-

Size

KTlme

-H

cl-

Name

Size

TT if

r

- o

yblTi

4836

Kir

Z7

01

33

/

UP—DIR

M 1 ||| 1 1 |i HI

/

Tfasli

4096

Jul

B

14

47

"crtpom

11

Kir

Z6

15

44

/

aptitude

4096

Mar

Z7

83

31

/¿If

149Z0

Kir

Z7

04

53

/

coiif lg

4096

Mar

Zb

13

48

yetc

B19Z

Jul

S

15

Z5

/

gconf

4096

Jul

8

15

05

yhDme

4836

Kir

Z7

0Z

IB

/

gconfd

4096

Jul

8

13

25

✓Inltrd

4836

Hïr

Z6

15

45

/

gnameZ

4096

Jul

8

13

14

vlib

B13Z

Kir

Z7

01

33

/

gname2_ppi[jate

4096

Mar

Zb

17

01

/ lr-, t t I I*.':,J

4315Z

Hïr

Z6

15

44

/

gstreamer-0.16

4096

Mar

Z7

02

38

ymedia

4836

Kir

Z6

15

44

/

Icons

4096

Mar

Zb

IB

28

ymnt

4836

J (ill

IB

11

11

/

Me

4096

Jul

8

13

19

yopt

4836

Kir

Z6

15

45

/

Iftp

4096

Mar

Z7

80

5Z

yproc

e

Kir

Z7

04

51

/

local

4096

Mar

Z7

82

41

yroot

■IBSb

Jul

a

15

ZB

/

mc

4096

Jul

8

13

26

/ '.i- In

B13Z

hïr

Z7

01

43

/

metaeity

4096

Mar

Zb

17

01

/ vr i'

4836

Kir

Z6

15

45

/

rnozi lia

4096

Mar

Zb

IB

27

yljoot

tint: Td use the manse cut

and paste "'- ij require n 1 (1 nj the slilit

key

isulBulmirtu

[flelp g^Viiii Hile- JJEítit UTrii:: QRentleiuQ'lhdir j.^fletf'Jj^ii 1riiPr-IJ.111

[flelp g^Viiii Hile- JJEítit UTrii:: QRentleiuQ'lhdir j.^fletf'Jj^ii 1riiPr-IJ.111

FIGURE 13.4 The Midnight Commander is a highly versatile file tool. If it does not display properly on your screen, launch it with the -a argument to force ASCII mode.

Computer Hard Drive Data Recovery

Computer Hard Drive Data Recovery

Learn How To Recover Your Hard Drive Data After A Computer Failure.

Get My Free Ebook


Post a comment