Skip to content

Commit e0a9a98

Browse files
authored
rm all $
allow users to directly copy bash snippets from the website and paste them on linux. otherwise, users get `$: command not found`
1 parent 9243fe6 commit e0a9a98

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/content/docs/en/developers/guides/running-a-scroll-node.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ You will need access to a fully-synced **Ethereum Mainnet** or **Ethereum Sepoli
4545
1. Clone the latest version of `l2geth`.
4646

4747
```bash
48-
$ git clone https://github.com/scroll-tech/go-ethereum l2geth-source
49-
$ cd l2geth-source
50-
$ git checkout VERSION
48+
git clone https://github.com/scroll-tech/go-ethereum l2geth-source
49+
cd l2geth-source
50+
git checkout VERSION
5151
```
5252
2. Ensure that you are using version 1.20 of `go`.
5353
3. Install the gcc compiler: `sudo apt install build-essential`.
@@ -63,7 +63,7 @@ Please consider opening port `30303`(UDP & TCP) and enabling discovery so that o
6363
1. Run `l2geth`.
6464

6565
```bash
66-
$ l2geth --scroll \
66+
l2geth --scroll \
6767
--datadir "./l2geth-datadir" \
6868
--gcmode archive --cache.noprefetch \
6969
--http --http.addr "0.0.0.0" --http.port 8545 --http.api "eth,net,web3,debug,scroll" \
@@ -82,7 +82,7 @@ Please consider opening port `30303`(UDP & TCP) and enabling discovery so that o
8282
2. In a separate shell, you can now attach to `l2geth`.
8383

8484
```bash
85-
$ l2geth attach "./l2geth-datadir/geth.ipc"
85+
l2geth attach "./l2geth-datadir/geth.ipc"
8686

8787
> admin.peers.length
8888
5
@@ -111,7 +111,7 @@ Running the node in Docker might have a significant impact on node performance.
111111
1. Run the `l2geth` container using the name `l2geth-docker`:
112112

113113
```bash
114-
$ docker run --rm --name l2geth-docker -v $(pwd):/volume -p 8545:8545 -e RUST_LOG="info" -e CHAIN_ID="534352" scrolltech/l2geth:latest \
114+
docker run --rm --name l2geth-docker -v $(pwd):/volume -p 8545:8545 -e RUST_LOG="info" -e CHAIN_ID="534352" scrolltech/l2geth:latest \
115115
--scroll \
116116
--datadir "/volume/l2geth-datadir" \
117117
--gcmode archive --cache.noprefetch \
@@ -123,7 +123,7 @@ Running the node in Docker might have a significant impact on node performance.
123123
2. In a separate shell, you can now attach to `l2geth`.
124124

125125
```bash
126-
$ docker exec -it l2geth-docker geth attach "/volume/l2geth-datadir/geth.ipc"
126+
docker exec -it l2geth-docker geth attach "/volume/l2geth-datadir/geth.ipc"
127127

128128
> admin.peers.length
129129
5

0 commit comments

Comments
 (0)