Скачать книгу

rotates to point down. You can click it again to hide the subfolder(s).

      Your home folder is where you are expected to store most of your files, such as documents and photos. It is the only place you have permission to write and edit files as an ordinary user. In Chapter 5, we look at Linux and its directory structure in more detail, but for now the key thing is to store your files and folders only in the home folder, or in any folder inside it. You can go to your home folder by clicking the Home Folder button in the bookmarks box in the top left, or clicking the icon on the navbar.

Rather confusingly, your home folder is actually a directory called pi. There is a directory called home, but that's used for storing the home folders for all of the computer’s users. Your home folder has the name pi because the default username is pi.

      The Desktop folder, inside your home folder, shows you the applications and files that are on the desktop. If you repeatedly edit a document and you want it to be on the desktop for easy access, simply move it into the Desktop folder. The Downloads folder is where you'll find files you download with the browser. The Bookshelf folder is where the Bookshelf app puts the books it downloads. There are empty folders called Documents, Music, Pictures, Public, Templates, and Videos, too. In Figure 4-4, you can also see a folder called Pimoroni that was created when Sean installed some software from the company of that name for one of its add-ons (see Chapter 21).

      Chapter 5 tells you more about the different folders on your Raspberry Pi.

Snapshot of the removable storage attached to the Raspberry Pi which is automatically detected.

      LXDE Foundation e.V. / Raspberry Pi Foundation

      FIGURE 4-5: Removable storage attached to your Raspberry Pi is automatically detected.

      

If there are folders you use particularly often, you can bookmark them — an idea borrowed from web browsers, and from (in the dim, distant past) print books before that. A bookmark makes it easy for you to go straight back to where you were. To add a bookmark to the folder you’re viewing, right-click it, and then select Add to Bookmarks. Your bookmarks are shown above the directory tree. Click one of these bookmarks to go straight to its folder.

      Underneath File Manager’s menu bar is an icon bar that includes a number of useful shortcuts (refer to Figure 4-4):

       New Window: You can have several File Manager windows open at the same time, showing different folders. If you arrange the windows side by side on your screen, you can easily move and copy files between different folders.

       New Folder: Click this button to quickly create a new folder inside the folder you’re viewing.

       View as Thumbnails, View as Icons, View as Small Icons, and View as Detailed List: Click these four buttons to change how the current folder is displayed. We particularly like the View as Thumbnails option, where the icons for some image files are replaced with the pictures themselves. It makes it easier to manage folders with lots of images in them. It works for GIF and PNG files, which are often used for artwork like logos and screenshots. Photos in JPG format still appear as icons. The detailed list view shows you the file sizes and when the files were last modified.

       Home: This button takes you back to your home folder so that you have quick access to your work.

       Previous Folder: File Manager keeps a history of the folders you view, and the Previous Folder button works a bit like a web browser’s Back button. It takes you back to the last folder you accessed. You can click it repeatedly to keep going back.

       Next Folder: After you’ve used the Previous Folder button, you can use the Next Folder button to go forward through your history again, taking you back to a folder you visited after the one you’re looking at now. If you click the Previous Folder button and then the Next Folder button, you’ll end up where you started.

       Up a Level: A folder might be inside another folder, known as a parent folder. The Desktop folder is inside your pi folder, for example, so pi is the parent folder for Desktop. Click the Up a Level button to go to the parent folder. Pressing the Backspace key (usually used when typing to delete a single character to the left of the cursor) has the same effect as clicking this button.

       Path: The path is a text description of the location of the folder you're looking at, including a list of the folders above it. Chapter 5 covers paths in depth, but if you know a path, you can type it and then press the Enter key to go straight to it in File Manager.

      

The Tools menu includes an option to Open Current Folder in Terminal, so you can use the shell to manage the files there if it’s quicker. The keyboard shortcut is F4.

      Copying and moving files and folders

      File Manager makes it easy to copy and move your files and folders, without the need for any text commands.

      When you right-click a file or folder in File Manager, a menu opens that enables you to rename the file, move it to the trash, or cut or copy it. (If you’re using British English, you’ll see Move to Wastebasket instead of Move to Trash.)

      If you cut a file, it is moved to wherever you choose to paste it. If you copy the file, a duplicate copy of it is placed where you paste it. You paste by going to the folder where you want the file to be stored and then right-clicking an empty space inside a folder and choosing Paste from the menu that appears. (If you copy or cut a file without pasting it, nothing happens to it.)

      

You can also drag files onto a folder’s icon to move them into it.

      Selecting multiple files and folders

      There are several ways to select more than one file at a time so that you can delete, copy, or move them all at the same time:

       Hold down the Ctrl key and click each of the files in turn to add them to your selected files.

       To select a group of consecutive icons (read from left to right, top to bottom), click the first icon, hold down the Shift key, and then click the last icon.

       Click

Скачать книгу