g Verified current stable Not installed? Filesystem

G / Go To Bookmarked Directory

Go To Bookmarked Directory

Navigates to a previously saved bookmark directory.

$
Terminal
g <bookmark_name>

When To Use

When needing to quickly access frequently used directories without typing full paths.

Pro Tip

Use tab auto-completion for faster bookmarking access.

Command Builder

Tune the command before you copy it

Back to syntax
$
Generated Command
g <bookmark_name>

Terminal Output

Expected runtime feedback

Simulated preview
>
Output
$ g projects
Entering directory: /home/user/bookmarks/projects

$ pwd
/home/user/bookmarks/projects

Anatomy of Output

Understanding the result

Changed directory to: /home/user/Bookmarks/my-bookmark Status

Confirmation of directory change.

Current Path: /home/user/CurrentDir Current Directory

Displays the path of the current directory.

Bookmarks accessed: 5 Total Bookmarks

Indicates bookmarks accessed in this session.

Troubleshooting

Common pitfalls

Bookmark not found

Solution: Verify the bookmark name for spelling errors.

Failed to change directory

Solution: Check if the bookmark points to a valid path.

Insufficient permissions

Solution: Ensure access rights for the target directory.

Command Breakdown

What each part is doing

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

How To Run

Execution path

  1. Step 1

    Add a bookmark using `g add projects /path/to/projects`

  2. Step 2

    Run `g projects` to navigate quickly to the bookmarked directory

  3. Step 3

    Verify by executing `pwd` to confirm your current directory.

Alternative Approaches

Comparable commands in other tools

Alternative filesystem tools for the same job.