Introduction to Computers with Ubuntu Unity
File Storage - Practical

Note:
There is a separate section of this guide describing the background and theory of file storage.

After an enjoyable afternoon of work, you want to stop for the day. You also want your work available when you start tomorrow. For that reason, you save it. Then you turn off the computer and go home.

You may recall reading that computers are really just thousands of switches, and that the switches are used to represent all sorts of information. A file is a package of information designed to be stored digitally (that is, some representation of the "on" or "off" status of switches). Remember, too, that the digital switches in an active computer depend on a steady source of electricity. The switches of digital memory are so easy to turn on and off that an interruption of electricity from a battery or from the wall outlet will let all the switches go off. When that happens, anything that was in the digital memory (also called RAM) to be lost.

You must have a way to save your work that is more permanent and secure. You cannot depend on RAM for long term storage of your work. A file is that next layer of permanence.

When you save your work, your information is duplicated into a file. The data of RAM is converted to a more stable format and stored on some kind of storage device, typically your computer hard drive. Remember "Save" duplicates RAM data into a file stored more permanently. Right after saving, there are two copies, one in RAM and the other on the disk drive. If you shut down the word processor, the only copy of your data will be on the disk drive. You want to be sure you know how to get it back.

The Graphical User Interface lets us open windows to look at the disk contents, listing the data by file name. Please take time to plan your file organization. Ubuntu has created several basic folders in a file system inside your personal Home folder. Make the most of that good start. Add sub-folders within the Documents folder to organize files. Folders for "business" and "personal" might turn out to be the first subdivision of the Documents folder. It is up to you. Do not put the job off, though.

home folder view

Folder View

When you start your computer and log into your account, the first view of your system that Ubuntu Unity gives you is the desktop.

Image: Desktop view

First, avoid the temptation to drop all your work onto the desktop. A cluttered desktop is not a wise arrangement for your computer. Instead, save your work into folders within the Home folder. Then go looking for them by clicking the Home folder icon that is near the top of the column of choices in the Dash at the left.

Note:
If you are working on a computer with a hidden Dash, slide your mouse to the left edge as if you were trying to go off the screen with your pointer. The Natick FOSS computer set up at the Natick Community-Senior Center has been set that way, for example. This guide is being developed on a basic install. Ask for help.
Image: Natick FOSS desktop
Natick FOSS Desktop Screen

Image: Home folder icon

Next, click the Documents folder icon because that's the recommended location for all the stuff you have created and saved. Start there.

Image: documents

Back to Work

If necessary, remind yourself that clicking the Launcher/Dash icons needs only a single click to activate. To open the Documents folder, you will need to double-click.

If you simply want to reopen a file, just double click the file icon. Ubuntu will identify the default tool to use when opening the file. The two files visible in the preceding illustration were both created with a word processor. Ubuntu's default word processor is LibreOffice Writer and files with the odt extension will open in Writer.

Note:
The Ubuntu list which links each file type to an appropriate application is a sensible default list. However, you can choose to override the list. To open with an different program, right click to get the context menu
Image: alternate programs

In our case, with only a basic install of programs, Ubuntu only recommends (associates) LibreOffice Writer though at the bottom of the next illustration, you can see the chance to see a list of alternatives.

Image: default program

The next illustration shows a list of available tools and even gives you the option to locate alternatives to download and install.

Image: choosing alternate program

If you double click a simple text file, Ubuntu uses a simpler program called gedit to open it.

Image: text files have a very simple format.
Image: text file program

Text files are very simple. They don't have fancy formatting options like the ones in the open source LibreOffice Writer or the proprietary (closed source) program, Microsoft Word. The biggest benefit of a text file is that it is easy to open using a wide range of word processing tools. It is a format which has been around since the early days of computing, and you should expect that 20 years from now, there will be programs that can still open the simple file format. Fancier word processing tools often have complicated, even proprietary formats. An example is that it is often difficult today to open word processor files written using the once-popular WordPerfect or WordStar programs. Even earlier versions of Microsoft Word are not well supported in the current MS-Word version.

Organizing your work

The best way to organize your work on the computer storage drive is to make a structure of folders that makes sense to you. Ubuntu has set up a top level of folders, but it is up to you to make the other folders inside the top level.

To create a new folder, move the pointer to an empty area of the Document window. Right click there. None of the file icons should highlight. You should see the context menu in the next illustration. Choose the first option "Create New Folder."

Image: make a new folder

A new icon will appear with a very generic name: "Untitled Folder", and that name will be highlighted only across the lettering. That highlighting means you can replace that name with something more useful. Just type. The highlighted text will be immediately replaced. I chose to type "personal" as my choice. Tap enter to complete the renaming.

Image:Highlighted generic folder name

Note:
Watch out. If you just tap the enter key, you'll get a folder named "Untitled Folder" which isn't too helpful. If that does happen, don't panic. Right click on the generic folder name. Choose "Rename" from the context menu which appears.
Image: Rename folder
If it turns out you have made several "Untitled" folders in the past, check that they are empty and choose "Move to Trash" from the context menu for each of them. (Trash explained below.)

If you are working on a shared computer like the one at the Natick Community-Senior Center, you might be smarter to do your storage practice using a USB removable flash drive or "thumb" drive instead of the hard drive. Your work will remain private. You'll be able to remove the thumb drive at the end of your session. The account used at the senior center is shared. You are not required to have a named user account.

When you plug in the flash drive, it will appear at the bottom of the list of storage locations at the left of the Home folder window. Click the USB drive icon to open it.

Next, let's move some of the files around. I've created some practice files on my system.

To make it easier, I named the files so it was clear what they were. Two files are business files and one is personal. To move a file, click-hold-drag the icon of the file until it is over the folder into which you want it to go. At that point, let go of the left mouse button and the file will be put into the folder. This process is called "drag-and-drop." You won't see it in the Home folder list, but if you double click the folder where you dropped it you will see the file in there.

Practice:

Of course, not all of your files need to be in a sub-folder. Any file I access over and over, day after day, I tend to put in the top level of the Documents folder. That way I can open it more quickly.

Opening Files

You remember, probably, that files have extensions. A file you write with LibreOffice Write gets a three-letter extension .odt like the two Mark_Dragon files in the preceding illustration. These files will open with the LibreOffice word processor which is great. If I want to write more or edit changes, I want to work in the word processor to do that. All I need to do is double click the file icon. Double click works whether I do the click with the pointer on the image of the icon or the name under it.

However, if you right click the icon of a file, you get a context menu with many options. The first option is "Open with OpenOffice Writer", just the same as doing a double-click. The rest of the options are sometimes useful, though. The archive options are a bit more advanced, so let's look down the list of the context menu to some more routine options.

Image: context menu

Copy and Paste

Copy is possibly the most commonly used option in this menu. It is used in combination with Paste to take duplicate a file into two locations. You would routinely do this task when heading out of your office. You would copy a file from the hard drive and paste it onto a removable flash drive. Then you could use the file when you got to your destination, duplicating it again onto the computer of a colleague.

Note:
Some people use cloud storage to deal with getting files from computer to computer. Look for more information in the section about Ubuntu One.

Practice
You can practice pasting directly to your hard drive.

Note:
If you paste in the same folder, Ubuntu will automatically rename the pasted copy.
image: copy/paste/rename

Cut and Paste

If you choose "Cut" from the context menu instead of "Copy", the file will not be duplicated. When you paste in the new location, the pasted file will be the only copy because you cut it out of the source location. Be careful.

The context menu offers you both "Copy to" and "Move to", but if you look, you'll see they don't have the range of choices that you probably want. Most times I'm copying, it is to a different drive, not to the Home folder or the Desktop.
Image: Copyto/Moveto

Trash - Recycle Bin

Folders hold files. Files are a recording of the codes which represent words and letters of text, the notes of audio or the pictures of snapshots and movies. You can decide in which folder you want to put a file. It makes sense to organize your storage with meaningful folders. When you no longer need the information in a file, you want to remove it from your storage disk. Right click the icon of the file (or the name under the icon) and choose the option "Move to Trash."

Image: Move to trash

If you prefer to use the direct mouse method, click-hold-and-drag the icon across the screen to the icon of the trash bucket. A colored outline will appear. Release the mouse button and the file will move from your documents folder into the trash folder.

Image: drag file to trash

In physical space, like a kitchen, there is an actual bucket, maybe under the counter. In a computer, there is no physical bucket. There is a special folder. The file transfers from the "Documents" folder into the "Trash" folder. The data is still there, just moved around.

Just like the physical trash bucket, the trash folder will gradually get full. The operating system of Ubuntu has a limit assigned to this folder. When the trash gets full enough, the operating system completely deletes files, starting with the ones which have been in the trash folder longest. Until then, the file is actually still on your computer storage disk.

If you want the file back, click the trash icon on the Dash Home screen so your window shows the partially filled trash folder, and select the file you want. With the file highlighted, click "Restore Selected Items" as illustrated next.

restoring a file from trash

Files fill up the trash bin gradually. They are recoverable as long as they are still in the trash. The size of the trash isn't limited by anything other than the disk space. That means you can free some space for more recent and important files by choosing the option "Empty Trash" when looking at the contents of your trash folder.

Image: empty trash


© 2013 Algot Runeman - Shared using the Creative Commons Attribution license.
Source to cite: - filedate: