j Verified current stable Not installed? Version Control

J / Show Entries In Autojump Database

Show Entries In Autojump Database

Displays entries stored in the Autojump database, optionally with statistics.

$
Terminal
j -s

When To Use

When needing to audit the directory paths stored in Autojump for validity or frequency of access.

Pro Tip

Use with grep for targeted inspection of specific directory access frequencies.

Terminal Output

Expected runtime feedback

Simulated preview
>
Output
\n\/\/ Autojump Database Entries \/\/
| Rank | Path                    | Frequency | Last Accessed          |
|------|-------------------------|-----------|------------------------|
| 1    | /home/user/projects     | 45        | 2023-10-01 14:00:00    |
| 2    | /var/log                | 30        | 2023-09-29 12:30:00    |
| 3    | /etc                    | 15        | 2023-09-28 11:45:00    |\n

Anatomy of Output

Understanding the result

/home/user/projects/ - accessed 15 times. Entry Line

Indicates the path and how often it was accessed.

/home/user/archives/ - accessed 5 times. Entry Line

Indicates path and access frequency.

Summary: Total entries: 20. Summary Line

Displays overall entry count in the database.

Power User Variants

Optimized versions

j -l

List entries with full paths only.

j -s | sort -n

Display sorted list of entries by access count.

j --show-seeds

Show entries before the last access.

Troubleshooting

Common pitfalls

Error reading database: No such file.

Solution: Check that the Autojump database exists at the expected path.

No entries found in Autojump database.

Solution: Ensure Autojump has been used to populate the database.

Invalid option: '-x'.

Solution: Check provided flags for compatibility.

Command Breakdown

What each part is doing

j
Base Command
The executable that performs this operation. Here it runs J before the shell applies any redirect operators.
-s
s| stat
The value supplied for s| stat.
-s
Command Option
Tool-specific option used by this command invocation.

How To Run

Execution path

  1. Step 1

    Run the command: j -s

  2. Step 2

    Check the output for directory paths and their access frequency.

  3. Step 3

    Validate the entries against your expected usage patterns.

Alternative Approaches

Comparable commands in other tools

Alternative version control tools for the same job.