Element 14 Raspberry Pi User Manual page 35

Table of Contents

Advertisement

Text les
head
less
cat
tail
nano
Special keys
[Ctrl]+[C]
[Ctrl]+[D]
[Ctrl]+[Shift]+[C]
[Ctrl]+[Shift]+[V]
Installing software
tar zxvf file.tar.gz
tar xjf file.tar.bz
./configure
make
make install
(needs sudo)
apt-get
apt-cache search
<keyword>
Raspberry Pi User Guide.indd 35
Displays the first 10 lines of a text file. Change
10 to any number with the
-n
dmesg | head -n 15
displays the first 15 lines of the kernel
message log.
Allows you to scroll through a text file.
Dumps the contents of a text file to the terminal.
Displays the last 10 lines of a text file. Can use the
head
. Can also keep track of a file as it changes with the
(follow) flag. For example,
tail -n15 -f /var/log/syslog
will display the final 15 lines of the system log file, and
continue to do so as it changes.
A user-friendly command line text editor (Ctrl+X exits and
gives you the option to save changes).
Kills whatever is running in the terminal.
Sends the end-of-file character to whatever program is
running in the terminal.
Copies selected text to the clipboard.
Pastes text from the clipboard.
When you unzip a program's source code, it will usually
create a new directory with the program in it.
directory and run
./configure
system has everything it needs to compile the software.
This will compile the software.
This will move the newly compiled software into the
appropriate place in your system so you can run it like a
normal command.
This can be used to install and remove software. For
example,
sudo apt-get install iceweasel
the package
iceweasel
(a rebranded version of Firefox ).
sudo apt-get purge iceweasel
will grab an up-to-date list of packages
apt-get update
from the repository (a good idea before doing anything).
will upgrade all packages that have a
apt-get upgrade
newer version in the repository.
Will search the repository for all packages relating
to keyword.
flag. For example,
-n
flag like
-f
cd
into that
. This will check that your
will install
will remove the package.
35
08/07/2014 14:44

Hide quick links:

Advertisement

Table of Contents
loading

Related Products for Element 14 Raspberry Pi

Table of Contents