IPFS: Difference between revisions
imported>Onny mNo edit summary |
imported>Onny mNo edit summary |
||
Line 14: | Line 14: | ||
<syntaxhighlight lang="console"> | <syntaxhighlight lang="console"> | ||
echo "hello world" > hello | #echo "hello world" > hello | ||
ipfs add hello | # ipfs add hello | ||
This should output a hash string that looks something like: | |||
QmT78zSuBmuS4z925WZfrqQ1qHaJ56DQaTfyMUF7F8ff5o | |||
ipfs cat <that hash> | # ipfs cat <that hash> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 24: | Line 24: | ||
<syntaxhighlight lang="console"> | <syntaxhighlight lang="console"> | ||
ipfs get <hash> | # ipfs get <hash> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 30: | Line 30: | ||
<syntaxhighlight lang="console"> | <syntaxhighlight lang="console"> | ||
ipfs add -r folder | # ipfs add -r folder | ||
ipfs ls <hash> | # ipfs ls <hash> | ||
ipfs ls <hash>/subdirectory | # ipfs ls <hash>/subdirectory | ||
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:Applications]] | [[Category:Applications]] |