2019-12-01 08:21:20 +00:00
|
|
|
# Storing Data
|
|
|
|
|
|
|
|
Start by creating a file, in this example we will use the command line to create `hello.txt`.
|
|
|
|
|
|
|
|
```sh
|
|
|
|
$ echo "Hi my name is $USER" > hello.txt
|
|
|
|
```
|
|
|
|
|
2019-12-04 15:39:41 +00:00
|
|
|
Afterwards you can import the file into a **Lotus Node** and get a **Data CID** as output.
|
2019-12-01 08:21:20 +00:00
|
|
|
|
|
|
|
```sh
|
|
|
|
$ lotus client import ./hello.txt
|
|
|
|
<Data CID>
|
|
|
|
```
|
|
|
|
|
|
|
|
To see a list of files by `CID`, `name`, `size`, `status`.
|
|
|
|
|
|
|
|
```sh
|
|
|
|
$ lotus client local
|
|
|
|
```
|