/
Commands that temporarily prevent terminal wrapping

Commands that temporarily prevent terminal wrapping

PROBLEM DESCRIPTION


I don't want to change the terminal option, so that the string output to the terminal with command or server settings will not be wrapped automatically.


RESOLUTION


You can use the 'less -S' command or the 'cut' command.
$ cat [filename] | less -S
$ cat [filename] | cut -c -tput cols

Related content

Long text line [5]
Long text line [5]
More like this
터미널에서 일시적으로 자동 줄 바꿈 안 되게 하는 명령
터미널에서 일시적으로 자동 줄 바꿈 안 되게 하는 명령
More like this
Terminal
More like this
Terminal
More like this
Copying trailing whitespaces generates newline [4]
Copying trailing whitespaces generates newline [4]
More like this
how to get more terminal lines on the screen [1]
how to get more terminal lines on the screen [1]
More like this