Monday, November 2, 2009

Introducing the Nautilus File Manager









Chapter 12. GNOME's Going Places







In This Chapter

  • Navigating and managing your file system with Nautilus

  • Discovering the applications that come with GNOME



Nautilus is the Swiss Army knife of the GNOME world. Nautilus is a file manager that helps you to graphically use and manage files, folders, and other resources found on your computer. Nautilus is developed as part of the GNOME project.


Linux directories are the same as Windows folders. I refer to Linux directories as folders when using graphical systems like file managers.


This chapter describes how to use Nautilus to navigate your Ubuntu computer. You can use this file manager to find and use files, create folders, and even browse network files.




Introducing the Nautilus File Manager


Nautilus is an open source file manager that Ubuntu supplies to help you maneuver around your computer. Nautilus is equivalent to Windows Explorer and provides all the facilities that you need to work with files, folders, and network file shares.


You can start Nautilus by either

  • Double-clicking any desktop icon.

  • Clicking the Places menu and choosing any of the options (other than Search for Files).


Each option opens Nautilus within a specific context. The Nautilus contexts associated with each menu option are

  • Home Folder: Opens with a view of your home directory. Figure 12-1 shows an example.


    Figure 12-1: You can navigate to your files and folders in the home directory view.



  • Desktop: Displays your desktop directory in your home directory.

  • Computer: Shows your computer disk drives. Figure 12-1 shows a typical computer setup.


    Figure 12-1: Select any of your computer's storage devices in the Computer folder view.



  • CD/DVD Creator: Opens a file manager window that you can drag files into and create a CD or DVD.

  • Network Servers: Browses network file shares. (Network file shares are folders that appear to be on your Ubuntu computer, but are really located on another machine and are accessible via a network.) See Figure 12-1 .


    Figure 12-1: Find the accessible network storage devices in the network file shares.



  • Connect to Server: Connect to a specific file share.

  • Recent Documents: Provides shortcuts to documents and files you've recently accessed.


Selecting the Search for Files option opens the — you guessed it — Search for Files dialog. Follow these steps:

  1. Type any filename or partial filename in the Name Contains text box.

    By default, Ubuntu looks for the file in your home directory.

  2. If you want to search a specific folder, click the Look in Folder drop-down menu and select the location.

    All subfolders contained within the folder — that you start your search from — are also searched. So, for example, if you start the search from your home directory and the file or folder you're looking for is in your Desktop folder, the file or folder will be found.

  3. Click the Find button.

    For instance, type passwd in the Name Contains text box, select File System from the Look in Folder drop-down menu, and click the Find button. Ubuntu displays all the matches in the Search Results subwindow.



Finding out what you can do in Nautilus


Nautilus contains familiar file system navigation options in the menu bar:

  • File: Open new Nautilus windows and close existing ones; create folders and empty documents.

  • Edit: Cut, copy, and paste. Use the mouse cursor to cut or copy a file or files into a temporary buffer. You then navigate to another folder to which you paste the file or files. These options let you easily copy or move files from one folder to another.

  • View: Activate or deactivate the Main Toolbar, Side Pane, Location Bar, or Status bar.

  • Main Toolbar: Contains buttons that provide shortcuts to the most commonly used Nautilus functions, such as moving Up, Forward, and Back, going to your home folder, and starting the Search for Files function.

  • Side Pane: A submenu, located on the left side of the Nautilus window, that shows shortcuts to commonly accessed places on your Ubuntu computer. Clicking any one of these shortcuts displays the specified folder, such as

    • Your home directory (folder)

    • Your desktop folder

    • The Ubuntu file system

    • Any available disk drives

  • Location Bar: Located immediately below the Main Toolbar, displaying your current location. Click the leftmost button and the current location changes from an icon to the Location text box; you can type any directory name in the Location text box to change your location to that directory. You can also click the buttons that look like magnifier glasses to zoom in and out, respectively. Finally, from the drop-down menu on the far right of the Location Bar, you can change the way files and folders are displayed, from icons to a list.

  • Go: Provides an option to move up to the parent of the current directory view. (For more information on directories, see Chapter 5.)

    You also get shortcuts to all standard Nautilus views (such as Home Folder, Desktop, and Network Servers).

  • Bookmarks: Create, edit, and delete bookmarks. Nautilus bookmarks work just like Web browser bookmarks — they create shortcuts to files and folders on your Ubuntu computer instead of the shortcuts to Web sites that Web browser bookmarks create.

  • Help: Opens a help system. Click Help and choose Contents to open a dialog that lets you search for various help topics. Selecting Get Help Online opens the Firefox browser to Ubuntu's Web site that lets you search for more help topics.


You find the Nautilus toolbar underneath the menu bar, and it provides buttons that perform frequently used operations such as moving up and down one directory.


The rest of the window is divided into three panes (subwindows):

  • Places pane: Shows the directory Nautilus is connected to.

  • Side pane: Shows shortcuts to your home and desktop directories, the computer's file system, and removable disks (for example, a CD-ROM drive).

  • Main pane: Displays all files and folders. (I can barely resist making silly puns.)




Working with files and folders


Nautilus makes it easy to create new folders and files. Simply right-click a blank portion of the Main pane and a menu opens. The first two options are Create Folders and Create Documents.



Creating new folders

There are two ways to create new folders in GNOME:

  • Right-click a blank portion of the Main pane and select Create Folders.

    A new folder opens in Nautilus, with the name Untitled Folder. You then type the name of the folder and press Enter. Your new folder is created with that name.

  • Choose FileCreate Folder.

    An Untitled Folder dialog opens. The default name — Untitled Folder — is displayed in a text box immediately below the folder icon. Type the folder's name in the text box and the folder takes that name.




Creating new files

To create a new file, right-click an empty portion of the Main pane and select Create DocumentEmpty File. An icon, initially labeled New File, opens; you can type in any name you want and press the Enter key.


Double-click the new document file and the Ubuntu default editor, gedit, opens, displaying a blank document. gedit is a good utility for creating simple documents.




Managing existing files and folders

You can go back at any time and change the name of a folder or file. Right-click an icon and select Rename from the menu. Likewise, you can delete the folder or file by right-clicking the icon and selecting Move to Trash.


Follow these steps to copy and move folders and files:

  1. Right-click the icon and select either

    • Cut: Removes the icon from the window.

    • Copy: Leaves the icon in the window.

  2. Open the folder in which you want to place the file or folder.

  3. Right-click any unused portion of the Main pane and select Paste.

    The file or folder is moved to that folder if you selected the Cut option, or copied there if you used the Copy option.


Files and folders are displayed as icons in Nautilus. You can change to a list of files by choosing ViewView as List from the Nautilus menu bar.





Starting applications


Nautilus can do more than merely list files and folders. There are a couple of ways you can use Nautilus to start graphical applications:

  • Double-click a graphical application icon.

  • Right-click a graphical application icon and select either of these:

    • Open

    • Open with other Application


For instance, these steps show how to use Nautilus to open an application that displays a clock:

  1. Open a Nautilus window.

  2. Click the Go menu, and select the Location option.

  3. Type /usr/bin/X11 in the Location text box, and press the Enter key.

    Type the preceding command exactly as shown, including the capital X in X11. Unlike Windows, Linux directory (and file) names are case sensitive. You must use exactly the same capitalization as the directory or filename. Most Linux directories use lowercase; however, the X11 directory is a rare example of a directory name that uses an uppercase character.

    Nautilus opens a view to the /usr/bin/X11 directory, where various graphical applications are stored.

  4. Double-click the Xclock icon.

    The Xclock application, shown in Figure 12-1 , opens. The Xclock application displays a simple analog clock on your desktop.


    Figure 12-1: Xclock displays an analog clock on your desktop.




You can open files using an application. For instance, clicking on a document file that has a suffix like .doc or .sxw opens with the OpenOffice.org Writer word processor.


In general, Nautilus is configured to recognize file types that have open source applications capable of opening, playing, or displaying their contents. You can also tell Nautilus to use any application to handle a file that it doesn't recognize. Right-click a file icon and select the Open with Other Application option. A dialog opens, from which you can select another application.




Finding and using network shares


Nautilus is also network aware, which means that you can browse for and use network file shares just like you do local ones. Nautilus networking works on both your private network (LAN) and on the Internet.


Nautilus understands the following network file sharing protocols:

  • FTP: The File Transfer Protocol (FTP) is as old as the Internet. FTP is used to transfer files between computers. It's simple and easy to use.

  • SFTP: This is a secure version of FTP. File transfers are encrypted when SFTP is used.

  • Windows SMB: Windows file shares use the SMB (Server Message Block) protocol. Nautilus can browse, read, and write to Windows file shares.

  • WebDAV: The Web-based Distributed Authoring and Versioning (WebDAV) protocol lets you read and write to Web servers that use this protocol.


Browse a network resource as follows:

  1. Open a Nautilus window.

  2. Choose GoLocation.

    The Location text box (similar in look and function to the Firefox Location text box) opens in the Nautilus window.

  3. Type the URL of the network resource in the text box and press the Enter key.


URLs (uniform resource locator) can be Web, FTP, or Windows file share addresses.


  • Web: Looks like http://some.web.address

  • FTP: Looks like ftp://some.web.address

  • SMB: Looks like smb://some.web.address


If your Ubuntu computer is connected to the Internet, you can view Ubuntu's FTP site by clicking the Nautilus Go menu and selecting the Location option. You type ftp://ftp.ubuntu.com/ubuntu in the Location text box. Select the anonymous login option, and you can browse Ubuntu's FTP repository, which includes

  • All the software found on the companion Ubuntu CD

  • Lots of extras, such as the XMMS music player


Nautilus provides a simple but effective search tool. Click the Search button on the Nautilus toolbar and type your search term in the Search text box. Press the Enter key, and Nautilus displays all the files and folders that meet your criteria.










No comments: