IPFS Primer
ipfs.ioIPFS Docs
  • Introduction
  • Tutorial: Install and Initialize IPFS
    • Lesson: Download and Install IPFS
    • Lesson: Initialize your IPFS Repository
  • Tutorial: Files on IPFS
    • Lesson: Add Content to IPFS and Retrieve It
    • Lesson: Wrap Filenames and Directory Info around Content
    • Lesson: Pinning - Tell IPFS to Keep a File
  • Tutorial: Going Online - Joining the Distributed Web
    • Lesson: Connect your node to the IPFS network
    • Lesson: Find Peers on the Network
    • Lesson: Retrieve content from a Peer
  • Tutorial: Interacting with the Classical (HTTP) Web
    • Lesson: Use an HTTP browser to retrieve files from local IPFS gateway
    • Lesson: Get content through the public ipfs.io gateway
    • Lesson: Access IPFS content through any IPFS gateway
  • Tutorial: The Myriad ways to Access and Distribute IPFS Content
    • The Power of Content-addressing
    • Retrieving content from a peer
    • Review these lessons from the Tutorial on Interacting with the Classical (HTTP) Web
      • Review: Using an HTTP browser to retrieve files from local IPFS gateway
      • Review: Using the public IPFS gateways at ipfs.io
      • Review: Access IPFS content through any IPFS gateway
    • Lesson: Access IPFS content through Tor gateways (experimental)
    • Lesson: Run IPFS over Tor transport (experimental)
    • Lesson: Access IPFS content through a browser extension
    • Lesson: Sneakernets - moving the data on USB Drives and other Hardware
  • Tutorial: Making Changes on the Permanent Web
    • Lesson: Create a Simple Webpage and Add It to IPFS
    • Lesson: View Your Webpage with IPFS and Publish to IPNS
    • Lesson: Modify Your Webpage and Republish to IPNS
    • Lesson: Generate and Use a New IPNS Name Keypair
  • Tutorial: Merkle Trees and the IPFS DAG
    • Lesson: Turn a File into a Tree of Hashes
    • Lesson: The Cryptographic Hash
    • Lesson: Build a Tree of Data in IPFS Using Cryptographic Hashes to Link the Pieces (a Merkle DAG)
    • Lesson: Explore the types of software that use hash trees to track data (to come)
  • Tutorial: Dynamic Content on IPFS
    • Disclaimer: Dynamic content on IPFS is a Work in Progress (to come)
    • Lesson: Add data to the DAG (locally) (to come)
    • Lesson: Tell peers about your Changes (to come)
    • Lesson: Use hashes to get someone's changes from IPFS (to come)
    • Lesson: Use a pub/sub strategy to pass around messages about changes (to come)
    • Lesson: Resolve conflicts with a merge strategy (CRDTs) (to come)
  • Privacy and Access Controls on the Distributed Web (to come)
    • Reader Privacy & Writer Privacy (to come)
    • Private Networks (to come)
    • Encrypting Content (to come)
    • More dynamic encryption: capabilities-based encryption (to come)
    • Comparing with the classic HTTP web (feudal security, etc) (to come)
  • Keeping Data Alive: Durable Data on the Permanent Web (to come)
    • IPFS Cluster (to come)
    • Filecoin (to come)
  • Distributed Computation (to come)
Powered by GitBook
On this page
  • Prerequisites
  • Learning Objectives
  • Key Concepts
  • Lessons
  • Next Steps

Was this helpful?

Export as PDF

Tutorial: Files on IPFS

PreviousLesson: Initialize your IPFS RepositoryNextLesson: Add Content to IPFS and Retrieve It

Last updated 3 years ago

Was this helpful?

These Lessons are tested with go-ipfs versions: 0.5.0, 0.9.0

Please update this file on github to reflect any other versions that have been tested.

Prerequisites

  • You should have some familiarity with the command line.

  • You should have ipfs installed - the has instructions for that

Learning Objectives

These Lessons will teach you how to

  • Add files to your local IPFS node

  • Read files out of your local IPFS node

  • List the files in your IPFS node

  • Tell IPFS to hold onto files by pinning them

Key Concepts

  • Distinction between IPFS and your regular Filesystem

  • Identifying files by their Hashes

  • IPFS Garbage Collection

  • Pinning files on an IPFS Node

Lessons

Next Steps

Once you know how to add files to IPFS and retrieve them, you will be ready to share those files on the P2P network following the

If you're wondering how to update those files after you've shared them, see the

If you want to see how to access those files from the conventional HTTP web, go to the

If you want to know more about how IPFS stores this content internally using Merkle DAGs, go to the

previous tutorial
Lesson: Add Content to IPFS and Retrieve It
Lesson: Wrap Filenames and Directory Info around Content in IPFS
Lesson: Pinning - Tell IPFS to Keep a File
Tutorial: Going Online - Joining the Distributed Web
Tutorial: Publishing Changes on the Permanent Web
Tutorial: Interacting with the Classical (HTTP) Web
Tutorial: Merkle Trees and the IPFS DAG