• Home
  • Docker
  • Kubernetes
  • LLMs
  • Java
  • Ubuntu
  • Maven
  • Big Data
  • Archived
Linux-Ubuntu | cat -- concatenate and print files
  1. Notes
  2. Examples
  3. Command Help (man cat)

  1. Notes

    The cat command takes a list of file names for its arguments.
    It outputs the contents of those files directly to the standard output, which, by default, is directed to the screen.
  2. Examples
    • Write the content of a file:

      You can use the option -n to print the line number:

    • Write the content of multiple files:

    • Write the content of multiple files one by one (enter EOF character ('^D') for each file):
  3. Command Help (man cat)
    The following options can be used:
© 2025  mtitek