g-g Verified current stable Not installed? Documentation

G / Go To End Start Of File

Go To End Start Of File

A shortcut command to swiftly navigate to the start or end of a file in a terminal-aware file viewer.

$
Terminal
<<G>|<g>>

When To Use

In large text files, need for immediate repositioning to the start or end without scrolling.

Pro Tip

Combine with search commands to quickly move within extensive files for analysis.

Anatomy of Output

Understanding the result

0: Starting file navigation at position 0 (beginning) Starting Position

File starts at the first line.

Total lines: 5000 File Summary

Total line count in the opened file.

End of file reached at line 5000 End Position

Confirmed navigation to file end.

Troubleshooting

Common pitfalls

Error: Start line out of range

Solution: Input a valid line number within file limits.

File not found

Solution: Double-check file path and name.

Permission denied

Solution: Ensure you have read permissions for the file.

Command Breakdown

What each part is doing

<<G>|<g>>
Base Command
The executable that performs this operation. Here it runs G before the shell applies any redirect operators.
<<G>|<g>>
<G>|<g>
The value supplied for <G>|<g>.

Alternative Approaches

Comparable commands in other tools

Alternative documentation tools for the same job.