cat

cat

  • cat: short for con- cat -enate

  • Concatenate a number of files onto stdout

    $ cat file1 file2 ...
    
  • Frequently used to show content of a single short file (rather than opening the file with an editor)

    $ cat /etc/passwd
    root:x:0:0:root:/root:/bin/bash
    bin:x:1:1:bin:/bin:/sbin/nologin
    daemon:x:2:2:daemon:/sbin:/sbin/nologin
    ...
    jfasch:x:1000:1000:Joerg Faschingbauer:/home/jfasch:/bin/bash
    ...