Kolam Ayer MakersLinux Foundations

Command: cat

Print a file.

cat /etc/os-release

Use cat for short files. Use less when output is too long.

bat is often nicer than both cat and less for interactive reading because it adds highlighting and paging. cat and less are the real standards: expect them everywhere, and expect bat only when the system has installed it.