DateioperationenCLI Manual
$cat
Dateiinhalte verketten und auf der Standardausgabe ausgeben.
BefehlssyntaxPOSIX Standard
cat [OPTIONS] [FILE...]Live im interaktiven Terminal ausprobieren
Client-seitige Simulation ohne Installation mit sofortigem Feedback.
bash — terminal
AST Sandbox (Free)
Überblick & Funktionsweise
cat gibt den gesamten Inhalt einer Datei direkt auf der Konsole aus.
Wichtige Optionen und Flags
| Flag / Option | Description |
|---|---|
| -n | Number all output lines starting from 1. |
| -b | Number only non-blank output lines. |
| -s | Squeeze multiple consecutive blank lines into a single blank line. |
| -E | Display a dollar sign ($) at the end of each line. |
Praktische Anwendungsbeispiele
#1Display file contents with line numbers
cat -n welcome.txtReads welcome.txt and prints each line prefixed with its line index.
#2Inspect OS release configuration
cat /etc/os-releaseDisplays Linux distribution and kernel release information.
Verwandte Linux-Befehle
$findDateioperationen
Durchsuchen Sie Verzeichnishierarchien nach Dateien basierend auf Name, Typ, Größe oder Änderungsdatum.
$mkdirDateioperationen
Create new directories and folder hierarchies.
$rmDateioperationen
Remove files or directories from the filesystem.
$cpDateioperationen
Copy files and directories to a destination path.
$mvDateioperationen
Move or rename files and directories.
$touchDateioperationen
Create empty files or update file access and modification timestamps.