linux服务器查看日志less命令
来源:互联网 发布:ipad淘宝下载 编辑:程序博客网 时间:2024/06/10 17:24
less filename
常用的命令:
shift + g 查询最新的
?搜索
ctrl + insert 复制
shift + insert 粘贴
g help
b 向后翻(看之前的日志)
f 往前翻(看最新的日志)
执行g ,即可查看完整的less 参考命令
SUMMARY OF LESS COMMANDS
Commands marked with * may be preceded by a number, N.
Notes in parentheses indicate the behavior if N is given.
h H Display this help.
q :q Q :Q ZZ Exit.
---------------------------------------------------------------------------
MOVING
e ^E j ^N CR * Forward one line (or N lines).
y ^Y k ^K ^P * Backward one line (or N lines).
f ^F ^V SPACE * Forward one window (or N lines).
b ^B ESC-v * Backward one window (or N lines).
z * Forward one window (and set window to N).
w * Backward one window (and set window to N).
ESC-SPACE * Forward one window, but don't stop at end-of-file.
d ^D * Forward one half-window (and set half-window to N).
u ^U * Backward one half-window (and set half-window to N).
ESC-) RightArrow * Left one half screen width (or N positions).
ESC-( LeftArrow * Right one half screen width (or N positions).
F Forward forever; like "tail -f".
r ^R ^L Repaint screen.
R Repaint screen, discarding buffered input.
---------------------------------------------------
Default "window" is the screen height.
Default "half-window" is half of the screen height.
---------------------------------------------------------------------------
SEARCHING
/pattern * Search forward for (N-th) matching line.
?pattern * Search backward for (N-th) matching line.
n * Repeat previous search (for N-th occurrence).
N * Repeat previous search in reverse direction.
ESC-n * Repeat previous search, spanning files.
ESC-N * Repeat previous search, reverse dir. & spanning files.
ESC-u Undo (toggle) search highlighting.
&pattern * Display only matching lines
---------------------------------------------------
Search patterns may be modified by one or more of:
^N or ! Search for NON-matching lines.
^E or * Search multiple files (pass thru END OF FILE).
^F or @ Start search at FIRST file (for /) or last file (for ?).
^K Highlight matches, but don't move (KEEP position).
^R Don't use REGULAR EXPRESSIONS.
---------------------------------------------------------------------------
JUMPING
g < ESC-< * Go to first line in file (or line N).
G > ESC-> * Go to last line in file (or line N).
p % * Go to beginning of file (or N percent into file).
t * Go to the (N-th) next tag.
T * Go to the (N-th) previous tag.
{ ( [ * Find close bracket } ) ].
- linux服务器查看日志less命令
- linux服务器查看日志less命令
- linux命令less查看大日志文件
- less 命令查看日志
- Linux服务器查看日志命令
- linux less查看日志信息
- linux less查看日志信息
- Linux 服务器查看日志基本命令
- Linux 服务器查看日志基本命令
- Linux 服务器查看日志的命令
- Linux 查看服务器日志
- linux 服务器日志查看
- "less is more",用"less”命令查看linux文本文件
- Linux 文件内容查看命令- less
- Linux文件内容查看命令-less
- Linux文件查看命令:tail,less,wc
- Linux查看日志命令
- Linux查看日志命令
- 关于ios的剪贴板基本知识
- 数据库查询优化原则
- 豆瓣网API实现客户端源码
- 很有用的系统宏
- 项目管理----项目进度管理
- linux服务器查看日志less命令
- ICE Manual(Documentation for Ice 3.5)---IceGrid
- Java DateFormat(时间日期格式转换)
- vs2005环境window embedded wince6.0 SP1+R2+R3补丁包
- Effective C++读书笔记 第八部分 定制new和delete
- C++使用引用计数的例子:表达式求值
- 淘宝SKU组合查询算法实现
- C++中引用与指针的区别
- UML类图