Skip to content

Instantly share code, notes, and snippets.

@dignifiedquire
Created November 10, 2016 19:41
Show Gist options
  • Save dignifiedquire/32c09123d86e27064ea682a156f719b6 to your computer and use it in GitHub Desktop.
Save dignifiedquire/32c09123d86e27064ea682a156f719b6 to your computer and use it in GitHub Desktop.
[ipfs@ingwe ~]$ IPFS_PATH=/home/ipfs/npm/ ipfs files ls /npm-registry |wc -l
Error: Post http://127.0.0.1:5002/api/v0/files/ls?arg=%2Fnpm-registry&encoding=json&stream-channels=true: read tcp 127.0.0.1:56472->127.0.0.1:5002: read: connection reset by peer
0
[ipfs@ingwe ~]$ IPFS_PATH=/home/ipfs/npm/ ipfs files ls /npm-registry |wc -l
Error: api not running
0
[ipfs@ingwe ~]$ tmux attach -t daemon
[detached (from session daemon)]
[ipfs@ingwe ~]$ IPFS_PATH=/home/ipfs/npm ipfs files ls /npm-registry |wc -l
Error: api not running
0
[ipfs@ingwe ~]$ ls npm
api blocks config config~ datastore goros repo.lock version
[ipfs@ingwe ~]$ ls /home/ipfs/npm
api blocks config config~ datastore goros repo.lock version
[ipfs@ingwe ~]$ ls -la /home/ipfs/npm
lrwxrwxrwx 1 root root 10 Oct 24 12:32 /home/ipfs/npm -> /ingwe/npm
[ipfs@ingwe ~]$ ls -la /home/ipfs/npm/
total 14669
drwxrwxrwx 4 root root 10 Nov 4 11:44 .
drwxr-xr-x 30 whyrusleeping whyrusleeping 44 Nov 1 00:19 ..
-rw-r--r-- 1 ipfs ipfs 23 Nov 4 11:44 api
drwxr-xr-x 514 ipfs ipfs 514 Oct 24 13:44 blocks
-rw-r----- 1 ipfs ipfs 3747 Oct 24 13:27 config
-rw-r----- 1 ipfs ipfs 3747 Oct 24 13:27 config~
drwxr-xr-x 2 ipfs ipfs 43 Nov 10 10:48 datastore
-rw-r--r-- 1 whyrusleeping whyrusleeping 14883560 Oct 25 14:06 goros
-rw-r--r-- 1 ipfs ipfs 0 Nov 4 11:44 repo.lock
-rw-r--r-- 1 ipfs ipfs 2 Oct 24 13:27 version
[ipfs@ingwe ~]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment