<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://maemo.octonezd.me/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=88.218.220.219</id>
	<title>Maemo Wiki Mirror - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://maemo.octonezd.me/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=88.218.220.219"/>
	<link rel="alternate" type="text/html" href="https://maemo.octonezd.me/index.php/Special:Contributions/88.218.220.219"/>
	<updated>2026-04-22T05:55:00Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://maemo.octonezd.me/index.php?title=Terminal&amp;diff=41042</id>
		<title>Terminal</title>
		<link rel="alternate" type="text/html" href="https://maemo.octonezd.me/index.php?title=Terminal&amp;diff=41042"/>
		<updated>2009-12-06T09:05:54Z</updated>

		<summary type="html">&lt;p&gt;88.218.220.219: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is for beginners to Linux that would like to try the terminal. Below are some basic commands you can use in the terminal app to get you started. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Before you start, backup your data&#039;&#039;&#039;&lt;br /&gt;
So long as your data is backed up, then you can start to try out the terminal without any fears of losing any data. This page does not cover gaining &#039;root&#039; on your device so you should come to no harm. If you are gaining root, then it would best to not only have a backup before you start tinkering, but also to familiarise yourself with how to reflash your device in extreme cases where you need to get back to where you started. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Understand what a command does before you type it&#039;&#039;&#039;&lt;br /&gt;
Fundamentally you should understand what a command does before typing it in and pressing enter. If you have a linux desktop distribution, like Ubuntu, you can normally type the command with the parameter --help to get a list of options, i.e. ls --help, or look up manual pages if installed, with man ls [enter] to find out what the commands are and their options. However you can&#039;t do this on the tablets though as the tablets use cut down embedded commands, (BusyBox - I think?), so look at [http://ss64.com/bash Linux commands] or [http://www.busybox.net/downloads/BusyBox.html Busybox list of Linux commands and options for each one]&lt;br /&gt;
&lt;br /&gt;
Some example commands, all here are non-destructive.&lt;br /&gt;
&lt;br /&gt;
The terminal should open with a &lt;br /&gt;
&lt;br /&gt;
 ~ $&lt;br /&gt;
&lt;br /&gt;
To exit the terminal at any time type, exit and enter, so&lt;br /&gt;
&lt;br /&gt;
 ~ $ exit [enter]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Managing Files&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To list files in a directory type ls and hit enter, so&lt;br /&gt;
&lt;br /&gt;
 ~ $ ls [enter]&lt;br /&gt;
&lt;br /&gt;
To list files in a directory with permissions, owners, time, the use the long format with ls, which is ls -l enter&lt;br /&gt;
&lt;br /&gt;
 ~ $ ls -l [enter]&lt;br /&gt;
&lt;br /&gt;
To list hidden files and directories&lt;br /&gt;
&lt;br /&gt;
 ~ $ ls -la [enter]&lt;br /&gt;
&lt;br /&gt;
To list all mp3 files on memory card mmc1&lt;br /&gt;
&lt;br /&gt;
 ~ $ ls -l /media/mmc1/*.mp3 [enter]&lt;br /&gt;
&lt;br /&gt;
To copy files use cp, so &lt;br /&gt;
&lt;br /&gt;
 ~ $ cp file file2 [enter]&lt;br /&gt;
&lt;br /&gt;
This would make a copy of file and call it file2. Note that &amp;quot;file2&amp;quot; can be a whole other path (like /home/user/MyDocs/afolder/file2).  If file2 already exists it will be overwritten.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To change directory use cd, so&lt;br /&gt;
&lt;br /&gt;
 ~ $ cd MyDocs [enter]&lt;br /&gt;
&lt;br /&gt;
To go back a level on a directory&lt;br /&gt;
&lt;br /&gt;
 ~/MyDocs $ cd .. [enter]&lt;br /&gt;
&lt;br /&gt;
To go back two levels on a directory&lt;br /&gt;
&lt;br /&gt;
 ~ $ cd ../.. [enter]&lt;br /&gt;
&lt;br /&gt;
To go back three... I think you get the idea&lt;br /&gt;
&lt;br /&gt;
BTW, the bit before the $, tells you the directory you are in. The symbol ~ means your home directory, however to find out which directory you are in&lt;br /&gt;
&lt;br /&gt;
 ~ $ pwd [enter]&lt;br /&gt;
&lt;br /&gt;
pwd stands for present working directory&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To create a directory, use mkdir&lt;br /&gt;
&lt;br /&gt;
 mkdir mydirectory [enter]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To move files use mv&lt;br /&gt;
&lt;br /&gt;
 ~ $ mv file2 mydirectory/file2 [enter]&lt;br /&gt;
&lt;br /&gt;
moving file2 to mydirectory directory&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can also use mv to rename a file&lt;br /&gt;
&lt;br /&gt;
 ~ $ mv file newname [enter]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
But what happens if I want to copy stuff into the directory I am already in do I have to type out the whole direcotry tree again. Well you can but it is much simpler to do the following:&lt;br /&gt;
&lt;br /&gt;
 ~ $ mv mydirectory/file . [enter]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The dot at the end of the command means the current directory.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Directory structure&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
One thing to note is the directory structure on a Maemo device. When you open the terminal on the device you are in the directory /home/user Equivalent to MyDocuments in Windows. The top level directory like C: drive on Windows is a / known as a root directory. Try and stay in the /home/user directory at first, or look at your memory cards which is in the directory /media. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Finding files&#039;&#039;&#039;&lt;br /&gt;
 find /media -name &amp;quot;*.jpg&amp;quot; [enter]&lt;br /&gt;
&lt;br /&gt;
Finds all files ending with a .jpg, i.e. photo files in /media directory, memory card. The * is a wildcard.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Wildcards&#039;&#039;&#039;&lt;br /&gt;
 &lt;br /&gt;
 * means any number (zero or more) of characters&lt;br /&gt;
 ? means exactly one character&lt;br /&gt;
 [a-d] means exactly one character from the range &#039;a&#039; to &#039;d&#039; (ie &#039;a&#039;, &#039;b&#039;, &#039;c&#039; or &#039;d&#039;)&lt;br /&gt;
 [xyz] means exactly one character from the set &#039;x&#039;, &#039;y&#039; and &#039;z&#039;&lt;br /&gt;
 [a-ckp1-3] means one of &#039;a&#039;, &#039;b&#039;, &#039;c&#039;, &#039;k&#039;, &#039;p&#039;, &#039;1&#039;, &#039;2&#039; or &#039;3&#039; and so on...&lt;br /&gt;
&lt;br /&gt;
So&lt;br /&gt;
&lt;br /&gt;
 find . -name &amp;quot;birthday?[bg]*&amp;quot; [enter]&lt;br /&gt;
&lt;br /&gt;
Will find any files starting with birthday, followed by any one character,  then either a lowercase b or g, with * meaning any other characters if any. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you want to stop a search, or any command for that matter use&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;Ctrl&amp;gt; c [enter]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To find a word in a file you use grep. So if you want to find the word Maemo in file mydocument you type&lt;br /&gt;
&lt;br /&gt;
 grep &amp;quot;Maemo&amp;quot; mydocument [enter]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Opening tar.gz files&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To open a tar.gz you need to unpack it, it is an archive file, like zip files. I recommend creating a new directory before unpacking, so&lt;br /&gt;
&lt;br /&gt;
 mkdir mynewdirectory [enter]&lt;br /&gt;
&lt;br /&gt;
 cd mynewdirectory/ [enter]&lt;br /&gt;
 &lt;br /&gt;
 tar xvfz myarchive.tar.gz [enter]&lt;br /&gt;
 &lt;br /&gt;
This will unpack myarchive in to mynewdirectory/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Show disk usage in megabytes&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 ~ $ du -m [enter]&lt;br /&gt;
&lt;br /&gt;
You can do fancy things and link commands together with what is called a pipe (this symbol: | ). Press Chr on the N810 or Fn on the N900 to find the pipe | symbol. You can program the terminal to show the pipe symbol, by going to tools-&amp;gt;settings and entering bar as a toolbar shortcut. What the pipe does is that it takes one program&#039;s output and gives it to another as input.&lt;br /&gt;
&lt;br /&gt;
So using du with the sort command you can list files and sort in order of megabytes,&lt;br /&gt;
&lt;br /&gt;
 ~ $ du -m | sort -r -n | more [enter]&lt;br /&gt;
&lt;br /&gt;
du -m list files in megabytes then pipes it to sort to sort it in order of megabytes, largest first, then the more command shows you one page of the screen at a time, pressing enter to show more pages.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To show disk (memory cards etc) partitions and their space&lt;br /&gt;
&lt;br /&gt;
 ~ $ df -h [enter]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Show Linux Kernel messages&lt;br /&gt;
&lt;br /&gt;
 ~ $ dmesg | more [enter]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Want more?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
There are infinite possibilities with the terminal, I&#039;d recommend using google if you want to find out more or look at [http://www.busybox.net/downloads/BusyBox.html Busybox commands]. Again to reiterate please make sure you backup your data before tinkering and when you want to try a new command, make sure you understand what it does first.&lt;br /&gt;
&lt;br /&gt;
[[Category:Users]]&lt;br /&gt;
[[Category:HowTo]]&lt;br /&gt;
[[Category:Wiki page of the day]]&lt;br /&gt;
[[Category:Power users]]&lt;/div&gt;</summary>
		<author><name>88.218.220.219</name></author>
	</entry>
</feed>