Online Linux Terminal Logo
OnlineLinuxTerminal
DateioperationenCLI Manual

$cat

Dateiinhalte verketten und auf der Standardausgabe ausgeben.

BefehlssyntaxPOSIX Standard
cat [OPTIONS] [FILE...]
Linux-Community2.4k Online

Tausche dich mit Linux-Nutzern aus, lerne Befehle und lade PDF-Cheatsheets herunter.

Live im interaktiven Terminal ausprobieren

Client-seitige Simulation ohne Installation mit sofortigem Feedback.

Im Vollbild-Terminal öffnen ↗
bash — terminal

Überblick & Funktionsweise

cat gibt den gesamten Inhalt einer Datei direkt auf der Konsole aus.

Wichtige Optionen und Flags

Flag / OptionDescription
-nNumber all output lines starting from 1.
-bNumber only non-blank output lines.
-sSqueeze multiple consecutive blank lines into a single blank line.
-EDisplay a dollar sign ($) at the end of each line.

Praktische Anwendungsbeispiele

#1Display file contents with line numbers
cat -n welcome.txt

Reads welcome.txt and prints each line prefixed with its line index.

#2Inspect OS release configuration
cat /etc/os-release

Displays Linux distribution and kernel release information.