mg
Verified for current stable LTS
Mg Command: Open Files Read Only
Use for open files read only with Mg. Exact CLI syntax to open files read only using Mg.
When to use this: Use for open files read only with Mg.
Destructive Command Warning
Destructive operation. Confirm the target path and keep a backup before executing.
Command Syntax
mg -R <path/to/file1 path/to/file2 ...> mg -R <path/to/file1 path/to/file2 ...> Command Breakdown
-R- Command Option
- Tool-specific option used by this command invocation.
FAQ
Purpose: Exact syntax to open files read only using Mg.
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
Mg Command: Disable Backup Files While Editing
mg -n <path/to/file> Mg Command: Open File At Specified Line Number mg +<line_number> <path/to/file> Mg Command: Open File For Editing mg <path/to/file> Createuser Command: Create User No Db No Role createuser -D -R <username> Ctest Command: Filter Tests By Regex ctest --output-on-failure -R '^<test_name>$'