![]() |
Command-line to File Manager
Okay, dopey newbie question ...
If I open X Term I seem to be looking at a different corner of the file universe than I'm seeing when I open the File Manager application. How do I "command line over" to look at, say, the default Documents or Games folder? Likewise how do I get to my external card? I've tried a few things, and the answer is probably obvious to anyone who is well versed in the Linux file structure and the CLI, but I ain't that guy. Thanks. |
Re: Command-line to File Manager
Various stuff lives various places in /, but there are lots of good online resources about what goes where; the relevant ones for your question are /home, which has users' home directories, and /media, where removable media shows up.
On going into xterm, you start in /home/user; this is the home directory of the user "user"; that's you. In /media, there's mmc1 (external) and mmc2 (internal). This next bit is not obvious to anyone well versed in Linux; this is maemo-specific: /home/user/MyDocs is the main folder, known by your machine's name, in the maemo filemanager. Below it are several hidden directories (In UNIX, a file is hidden by starting its name with a dot.) which are your documents, sounds, etc. folders. They're hidden so that the file manager can fake in an entry with an internationalized name without both the translated name and the original showing up. You can use cd to change directory, and ls to list files. ls -a lists all files, even hidden ones. So Code:
cd /media/mmc2 Code:
cd /home/user Code:
cd MyDocs |
Re: Command-line to File Manager
The above post is pretty through. I'll add one tip: use tab for autocompletion in a terminal. If there's more than one potential autocompletion, hit tab twice to see the possibilities.
|
Re: Command-line to File Manager
Very helpful information, thank you!
|
Re: Command-line to File Manager
To see what directories are mounted, use df (or df -h to get 'human' sizes, i.e. KB,MB)
Quote:
You will see your memory cards in /media/mmc1 and /media/mmc2, and how much space you have used and what's available still. |
Re: Command-line to File Manager
Quote:
|
All times are GMT. The time now is 14:26. |
vBulletin® Version 3.8.8