FG
💻 Software

Reuse text on a bash command

Fresh7 days ago
Mar 15, 2026517 views
Confidence Score0%
0%

Problem

If i'm writing a long command or just typing an extensive file path, is there any that i can "reuse" it with some command shortcut? e.g: 1. Do i really have to type it all over again?

Error Output

cp /home/myuser/really/big/file/here/and/there.png /home/myuser/really/big/file/here/and/there.png.bkp

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Reuse text on a bash command

Low Risk

Use brace expansion

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment