Linux command
kate 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Open file in Kate
kate [file]
Open file at specific line
kate -l [25] [file]
Open file at line and column
kate -l [25] -c [15] [file]
Start with specific session
kate -s [sessionname]
Open from stdin
cat [file] | kate -i
Block until editor closes
kate -b [file]
说明
kate is the KDE Advanced Text Editor, a feature-rich text editor with syntax highlighting, code folding, terminal integration, and multi-document support. Suitable for programmers and power users who need advanced editing capabilities.
参数
- -l, --line _line_
- Navigate to line number.
- -c, --column _column_
- Navigate to column number.
- -s, --start _name_
- Start with given session.
- -n, --new
- Force new Kate instance.
- -b, --block
- Block until editor exits.
- -i, --stdin
- Read document from stdin.
- -e, --encoding _name_
- Set file encoding.
- --tempfile
- Delete file after closing.
FAQ
What is the kate command used for?
kate is the KDE Advanced Text Editor, a feature-rich text editor with syntax highlighting, code folding, terminal integration, and multi-document support. Suitable for programmers and power users who need advanced editing capabilities.
How do I run a basic kate example?
Run `kate [file]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -l, --line _line_ do in kate?
Navigate to line number.