Menu
blog.headdesk.me
blog.headdesk.me

ipfs

Posted on 2018/04/112019/05/15

Brought to my attention by a friend, I gave ipfs a try and here is what I did to get started:

$ brew install ipfs
$ ipfs init
$ ipfs version
ipfs version 0.4.14
$ hostname > test.txt
$ ipfs add test.txt
added QmNqNJh8Y7s65ioV6mqqmQUeSoy7UK3BemQExzqF8163HY test.txt
$ curl https://ipfs.io/ipfs/QmNqNJh8Y7s65ioV6mqqmQUeSoy7UK3BemQExzqF8163HY
xpk-pro.comme.ca
$ ipfs get -o test.txt QmNqNJh8Y7s65ioV6mqqmQUeSoy7UK3BemQExzqF8163HY
Saving file(s) to test.txt

The file is stored locally under the blocks directory:

$ cat .ipfs/blocks/FL/CIQAOW2LW2ASR4UBAAWTYWS3OPTZQWIGXRVNJ4IR5HK52CCZ6CE6FLY.data

xpk-pro.comme.ca

Once a file is added to ipfs, it cannot be deleted.

References:

  • https://ipfs.io/docs/commands/

facebookShare on Facebook
TwitterTweet

Full text search

Recent Posts

  • Terraform and segregated permissions
  • LVM Compression and Deduplication
  • Edit gpg encrypted file with vim
  • Lelit Elizabeth PL92T Pressure Tuning
  • jq transformation
  • aws (8)
  • coffee (1)
  • headfi (1)
  • linux (6)
  • others (58)
  • security (2)
  • tech (36)
  • wordpress (2)

apache aws awscli azure backup clearlinux cloud coffee docker DOCP ec2 EL8 epyc espresso featured gpg jenkins kernel lelit linux lvm meltdown memory MFA mikrotik php python rdp Redhat RHEL roasting rpm Ryzen site-to-site snapshot spectre tech terraform tuning ubuntu ubuntu upgrade vim vpn wordpress xdotool

©2023 blog.headdesk.me | Powered by SuperbThemes & WordPress