The HeliOS Project, one of the main sources of confusion is the differences between Windows and Linux file systems. Most Windows users don't know much about their Program Files or Win32 folders but they do know about My Documents. In most cases, this is where their personal files, pictures, movies and music reside.
Because you are used to doing things one way doesn't mean that an alternative is any more difficult. In fact, the Linux file system hierarchy is really much simpler once you understand it. We're not going to worry about the entire file system here. We will focus on the files you use most...your personal files
It only takes most people a few minutes to understand how the Home Directory in the Linux file system works, and in Linux, your Home Directory is where your personal files are stored. Let's take a look at what we have.
There's No Place Like Home.
When we set up your computer, we create a "Home" directory. The Home directory is your main folder. When we assign a User folder for your computer, we simply name it "linux". In most cases when you receive a machine from us, your user folder will be named "linux" and it will be inside the Home folder.
First off, how do you access Nautilus? There are a few ways.
Click on the picture to the right and you will see a picture of my desktop. Depending on your desktop, you will have three drop-down menus at the top left of your computer or at the bottom left. In my case, it is at the top left. It reads:
Applications Places System
As you can see above, I have clicked on the "Places" drop-down and exposed the file systems on my computer. The top folders are the same ones available to me in my home directory. Many of you won't be concerned with multiple hard drives so don't let that confuse you. For right now, I just want you to look at the top third of that drop-down.
You will see the basic folders in your home directory. They are:
As you can see from my Home Folder, I have created many folders for my use. As well, some programs or applications you install will automatically create folders for their specific data. For example, if you were to install the file sharing program Frostwire, the installation process will place a folder called Frostwire in your home directory and store anything you download within it.
Back to the drop-down menu mentioned above...If you were to click on the "Home Folder" link in that drop-down, Nautilus would open, showing you the exact same folders. Linux gives you a way to access these folders individually using the drop-down instead of opening your home folder then opening the folder you want. Why do in two clicks what you can do in one?
Another way to access your home folder is to open Nautilus and hold-left-click your home folder and drag it onto your desktop. While it is good to have a shortcut to your home folder on your desktop, it isn't always the handiest way get to it. Most often you already have stuff opened on your computer and it can be a hassle to drop everything down just to get to your files.
A better way is to place a shortcut of your favorite folders in your panel. As you can see from the first picture I offer, I have two panels...one at the top and one at the bottom. If you have a small screen, you might want to consider only using one but in my case, I have a large monitor and screen real estate is plentiful.
The Gnome panels are the little strips you see at the top and bottom of my screen and they hold file and program icons. You can add and remove things from your panel to suite your needs. In my case, I find it best to create panel shortcuts for the most-used applications and places on my computer. Click on the picture below to see an example of my top panel.
You can easily create a shortcut to any number of folders from your home folder by opening Nautilus, hold-left-click the folder and drag it to the panel. You can then right click the folder, click "move" and then position it where you want it. To make things easier and to make sure it doesn't "float" right click it again and click "Lock to Panel". I've chosen to place my home folder shortcut in the middle of the panel so I don't have to look for it among the other icons.
There will come a time when you will want a file or folder inside another folder. Lets say you downloaded a picture of your Aunt Cecilia and it ended up in your download folder (Firefox does this automatically but you can change that folder destination if you want).
The problem is, you don't want it in your download folder, you want it in your picture folder. There are several ways to do that as well.
You can also do it the old fashioned way if you want. Maybe you want to work with several files in your download folder and move them into your picture folder. You might find it easier to drag multiple files all at one time into your target folder.
Let your fingers do the walking
Sometimes, moving your hand between the keyboard and mouse can be a time waster. Many of the commands available to you on a right click of the mouse are also available to you in keyboard shortcuts. In some cases, using keyboard shortcuts can be invaluable, especially if you are moving a lot of files or text lines from one place to another. Let's start with the copy command.
Ctrl-c Ctrl-v and Ctrl-x and Ctrl-a
These are some of the handiest shortcuts you will use. Ctrl-c is used to copy a file to your clipboard (think of it as short term memory) and allow you to paste it elsewhere. While we will be using it here to copy and paste files between Nautilus windows, remember it can also be used to copy lines or complete pages of text.
If you have multiple files to copy, simply highlight them by holding your ctrl button down and clicking on them until all the files you want to copy are chosen. If you want to choose all the files in a folder to copy, click Ctrl-a and it will highlight all the files in that folder.
Then simply press ctrl and the letter "c" at the same time. Then you can open the folder you want to copy the files to. You can also use your keyboard to paste them. You still have your hands next to the keyboard, right? Why move them back to the mouse to right click and choose paste. Simply use the ctrl button and the "v" button at the same time and it will paste those copied files where you want them.
An important note here though. If you have two Nautilus windows open, you need to make sure that the target window is "focused". Most often, when you open a new Nautilus window, the focus of the mouse or keyboard will be on the new window. You need to make sure the focus is on the file folder you want the files to copy to. If not, you will get copies of the files in the same window you copied them from. That can be frustrating. Usually, the best way to insure that the focus is in the right window is to simply click your mouse on an open part of the window.
Maybe you don't want to copy the files from one folder to another...maybe you want to physically move them. In this case, you can hold down the Ctrl button and choose the files you want to move then once chosen, press the Ctrl button and the "x" button at the same time. This will "cut" the files from the folder they are in. You can then open or choose the folder you want the files moved to and press Ctrl-v. That will then move those files into your target folder.
An important note, in your file system, when you press the Ctrl-x keys, the files you chose to move will not "disappear" from your folder until you actually paste them with the Ctrl-v keys. They stay highlighted until the actual moving of the files. Sometimes, if there are large files, your desktop will show a bar that represents the files being moved, how many are being moved and how long it will take. Moving large files across folders or hard drives can take some time so be patient and don't interrupt the process until it is finished.
This has been an extremely simple tutorial on how best to move or copy files on your Linux computer. Many expert Linux users read and contribute to this blog so its a good idea to follow the comments made by our readers. Sometimes they have better or more efficient ways of doing things so watch the comments below.
If you have any questions or if we can be of any assistance, please email us by going to http://www.heliosinitiative.org and clicking the "contact us" button.