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/

Loading

Full text search

Recent Posts

  • Error 0xc1900101 when updating to Windows 11 22H2
  • Apply changes to all member accounts in an AWS organization
  • RPI4 under voltage
  • Upgrade RockyLinux 8 to 9
  • Terraform and segregated permissions
  • aws (9)
  • coffee (1)
  • headfi (1)
  • linux (8)
  • others (57)
  • security (2)
  • tech (39)
  • wordpress (2)

Loading

apache apigateway aws awscli azure backup cloud coffee docker ec2 EL8 ElasticBeanstalk enpass espresso featured kernel lelit linux lvm meltdown MFA mikrotik nat gateway nginx php power python rdp Redhat RHEL rpm Ryzen s2s scp serverless site-to-site snapshot spectre tech terraform ubuntu ubuntu upgrade vpn wordpress xdotool

©2023 blog.headdesk.me | Powered by SuperbThemes