I have a single line of about 30000 characters (and no newline) in my clipboard. I want to put that into a file. I tried the following command in a GNOME terminal (Ubuntu 20.04):
cat > file.ext
and then pasted the line using shift+ctrl+V.
The file ended up with only 4096 characters.
I can successfully create the file by typing
gedit file.ext
and then pasting the line with ctrl+V and closing the text editor. But why can't I do it with a command-line utility like cat?