diff Linux Command
Compares two files line by line and shows the differences.
What does diff do?
Compares two files line by line and shows the differences.
Syntax
diff [options] file1 file2Practical example
diff old-config.conf new-config.confRelated File Management
teeReads from stdin and writes to both stdout and one or more files simultaneously.
mkdirCreates a new directory (folder). Use -p to create nested directories.
fileDetermines and displays the file type (text, binary, image, etc.).
touchCreates an empty file or updates the timestamp of an existing file.
statDisplays detailed file and filesystem information (size, permissions, timestamps).
cpCopies files or directories from one location to another.