Sick of typing
every time you want to navigate to the documents folder on your Nokia N800 using xterm? Sick of typing any long commands?
The good news is you don't have to if you don't want to. You can easily create your own commands, or aliases, which carry out long command line operations like the one above.
All you need to do is create a text file called .profile, which you store in the home directory, /home/user/
In this file, you list your aliases, like this:
alias docs='cd /home/user/MyDocs/.documents/
alias home='cd /home/user/
and any other commands you want to make aliases for.
Once you restart xterm, (make sure it's the latest version), you'll have these commands at your disposal. In other words,
will execute the command
leaving you with more time to play golf, swim, search for the ultimate grits, or whatever else takes your fancy.
Which is nice.
How do you make a text file? There's lots of ways to do this, but one easy way is to download MaemoPad using the application manager.
1. Download MaemoPad and start it up
2. Go to File New to create a new file
3. Type in your aliases, as described above.
4. Save the file in your documents folder, giving it any name you like, such as aliases. You can't save a file in MaemoPad with a dot at the beginning of the name, so don't bother trying to name it .profile - it won't let you
5. Now we are going to move the file you just made into the /home/user directory, which is where it has to go, and rename it. Start up xterm, and type
mv /home/user/MyDocs/.documents/aliases /home/user/.profile
6. Pause to reflect that that was the last time you will ever have to go through the tedious process of typing "/home/user/MyDocs/.documents/" thanks to your new .profile file, restart your xterm, and go and have some healthy outdoor fun.