Customise Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorised as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

No cookies to display.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

No cookies to display.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

No cookies to display.

Performance cookies are used to understand and analyse the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customised advertisements based on the pages you visited previously and to analyse the effectiveness of the ad campaigns.

No cookies to display.

Copy Files from a Mac to a Raspberry Pi using scp

In this video I go over the process of transferring files from a Mac to a Raspberry Pi using scp on the command line.

4 Ways to Enable an SSH Server on a Raspberry Pi: https://youtu.be/HU6Wk0hkpVQ

Log into Remote Raspberry Pi
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
ssh pi@raspberrypi.local
ssh pi@raspberrypi.local
ssh pi@raspberrypi.local
List Files in Directory
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
ls
ls
ls
Print Working (i.e. current) Directory
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
pwd
pwd
pwd
Change Current Directory to Desktop
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
cd Desktop
cd Desktop
cd Desktop
Move to the Parent Directory of the Current Directory
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
cd ../
cd ../
cd ../
Move to the Home Directory
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
cd
cd
cd
List Files in Directory in List Format
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
ls -l
ls -l
ls -l
List Files in Directory in List Format with Sizes in Human Readable Format
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
ls -lh
ls -lh
ls -lh
List Files Recursively
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
ls -lRh
ls -lRh
ls -lRh
Copy File index.htm to Raspberry Pi Home Directory
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
scp index.htm pi@raspberrypi.local:~/
scp index.htm pi@raspberrypi.local:~/
scp index.htm pi@raspberrypi.local:~/
Copy All htm Files in the Current Directory
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
scp *.htm pi@raspberrypi.local:~/
scp *.htm pi@raspberrypi.local:~/
scp *.htm pi@raspberrypi.local:~/
Copy All Files in the Current Directory Recursively
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
scp -r * pi@raspberrypi.local:~/
scp -r * pi@raspberrypi.local:~/
scp -r * pi@raspberrypi.local:~/
Make Directory in Current Directory (on Raspberry Pi)
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
mkdir bookcopy
mkdir bookcopy
mkdir bookcopy
Copy All Files in the Local Directory to the “bookcopy” Directory on the Raspberry Pi
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
scp -r * pi@raspberrypi.local:~/bookcopy/
scp -r * pi@raspberrypi.local:~/bookcopy/
scp -r * pi@raspberrypi.local:~/bookcopy/

Leave a comment

Your email address will not be published. Required fields are marked *