[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5. Managing Files

Files and directories help in organizing the information present in the computer. Usually the following are the functions you can perform on a file:
  1. Delete
  2. Copy
  3. Move
  4. Search

5.1 Managing Files using GMC  
5.2 Managing Files using Konqueror  
5.3 Managing Files using Midnight Commander  


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.1 Managing Files using GMC

See section 4.1 GMC, if you do not know what GMC is . There are two main windows within the GNOME File Manager. On the left is the tree view, which represents all of the directories on your system by their hierarchical position. On the right is the directory window, which will show you the contents of the directory which you have selected in the tree view.

To select a directory in the tree view simply use a single mouse click. This will change the main directory view, showing the files in the directory you have chosen. If there is a plus sign to the left of a directory name in the tree window, you may click on it to show sub directories. At this point the plus sign will have changed to a minus sign. If you click on the minus sign, the sub directory once again becomes hidden in the tree view and the plus sign reappears.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.1.1 Selecting files

Select a file by clicking on it. To select multiple files, press Ctrl and click on files you want to select.
You can also select by clicking and dragging the mouse cursor around several files. This action will produce a small dotted line to show you the area in which files will be selected.
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.1.2 Deleting files

Select a file by clicking on it. Left click and from the pop out menu select `delete'. You will be asked for confirmation before sending the file to trash can. You can delete multiple files.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.1.3 Copying Files

Select files which you want to copy. Right click on any of the file after selecting them. From the pop up menu select `Copy'. A dialog box will pop up asking you the destination for copying the file. Select the destination and click `OK'.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.1.4 Drag and Drop for Copying

You can also use drag and drop feature of GMC for copying files between various locations. The default action for dragging and dropping files between the directories of GMC is to move them. But you can also use drag and drop to copy a file by pressing the Shift key while dragging the file(s). You can also drag a file within the file manager to another directory. Select the file in the main window and drag it to the desired directory in the tree window.

You may also bring up a menu which lets you decide what action to perform with a drag by using the middle mouse button to drag a file or pressing the Alt key while dragging a file. Once you release the drag you will get a pop-up menu which contains the options Copy, Move, Link, and Cancel Drag.

The motto is "There's More Than One Way To Do It"!


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.1.5 Moving Files

Select files which you want to move. Right click on any of the file after selecting them. From the pop up menu select `Move'. A dialog box will pop up asking you the destination for moving the file. Select the destination and click `OK'.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.1.6 Searching for Files

In the Commands menu you will find a menu item labeled Find File.This brings up a dialog which allows you to search for particular files on your system. There will be three text boxes in the dialog box to help in defining your search criteria.

  1. Start at - The sub directory from where to start searching the file. If you want to search all the partitions enter `/' in this text box.
  2. File Name - The name of the file which you want to search. You can use wild cards here.
  3. Content - If you want to look into the contents of files for some particular text, enter that text in this text box.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.2 Managing Files using Konqueror

See section 4.2 Konqueror, if you do not know what Konqueror is . When Konqueror starts, it usually has two main windows. The left window is known as Sidebar.If you want a better view of the directory structure, or easy access to your Bookmarks, History and Network, then the `Window->Show Sidebar' option splits the window into two views.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.2.1 Selecting Files

Select a file by clicking on it. To select multiple files, press Ctrl and click on files you want to select.
You can also select by clicking and dragging the mouse cursor around several files.

You can also select files using some wild cards.

Use the Menu bar `Edit->Select...' item.Press OK and Konqueror will highlight all files with matching names. For example;


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.2.2 Deleting Files

Konqueror gives you three ways to dispose of an unwanted file or directory: The simplest way of removing a file or directory is to position the mouse pointer over its name or icon and press the right mouse button mouse button, which will bring up a menu containing the options `Move to Trash, Delete' and `Shred'.

Or, if you have "selected" the item, the Menu bar `Edit' menu will give you the choice of `Move to Trash', `Delete' and `Shred' options.

You can use your keyboard to delete.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.2.3 Copying Files

Position the mouse pointer over the file or directory you want to copy. Press the right mouse button, which will bring up a menu containing the `Copy' option. Choose that. Navigate to the directory you want to copy the item into then `Paste' the item into the new directory by using the Tool bar Paste button or the Menu bar `Edit->Paste' option or the Ctrl+V hot key, or by moving the mouse pointer to a clear area of the window and holding the right mouse button down to bring up a menu containing the `Paste' option.

Or if the item is "selected" you can use the `Copy' button on the Tool bar or the Menu bar `Edit->Copy' item, or the Ctrl+C on your keyboard.

Navigate to the directory you want to copy the item into then `Paste' the item into the new directory.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.2.4 Moving Files

Moving a file or sub-directory between directories can be done in the same way as copying, except that you choose the `Cut' option or Ctrl+X instead of Copy. The item that you have Cut will be removed from the original directory when you do the `Paste' into the new directory.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.2.5 Searching Files

In the Menu bar click on `Tools->Find file' option. This will embed the file finder application KFind into Konqueror's window.

Select the Name & Location tab, and enter the file name. Wild cards may be used as needed. The search begins in your home directory, but you can select any starting directory you wish by clicking on the `Look in' or `Browse' To start searching, click the icon (which looks like a magnifying glass over a sheet of paper) on the left of the tool bar. After a moment, a list of files will appear in the search results window. If they do not appear, you started the search in the wrong directory, made a spelling mistake in the name field, or no files meeting your search criteria.

You can supply more restrictions on your search criteria if you have more details about the file you are searching. There are more tabs where you can do this.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.3 Managing Files using Midnight Commander

See section 4.3 MC, if you do not know what Midnight Commander(MC) is. The screen of the Midnight Commander is divided into four parts. Almost all of the screen space is taken up by two directory panels. By default, the second bottom most line of the screen is the shell command line, and the bottom line shows the function key labels. The topmost line is the menu bar line. The menu bar line may not be visible, but appears if you click the topmost line with the mouse or press the F9 key.

The Midnight Commander provides a view of two directories at the same time.

You can execute commands from the Midnight Commander by simply typing them. Everything you type will appear on the shell command line, and when you press Enter the Midnight Commander will execute the command line you typed.

In this manual we will use the following abbreviations:
Cntrl-char means hold the Control key while typing the character char. Thus Cntrl-f would be: hold the Control key and type f.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.3.1 Using Mouse

The Midnight Commander comes with mouse support. Most terminal emulators (konsole,gnome-terminal,xterm etc.) can support mouse and if you use them to run MC, it will provide mouse support too.

When you left click on a file in the directory panels, that file is selected; if you click with the right button, the file is marked (or unmarked, depending on the previous state). Marking multiple files is equivalent to selecting multiple files.

Double-clicking on a file will try to execute the command if it is an executable program; and if the extension file has a program specified for the file's extension, the specified program is executed.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.3.2 Navigating

In the directory list, you can use the following commands for moving around
Up arrow, Cntrl-p : Moves one line backward.
Down arrow, Cntrl-n : Moves one line forward.
Prev Page, Page Up, Alt-v : Moves one pageful backward.
Next Page, Page Down, Cntrl-v : Moves one pageful forward.
Home : Moves to the beginning.
End : Move to the end.

There are two directory panels in MC. If you want to switch from one panel to to another, i.e. if you are working on left panel and want to move to the right panel, you can do it by:


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.3.3 Using Menus

The menu bar pops up when you press F9 or click the mouse on the top row of the screen. The menu bar has five menus: `Left', `File',`Command', `Options' and `Right'.

The Left and Right Menus allow you to modify the appearance of the left and right directory panels.

The File Menu lists the actions you can perform on the currently selected file or the tagged files.

The Command Menu lists the actions which are more general and bear no relation to the currently selected file or the tagged files.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.3.4 Selecting Files

When you left click on a file in the directory panels, that file is selected.

Selecting multiple files is known as tagging/marking in MC. To mark a file click it with the right button, the file is marked (or unmarked, depending on the previous state). You can also tag files by using the Insert key or the Control-t.

Re tagging an already marked file untags it.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.3.5 Deleting Files

To delete the currently selected file or the tagged files in the currently selected panel use F8. During the process, you can press Ctrl-c or Esc to abort the operation.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.3.6 Copying Files

Use F5 on your keyboard to pop up an input dialog with destination that defaults to the directory in the non-selected panel and copies the currently selected file (or the tagged files, if there is at least one file tagged) to the directory specified by the user in the input dialog. During this process, you can press Ctrl-c or ESC to abort the operation.
*Note* Some file operations like Rename and Copy by default use the directory of the unselected panel as a destination (don't worry, they always ask you for confirmation first).


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.3.7 Moving Files

To move files use F6 to pop up an input dialog that defaults to the directory in the non-selected panel and moves the currently selected file (or the tagged files if there is at least one tagged file) to the directory specified by the user in the input dialog.

During the process, you can press Ctrl-c or Esc to abort the operation.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.3.8 Searching Files

Alt-? executes the Find file command. (Note that the key sequence is Alt +Shift+/.)

The Find File feature first asks for the start directory for the search and the file name to be searched for. By pressing the `Tree' button you can select the start directory from the directory tree figure.


[ << ] [ >> ]           [Top] [Contents] [Index] [ ? ]

This document was generated on March, 5 2003 using texi2html
Hosted by www.Geocities.ws

1