Scp command examples

The scp command lets you securely copy files between hosts over an SSH connection.

Some of you might think scp is deprecated but in fact what’s deprecated is the scp protocol, not the command itself. The command now uses a more secure sftp protocol by default

Here are some of useful scp command examples 😎👇 #linux #cybersecurity #privacy #dataprivacy #techtips

Find high-res pdf books with all my Linux and cybersecurity related infographics from https://study-notes.org

2025/11/12 Edited to

... Read moreThe SCP (Secure Copy) command is a powerful tool for securely transferring files over a network using SSH, and despite misconceptions about its deprecation, it remains widely used today with improved security based on the SFTP protocol. To get the most from SCP, it's essential to understand some practical command options. For example, to copy a file from local to remote, you use: ``` scp /path/to/local/file user@remotehost:/path/to/remote/directory ``` And for copying data back from remote to local: ``` scp user@remotehost:/path/to/remote/file /path/to/local/directory ``` Recursive directory copying can be done using the `-r` flag, which is invaluable for transferring folders: ``` scp -r /local/directory user@remotehost:/remote/directory ``` Sometimes the SSH service runs on a non-standard port, so the `-P` option lets you specify a different port (note the uppercase P): ``` scp -P 2222 /file user@remotehost:/directory ``` Compression can be enabled during transfer with the `-C` flag, speeding up the process for large files: ``` scp -C /file user@remotehost:/directory ``` Preserving file modification and access times with `-p` ensures the destination files retain their timestamps: ``` scp -p /file user@remotehost:/directory ``` If you want to use a specific SSH private key for authentication, the `-i` option allows specifying the key file: ``` scp -i /path/to/private_key /file user@remotehost:/directory ``` Advanced SCP usage includes transfer rate limiting to avoid saturating bandwidth using `-l`, verbose output for troubleshooting with `-v`, and support for jump hosts to tunnel SCP through intermediate servers using `-J`. For example, copying files through a jump server: ``` scp -J user@jump-server /file user@remotehost:/directory ``` To selectively transfer files based on naming patterns, you can combine `scp` with `find` on the source host, using exec commands: ``` find /path -type f -name "*.log" -exec scp {} user@remotehost:/target/path \; ``` Security-wise, SCP now defaults to the more secure SFTP protocol internally, even though the legacy SCP protocol is deprecated. Using secure ciphers like `aes256-cbc` ensures encrypted and private file transfers. In summary, mastering these SCP commands and options can greatly improve your efficiency and security when working with file transfers on Linux and other UNIX-like systems. For comprehensive visual guides and infographics related to Linux and cybersecurity, consider exploring resources at study-notes.org.

Related posts

Keep Viewers Engaged(for FREE)
People shouldn’t only have the option to interact with the stream if they PAY for it. Here is how to reward your viewers for their TIME with FREE interactions! 🫐 PIXELPLUSH.DEV ✨ A website with fun interactive overlays and activities for your chat! ✨ Free and paid options! ✨ My chat is obs
BLU 🫐🏳️‍🌈

BLU 🫐🏳️‍🌈

1835 likes

Useful sysdig command examples
Sysdig is one of those hidden gem tools that shows exactly what your Linux system is doing in real time — system calls, containers, network traffic, file access — everything, no guessing. Here are useful sysdig command examples 😎👆 Find high-res pdf ebooks with all my cybersecurity related inf
Learn Linux with Dan

Learn Linux with Dan

5 likes

A student's desk with a laptop displaying a probability assignment, a spiral notebook with handwritten notes, and two energy drink cans. The image is titled 'HOW I TAKE NOTES IN COLLEGE'.
A blank page of a spiral notebook with 'Section # here' written in red at the top, illustrating the first step of note-taking.
A spiral notebook page showing 'Section # here' and the second step of note-taking, which involves writing and highlighting terms and their definitions.
How 4.0 Students Take Notes 📝❤️
Steal my notes! 🫧💋🪩 This is the technique I use to take my notes in classes. I just perfected my format and find this to be the most functional. I take these notes in class and it isn’t time consuming or hard! I find this method to work best for me because the terms and examples stick out th
lizzie matthias

lizzie matthias

3123 likes

How to improve your Google Sheets Skills
(From someone who has created over 44 #googlesheets dashboards) 1. Learn by doing - my first ones are more simple compared to my current Dashboards but I need practice in order to design Dashboards that are more complex to meet my own needs 2. Add images and Icons - certain formulas also wor
TheHappyPlanner

TheHappyPlanner

967 likes

An infographic titled 'Linux curl Command Examples' provides a comprehensive list of curl commands. It covers HTTP GET operations with options like user-agent and custom headers, HTTP POST/PUT operations for data and file uploads, and various file download operations including resuming and rate-limiting. Created by Dan Nanni.
Linux curl command examples
The curl command is a flexible tool that lets you send or receive data from servers using protocols like HTTP, HTTPS, FTP, and others, all from the command line Here are useful curl command examples 😎👆 #devops #opensource #software #TechTips Find high-res pdf books with all my #lin
Learn Linux with Dan

Learn Linux with Dan

7 likes

An infographic titled 'Linux netcat Command Examples' lists various `nc` commands for network tasks like port scanning, file transfer, creating shells, and streaming. It includes commands for TCP/UDP, IPv6, and persistent listeners, credited to Dan Nanni.
Useful netcat command examples
Netcat is the Swiss army knife of networking. It lets you read and write data over TCP or UDP, and infosec folks use it all the time for things like quick port scans, grabbing service banners, or setting up reverse shells. Here are useful netstat command examples 😎👆 Find high-res pdf ebooks w
Learn Linux with Dan

Learn Linux with Dan

7 likes

Physics tips from a physics PhD student
Here are my best tips for physics!! I hear people say all the time how physics is impossible but I think a lot of that is not studying properly. Focusing on examples is key. Of course do the examples done in class of homework’s but then finding similar problems to practice with is key!! Be
Sarah :)

Sarah :)

44 likes

A hand holds a Starbucks cup next to a laptop displaying the Pinterest home feed, with text overlay "Stop Using Pinterest Use these 3 apps Instead!" and a finger icon pointing to the keyboard.
A hand holds a Starbucks cup next to a laptop showing the Walling app interface, with text overlay "1. Walling Transforms scattered ideas into organized visual masterpieces."
A green mug sits next to a laptop displaying the mymind app interface, with text overlay "2. mymind Ideal for turning fleeting ideas into creative collections."
3 Pinterest Alternatives for beautiful moodboards!
Wave goodbye to the same old and welcome the new wave of productivity with these 3 stellar apps! 🌊📲 ➡Walling - Beyond just organizing ideas, Walling offers a "Daily Desk" feature, allowing you to gather daily thoughts and to-dos in a focused space, streamlining your daily workflow. ➡
Ayesha 🍋

Ayesha 🍋

1899 likes

An infographic titled 'Sysdig Command Examples' defines Sysdig as a Linux tracing tool and lists various commands for monitoring CPU, memory, network, file I/O, and capturing events. It's created by Dan Nanni.
Useful sysdig command examples
The sysdig command is a powerful system-level exploration and troubleshooting tool for Linux. Sysdig can capture and analyze real-time system calls and events, enabling deep visibility into processes, containers, network activity, and file access Here are useful sysdig command examples 😎👆 #te
Learn Linux with Dan

Learn Linux with Dan

27 likes

Being a GIRL in the MILITARY
No, it’s not that bad. Have I had some bad experiences? Sure. But overall, joining the military has brought so many positives to my life! 🌼QUALITY OF LIFE + PAY🌼 I honestly think I get compensated pretty damn well for having no prior experience + no college degree. I live in a really nice apart
elle

elle

1053 likes

Linux netcat command examples
The netcat command lets you read from and write to network connections using TCP or UDP. Its flexibility makes it a must-have for infosec professionals, who use it for tasks such as port scanning, banner grabbing, and setting up reverse shells during penetration tests. Here are useful netstat co
Learn Linux with Dan

Learn Linux with Dan

10 likes

Useful awk command examples
Awk is a powerhouse text tool — it can scan files or streams, match patterns, and run custom actions on the fly, making it perfect for quick data filtering, parsing, and one-line automation Here are useful awk command examples 😎👇 Find high-res pdf books with all my Linux infographics at https
Learn Linux with Dan

Learn Linux with Dan

4 likes

An infographic titled 'OpenSSH Command Examples' by Dan Nanni, listing twelve practical OpenSSH commands for secure remote logins, file transfers, and command execution, including custom port connections, key authentication, preventing timeouts, running remote commands, port forwarding, jump servers, copying public keys, custom config files, SOCKS proxies, and connection multiplexing.
OpenSSH command examples
OpenSSH is a versatile suite of client and server tools that use the SSH protocol to provide encrypted and authenticated communication over networks. This toolset is heavily used for secure remote logins, file transfers, and command execution in various cloud and on-premises environments Here ar
Learn Linux with Dan

Learn Linux with Dan

6 likes

An infographic titled "Git Command Essentials" categorizes various Git commands. It covers basic operations, configuration, staging and committing changes, viewing changes, managing branches, managing remote repositories, undoing changes, and miscellaneous commands like merge, rebase, and tag. The infographic is created by Dan Nanni from study-notes.org.
Git command examples
Git is crucial for version control, enabling teams to collaborate, track changes, and manage code reliably in software development projects Here are useful git command examples! 😎👇 #coding #programming #softwaredeveloper #github Find high-res pdf books with all my DevOps related inf
Learn Linux with Dan

Learn Linux with Dan

5 likes

Two laptops, an iPad, and a tablet are arranged on a wooden table, displaying study materials on social media marketing. Two iced coffee cups are also on the table, illustrating a study session with a buddy.
An iPad with a pink-edged case displays handwritten notes on economics, covering concepts like scarcity, macroeconomics, and microeconomics. A drink with a pink straw and a pink lip product are beside it on a decorative table.
A laptop and a tablet are on a desk with shelves holding various personal items and a decorative lamp. The tablet shows a handwritten list, while the laptop displays a collage of images, suggesting a study schedule setup.
study inspo for college students!
Study inspo for college students! It's A new semester which means it’s time to change up our study habits! I'm a major procrastinator and I'm desperately trying to break that habit. So here's a few of my favorite study tips to help you this semester! 1) study with a buddy -now i
maddie schultz

maddie schultz

434 likes

chummy buttons is crazy [ scp walke7scenes ] #rodrickheffley #diaryofawimpykid #devonbostick #enozies #edit
†

28 likes

A hand holds apartment keys with a heart keychain, in front of an unfurnished apartment. Text overlays read 'First Apartment Check List home sweet home'.
A checklist titled 'Apartment CHECKLIST' details 20 kitchen essentials, including plates, silverware, cook/bakeware, appliances like air fryer and Keurig, and cleaning supplies.
An apartment checklist outlines dining room essentials like a table and decor, and living room essentials such as a couch, lamps, TV, and various decorative items.
First Apartment Check List
This is my first post here on Lemon8! I’m going to be on here documenting my life upon entering adult hood. I’m going to be moving into my own place sook with my bf and made a check list of things we’ll be needing (and wanting🤭) I took some examples off other lists i’ve seen and added some thing of
liahnoelle

liahnoelle

12.5K likes

College Resume Tips and Examples 📝💻✍🏼🎓
Creating a college resume is essential for applying to colleges, internships, scholarships, and jobs. A strong resume highlights your achievements,skills, and experiences in a clear and organized manner. Here’s a step-by-step guide on how to write an effective college resume: ✍🏼 Start with a Str
Joy 📚

Joy 📚

479 likes

Cover Letter 101: checklist + a free template 📝
Sample cover letter template: Dear [Hiring Manager], I am excited to apply for the [Job Title] position at [Company's Name], as advertised on [where you found the job posting]. With my background in [relevant field or industry] and my experience in [specific skills or expertise], I am con
Jane 🦧

Jane 🦧

62 likes

A laptop displays the "Marketing Examples" website, showcasing various marketing case studies like influencer ads, upsells, and viral content strategies. The image is overlaid with the title "Learning Websites to Level Up Your Skills."
The Codecademy website is shown, featuring career paths like Front-End Engineer and Data Scientist, alongside popular courses such as Learn Python 3, HTML, and JavaScript. It highlights a user-friendly approach to coding lessons.
The DataCamp website is displayed, promoting learning data skills from non-coding essentials to data science and machine learning. It illustrates a learning methodology of assessing, learning, applying, and practicing to develop data skills.
Learning Websites to Level Up Your Skills
They make the learning journey feel less like a lecture and more like a chat with a knowledgeable friend. Codecademy – my coding guru! 🤓✨ Forget the boring textbooks; this platform brings the coding game to life with a user-friendly vibe and hands-on lessons. Learning Python, Java, or HTML? They
Reverelia

Reverelia

1435 likes

A cat wearing pink hair rollers and sunglasses, with text overlay "BE A TECH GIRL" and "Girlies Learn Coding!", promoting coding for girls.
A cat partially visible with text "GIRL POWER" and an explanation of why coding is important for girls, highlighting the gender gap in tech and future job opportunities.
A MacBook Air displaying the Codebay website's landing page, inviting users to "Set sail on your fun, easy coding journey!" with sign-in options, introducing the recommended coding platform.
Why should girls learn to code?
Hey girls, have you ever thought about learning coding like I did? #study #learning #studywithme 👩‍💻Coding is a way to self-expression, creativity, and fostering intellectual confidence. Even if you're not planning to pursue a career in tech, learning to code can help you develop a
Aura✨

Aura✨

365 likes

A young woman sitting on a couch, holding a tablet and waving, with the text overlay "HOW TO USE LINKEDIN TO ATTRACT RECRUITERS," introducing the article's topic.
A close-up of a laptop screen displaying the LinkedIn interface, featuring the search bar and a profile picture of a smiling woman, illustrating the platform discussed.
A close-up of a laptop keyboard and screen, showing a document or spreadsheet, with a patterned curtain in the background, representing online work or profile management.
How to find a job WITHOUT APPLYING 📝
I know I said I rarely use LinkedIn to network… but I may just have to get back on it. My friend was reached out to by a LinkedIn recruiter despite not even STARTING to apply for jobs yet. The offer is for 30% above what she was getting at her last company, and it’s for a MANAGER position. Here
Jane 🦧

Jane 🦧

24 likes

An infographic titled 'Linux pv Command Examples' presents various `pv` commands for visualizing data transfer progress. Examples include monitoring file copying, merging, compression, decompression, SCP transfers, disk backups, and tarball operations, demonstrating how `pv` shows progress, speed, and ETA during file operations.
Useful pv command examples
pv (Pipe Viewer) is one of those hidden gems on Linux. Just toss it into a pipe (pipes are already super convenient) and you get a live view of progress, speed, and ETA as data flows through 😎👆 Find high-res pdf ebooks with all my Linux related infographics at https://study-notes.org #linux
Learn Linux with Dan

Learn Linux with Dan

3 likes

This image displays a comprehensive list of Tcpdump command examples for network traffic analysis on Linux. It covers various functionalities like capturing, filtering by interface, protocol, IP, port, and subnet, saving to files, displaying detailed packet information, and advanced filtering using TCP flags and VLANs.
Tcpdump command examples
Tcpdump is a powerful command-line tool for capturing and analyzing network traffic on Linux. This tool is essential for cybersecurity pros and sysadmins to troubleshoot issues, inspect protocols, and detect suspicious activity Here are useful tcpdump command examples 😎👆 #technology #softwar
Learn Linux with Dan

Learn Linux with Dan

7 likes

organize your tabs with this Chrome extension 🍵
‧°𐐪♡𐑂°‧₊ 🍧 tabExtend transforms your new tab into a dynamic dashboard, making it easy to organize and manage tabs, groups, notes, and reminders. You can effortlessly drag and drop tabs into custom workspaces, keeping everything streamlined and accessible. It's perfect for students and profess
peachiesuga ♡

peachiesuga ♡

177 likes

SCP5K PT.2 : SCP-3199
#gaming #scp5k #fypシ
mizeryave

mizeryave

0 likes

A Linux watch command cheatsheet created by Dan Nanni, listing various commands to monitor system metrics in real-time. Examples include tracking CPU/memory usage, disk space, log file growth, network activity, and system errors, with refresh intervals specified.
Linux watch command cheatsheet
Ever wish you could just run a command and keep seeing it update automatically as things change? That is exactly what the watch command does on Linux Here are useful examples of the watch command 😎👆 Find high-res pdf ebooks with all my Linux related infographics at https://study-notes.org
Learn Linux with Dan

Learn Linux with Dan

5 likes

An overhead view of a desk with a laptop, drinks, and a hydration stick, featuring the title 'TEN skills to include on your resume in 2025'.
A desk setup with a laptop and keyboard, displaying the first five resume skills: Communication, Time management, Digital tools, Problem Solving, and Adaptability.
A desk setup with a laptop and various drinks, showing the remaining five resume skills: Data literacy, Writing skills, Leadership, Organization, and Emotional intelligence.
10 Must-Have Skills for Your Resume (+ Examples) ✨
Your resume is your ticket to landing the job, so let’s make it shine! 💼 These 10 skills are what recruiters are looking for in 2025—here’s how to showcase them: 1️⃣ Communication 💬 Example: “Led weekly team meetings, facilitating collaboration and clear communication across departments.” 2️
Alex | Career & Confidence

Alex | Career & Confidence

146 likes

Linux journalctl command examples
The journalctl command lets you view and manage logs collected by systemd’s centralized logging system across the whole machine Here are useful journalctl command examples 😎👇 #sysadmin #technology #software Find high-res pdf books with all my #Linux related infographics at https://st
Learn Linux with Dan

Learn Linux with Dan

5 likes

Canva Seamless Carousel Design Hack!
Canva Tutorial - How To Create A Seamless Carousel Using Canva For Free! #canvahacks #canvatutorial #canvaforbeginners #canvatips #canvaforsmallbusinesses
Inuri

Inuri

73 likes

A bedside table with a digital clock displaying 9:45, a lamp, and decorative items, setting the scene for a college student's day.
A white plate holds two pieces of a savory breakfast dish, possibly an egg casserole, with a fork, ready for consumption.
A neatly made bed with white bedding featuring black bow designs, adorned with several pillows and a blue plush toy.
Day in the life as a college student!
#collegedayinmylife #collegevlog #collegedayinthelife #dayinthelifecollege #collegelifestyle
KAY

KAY

176 likes

Free Online MATH Courses!!
🧮 If math has you stressed, don’t worry, these free courses make it so much easier to learn! From algebra and calculus to linear algebra and stats, I’ve got you covered with the best resources. ✏️ Drop a ❤️ if you're ready to learn, and follow for more tips to help you crush your classes! 📚✨
CompSkyy

CompSkyy

930 likes

it sounds like him singing in the back #joegoldberg #joegoldbergedit #youedit #you #pennbadgley #pennbadgleyedit #enozies #edit [ scp 411scenes / ac me ]
†

0 likes

scp job application
#scp #operator #cosplay #job #funny
Sgt.Getcha

Sgt.Getcha

20 likes

my favorite girl ever #sammoore #taissafarmiga #theblingring #enozies #edit scp bateman.ffx ac me
†

0 likes

A laptop screen displays nursing study material on Antidysrhythmics and ACE Inhibitors, with a keyboard in the foreground. The image is captioned "EXTRAAAA NURSING STUDENT Prep for a New Semester w/ me."
A blank nursing concept map template is shown, featuring sections for Etiology, Risk Factor, Pathogenesis, Disease, Treatment, Diagnosis, and Clinical Manifestation. The timestamp reads 1:13:11 pm FRIDAY.
A pink binder cover is decorated with nursing-themed illustrations like stethoscopes, hearts, and pills, and labeled "MED SURG 2 CLINICAL BINDER."
EXTRAAAA NURSING STUDENT EDITION 🥰👩🏽‍⚕️📚
Prep for the new semester with me! Binder covers made! Concept maps printed! Binders organized! Desk is set up! #nursingschool #nursingstudent
Dajee Haskins

Dajee Haskins

258 likes

A cat-like character and a robot battle with energy beams in an SCP facility, marked 'GATE A'. Silhouettes are visible through the gate, suggesting a breach or ongoing conflict, with UI elements at the bottom.
Gamoverse X SCP
#gameoverse #scp #kit
Maylax

Maylax

14 likes

Dexter edit 💉🎅 || scp: 411
#ae #aftereffects #dexter #fyp #xybca
Lemon8er

Lemon8er

152 likes

An open Bible with highlighted pages, set against a sunset sky, with the text overlay 'Having Trouble Getting Into The Word Of God?'.
A 'SOAP Bible Study' template with sections for Scripture, Observation, Application, and Prayer, designed to guide personal Bible study.
A 'Bible Study Worksheet' featuring prompts like 'What is God teaching me here?' and 'What does this lead me to pray about?', with spaces for notes and sketches.
Bible Study Inspo
Here are a few tools to help with your bible study I hope this helps someone! #beginnersbible #bible study template #biblehack #biblepassage #howicolorcodemybible #biblevisionboard #howtostudythebible #christian #christiangirl #bulletjournal
✨Z✨

✨Z✨

1370 likes

How To Change Your Email Signature on iPhone
I made a post about making a custom signature for your email on PC, but if you’re an iPhone user, you may also want to add a custom signature on your phone to match. While you can’t do a super detailed image signature on an iPhone, you can at least get rid of the “Sent from my iPhone” text, and
🌻ChromaGlitch

🌻ChromaGlitch

179 likes

TOP 3 YOUTUBE CHANNELS FOR BIOLOGY 🧪
💻I always enjoy sharing free resources so here are some of my favorite YouTube channels I used throughout college as a biology major! Each one of these channels has short and long form videos but are depth to the fullest. 💻If you are a visual person like me you’ll definitely like Dr. Matt and D
Havana

Havana

91 likes

SCP Gaming
Testing out this new place before TikTok goes away😭 #scp #videogaming #scarygame #funny #fypage
Viper_The_Infinite

Viper_The_Infinite

3 likes

See more