Installing Hyperledger Composer (Ubuntu)

To install Installing Hyperledger Composer, follow tutorial here

Issues in above tutorial:

In Installing pre-requisites, run command
curl -O https://hyperledger.github.io/composer/latest/prereqs-ubuntu.sh
instead
curl -O https://hyperledger.github.io/composer/prereqs-ubuntu.sh

In Installing components, run command
export NODE_PATH=$NODE_PATH:`npm root -g`
before running command
npm install -g yo

Note: To Installing Hyperledger Composer on Ubuntu 18.04 LTS (Bionic)
After running commands
curl -O https://hyperledger.github.io/composer/latest/prereqs-ubuntu.sh
chmod u+x prereqs-ubuntu.sh

Edit prereqs-ubuntu.sh file
and replace line
declare -a versions=(‘trusty’ ‘xenial’ ‘yakkety’);
with
declare -a versions=(‘trusty’ ‘xenial’ ‘yakkety’ ‘bionic’);

Advertisements

Size of File and Count Files

Size of the file
ls -l file_name

Size of All the files in the current directory
ls -l *

Size of All the files including hidden files in the current directory
ls -al *

Size of All the files including hidden files in the ‘dir’ directory
ls -al directory/

File Size in MB
ls -l –b=M file_name | cut -d ” ” -f5

File Size in GB
ls -l –b=G file_name | cut -d ” ” -f5

——————————————–
Count Files in a Directory
ls -1 | wc -l