[shell cmd] more
초보라면,
ls 리스트가 한 화면을 넘치는 경우 위쪽에 있는 것을 보려고 스크롤 하고 싶을 때가 있죠.
특히 linux server 환경이면, 스크롤리 안된다는....
이때 ls 와 more 라는 유틸리티를 사용하여 파이프를 통한 출력이 가능합니다.
more 를 사용하는 경우 화면 단위로 볼수가 있습니다.
$ ls | more
$ more
Usage: more [options] file...
Options:
-d display help instead of ring bell
-f count logical, rather than screen lines
-l suppress pause after form feed
-p suppress scroll, clean screen and disblay text
-c suppress scroll, display text and clean line ends
-u suppress underlining
-s squeeze multiple blank lines into one
-NUM specify the number of lines per screenful
+NUM display file beginning from line number NUM
+/STRING display file beginning from search string match
-V output version information and exit
'IT > shell script, cmd' 카테고리의 다른 글
리눅스에서 시리얼 디바이스 상태 확인 방법(Shell cmd) (0) | 2018.12.05 |
---|---|
[shell cmd] ps : 프로세스 확인 (0) | 2015.06.28 |
[shell cmd] sort (0) | 2015.06.28 |
[shell cmd] man (0) | 2015.06.28 |
[shell cmd] info (0) | 2015.06.28 |