Nilani Algiriyage Nilani Algiriyage - 3 months ago 13
Linux Question

How to traverse when using `cat` command?

How to travel in the shell using

cat
command? (arrow keys are not working)

cat > myfile

Answer

I think you are asking for a pager. For that you can use more or less (yes, these are the real names). As an example, you can use cat FILE | less or just less FILE. In there, you can scroll/search/... (exit with q).

Comments