space-command Verified current stable Not installed? Version Control

Space Command / Run Command Without Adding To History

Run Command Without Adding To History

Executes a command without adding it to the shell history, preventing potential exposure in shared environments.

$
Terminal
<Space><command>

When To Use

In a sensitive session where command confidentiality is paramount.

Pro Tip

Utilize the `-e` option for commands that should not echo output, further enhancing confidentiality.

Command Builder

Tune the command before you copy it

Back to syntax
$
Generated Command
<Space><command>

Anatomy of Output

Understanding the result

$ echo 'This will not be in history' Command Executed

The command that was run, demonstrating no history entry.

This will not be in history Output

The result of the executed command.

Troubleshooting

Common pitfalls

bash: command not found: space-command

Solution: Ensure the CLI tool is installed and in your PATH.

bash: syntax error near unexpected token 'newline'

Solution: Check the syntax of the provided command.

bash: argument expected

Solution: Provide a valid command argument after 'space-command'.

Command Breakdown

What each part is doing

<Space><command>
Base Command
The executable that performs this operation. Here it runs Space Command before the shell applies any redirect operators.
<command>
command
The value supplied for command.

Alternative Approaches

Comparable commands in other tools

Alternative version control tools for the same job.