greater-than
Verified for current stable LTS
Greater Than Command: Clear File Or Create Empty File
Use for clear file or create empty file with Greater Than. Exact CLI syntax to clear file or create empty file using Greater Than.
When to use this: Use for clear file or create empty file with Greater Than.
Command Syntax
> <path/to/file> > <path/to/file> Command Breakdown
> is the base executable for this command.
FAQ
Purpose: Exact syntax to clear file or create empty file using Greater Than.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.
Related Operations
Greater Than Command: Append Stdout To File
<command> >> <path/to/file> Greater Than Command: Append To File <command> >> <path/to/file> Greater Than Command: Clear File Or Create New Empty File > <path/to/file> Greater Than Command: Open Persistent File Descriptor exec <3>><path/to/file> Greater Than Command: Redirect Stderr To Dev Null <command> 2> /dev/null