Element 14 Raspberry Pi User Manual page 33

Table of Contents

Advertisement

Command Line reference
Navigation and les
cd
ls
cp
wget
df -h
pwd
|
Finding les
find <location> <tests>
Raspberry Pi User Guide.indd 33
Changes directory. For example,
movies
folder.
cd ~
moves to your home directory,
moves to the root directory,
cd ..
Lists files. By itself, it lists the files in the current directory.
lists the files in the directory
ls movies
lists all files (including hidden ones), and
information about each file.
Copies files.
cp orig-file new-file
to
.
orig-file
new-file
Downloads a file from the internet. To download
the Google homepage to the current directory, use
.
wget www.google.com
Displays the amount of space left on the device.
Displays the current directory.
The pipe symbol is used to pass information from one
program to another.
Useful flags include:
-mtime <number>
in the last
<number>
days.
<number>
2 (exactly two days ago), -2 (less than two days ago)
or +2 (more than two days ago).
finds files called
<filename>
.
matches files called
<filename>
finds files that are writable. There are many
-writable
more options. See the man page for a detailed list. For
example
find / -mtime -2 -writable
filesystem that were changed less than two days ago and are
writable by the current user.
cd movies
moves to the
cd /
moves back one directory.
.
movies
ls -a
lists more
ls -l
copies
finds files modified
could be, for example,
-name <filename>
-iname <filename>
but not case-sensitive.
finds all files on the
33
08/07/2014 14:44

Hide quick links:

Advertisement

Table of Contents
loading

Related Products for Element 14 Raspberry Pi

Table of Contents