p Verified current stable Not installed? Filesystem

P / Print Bookmarked Directory Contents

Print Bookmarked Directory Contents

Displays contents of a directory saved as a bookmark.

$
Terminal
p <bookmark_name>

When To Use

When reviewing contents of directories that are frequently accessed via bookmarks.

Pro Tip

Combine with `grep` for filtering specific file types in the output.

Command Builder

Tune the command before you copy it

Back to syntax
$
Generated Command
p <bookmark_name>

Terminal Output

Expected runtime feedback

Simulated preview
>
Output
Listing contents of bookmark: projects

Name          Size     Modified
------------------------------------
ProjectA      4.5MB   2023-10-02 14:30
ProjectB      2.3MB   2023-10-01 10:15
ProjectC      1.7MB   2023-09-30 09:00

Anatomy of Output

Understanding the result

file1.txt | 1.2KB | 2023-10-01 | text File List

Details of files including name, size, and type.

subdir1 | 4.0KB | 2023-10-02 | directory Dir List

Indicates another directory within the bookmark.

total files: 5 Total Files

Summarizes the number of files within the bookmarked directory.

Troubleshooting

Common pitfalls

Bookmark not found

Solution: Check if the specified bookmark name is correct.

No files found in the directory

Solution: Ensure the bookmark points to a directory containing files.

Permissions denied

Solution: Verify read permissions on the target directory.

Command Breakdown

What each part is doing

p
Base Command
The executable that performs this operation. Here it runs P 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

    Run the command: `p projects`

  2. Step 2

    Confirm the output lists the bookmarked directory contents correctly.

Alternative Approaches

Comparable commands in other tools

Alternative filesystem tools for the same job.