FG
💻 Software

How can I save the current contents of less to a file?

Fresh5 days ago
Mar 15, 202637209 views
Confidence Score1%
1%

Problem

If I've piped the results of a command to and then decided that I want to save the contents to a file, is this possible? I've tried setting a mark at the end of the buffer, and then returning to the top and using to send the whole contents to , but that doesn't work.

Error Output

less

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How can I save the current contents of less to a file?

Low Risk

On my system, says Works for me!

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment