Ravindra BagaleCourses & study guides मराठी Track your progress

Ravi Sir's Cards › AWS

Debug in 4 steps

What is a VPC: your own private network inside one AWS Region, example ThreeTierVpc 10.0.0.0/16.

Debug in 4 steps Syntax only. Lint. Trace with line numbers. Read the logs.
Debug in 4 steps · Download PNG
Read card text

What this card says

Why do we need it?

Syntax only.

bash -n x.sh

What is it?

Lint.

shellcheck x.sh

How to do it

Trace with line numbers.

PS4='+ ${LINENO}: ' bash -x x.sh

Example

Read the logs.

journalctl -t x -n 50

See all AWS revision cards