/
터미널에서 일시적으로 자동 줄 바꿈 안 되게 하는 명령
터미널에서 일시적으로 자동 줄 바꿈 안 되게 하는 명령
현상
터미널 옵션을 바꾸지 않고 명령어 혹은 서버 설정으로 터미널에 출력되는 문자열이 자동 줄 바꿈 되지 않게 하고 싶습니다.
해결 방법
'less -S' 명령이나 'cut' 명령어를 활용할 수 있습니다.
$ cat [파일명] | less -S $ cat [파일명] | cut -c -tput cols
Related content
Commands that temporarily prevent terminal wrapping
Commands that temporarily prevent terminal wrapping
More like this
자동 줄넘김 관련 [1]
자동 줄넘김 관련 [1]
More like this
솔라리스 cde사용시 dtterm 관련 질문. [1]
솔라리스 cde사용시 dtterm 관련 질문. [1]
More like this
[Q] HP 10.20 에서 키보드를 사용한 cut & paste
[Q] HP 10.20 에서 키보드를 사용한 cut & paste
More like this
Ctrl+Alt+P 등의 키를 사용하고 싶습니다.
Ctrl+Alt+P 등의 키를 사용하고 싶습니다.
More like this
Home/End Keys in the less Command
Home/End Keys in the less Command
More like this