Skip to main content

Raspberry Pi: Command Line

Getting started with the Raspberry Pi

Introducing the Command line

The command line interface is an integral part of using linux and unix systems.  Many pieces of software are available only in command line or provide additional functionality.  The command line interface also provides the ability to script actions and pipe or connect commands together.

Featured Resource

http://explainshell.com/

Enter in shell commands with arguments to see a detailed explanation.  The explainshell.com site provides a great way to learn and test commands.

Command Line Basics

Most commands have the following format:
command -options arguments

Navigate Directories:

ls
      List all files in current directory

pwd
      Prints full path of current directory to the terminal

cd /path/to/file
      Change directory to path specified as argument


Working with Files:

cp file_copy_from file_copy_to
      copy files and directories
mv file_from file_to
      move or rename files and directories
rm filename
      remove files and directories
mkdir new_directory_name
​      create directories

© 2016 New York Institute of Technology