|- in Deutsch||- in English|
This article is about the basics of the Busybox and the most used commands. Feel free to add new commands...
Start Telnet, which may look like that:
Here we use the command "
busybox", which gives us
all known Linux commands, which are supported by the Dreambox.
Commands - what is the found command good for?
The purpose or usage of a command can easily be found out by using the
-h" or "
If you are stuck and the shell is frozen, simply use Ctrl + c to exit
The command "
chmod -help" for instance leads to:
root@dm800:~# chmod -help BusyBox v1.01 (2008.11.26-20:45+0000) multi-call binary Usage: chmod [-R] MODE[,MODE]... FILE... Each MODE is one or more of the letters ugoa, one of the symbols +-= and one or more of the letters rwxst. Options: -R Changes files and directories recursively.
The command "
grep -h" for instance leads to:
root@dm800:~# grep -h BusyBox v1.01 (2008.11.26-20:45+0000) multi-call binary Usage: grep [-ihHnqvs] PATTERN [FILEs...] Search for PATTERN in each FILE or standard input. Options: -H prefix output lines with filename where match was found -h suppress the prefixing filename on output -i ignore case distinctions -l list names of files that match -n print line number with output lines -q be quiet. Returns 0 if result was found, 1 otherwise -v select non-matching lines -s suppress file open/read error messages
Important shell commands
passwd changes the passwords for user- and group accounts. A normaluser may only change his password, a superuser max change the passwords of all accounts. The administrator of a group may change the password of this group. passwd may also change the accountinformation like comment, loginshell or password-lease-time and -intervall
init 4 may change the runlevel. By calling this command init sends a stopsignal to all processes who are not defined for the new runlevel. After that the processes are "killed" and the processes for the new runlevel, who are not running yet are started. This command is especially useful at Enigma2 boxes
when system has crashed or hung up or we'd like to know something about the actions of the Enigma2 system.
init 3 restarts Enigma2 after
enigma2 also restarts the enigma2 like
init 3 after
init 4 but you can follow each step in the shell and find errors easier.
cat: is used for view files and its content
(e.g.: cat /etc/resolv.conf)
cp: is used for copying files at the box.
(e.g.: cp /tmp/DATEINAME /etc/) First name origin directory, then name target directory.
mv: means "move" and is used for moving / renaming
(e.g.: mv /etc/TESTNAME /etc/TESTNAME_NEU)
fdisk: partitioning program
mkfs: is used for formatting
fsck: command for file system checks
chmod: change of data attributes (access rights).
(e.g.: chmod 755 /usr/bin/mc).
Command makes the file mc executable.
mc: is a file manager, who is already installed on the Dreambox.
free: see memory usage (RAM)
df -h: see memory usage (storage devices)
grep: filter output (files or pipes) for characters/strings.
- grep "http" /etc/services, to show the lines from the file (/etc/services) which contain http.
- grep -v "^#\|^$" /etc/services, to show the file (/etc/services) without (-v) comments (^#) and (\|) without (-v) empty lines (^$). ^ stands for the beginning of the line and $ for the end.
find . | grep FILENAME: is the command to find a file
exportfs -v shows the shares of the NFS Server, example:
root@dm8000:~# exportfs -v /media/hdc1 192.168.0.0/255.255.255.0(rw,async,wdelay,root_squash,all_squash,anonuid=0,anongid=0) root@dm8000:~#
date: show the date and time, or set it manually.
IPKG list | grep dvb-modules is the command to show the dvb-modul (driver version).
IPKG list | grep secondstage is the command to show the version of the secondstage.
route is the command to set/show netzwork routes. With route -n the standard gateway is shown in the last line.
ifconfig is the command to set/show the network parameters. With ifconfig the IP Adress, Hardware adress, transmitted data volume etc. is shown.
opkg update && opkg upgrade is the command to reload the package sources and to update the box via Telnet ...
Tips and Tricks
echo 'alias ls="ls --color"' >> ~/.profile source ~/.profile
BusyBox on Wikipedia
More information and usage examples about the shell commands max be found at different Dreamboxboards or Linuxboards or Wikis, HowTo`s and books.