Linuxexit code > 0

No such file or directory

$cat: config.json: No such file or directory

Analysis

The path you specified does not exist.

Common Triggers

  • Typo in filename.
  • Relative path assumption is wrong (wrong PWD).
  • File was deleted.

Debug Checks

  • $List directory: ls -la.
  • $Print current path: pwd.

Resolution

1
Correct the path.
2
Create the file/directory.