Comparing 2 files: diff file1 file2
Comparing 2 files (graphical):
gvimdiff file1 file2
tkdiff file1 file2
kompare file1 file2
Comparing 2 directories: diff -r dir1 dir2
Create a directory: mkdir dir Create nested directories: mkdir -p dir1/dir2Changing...
List all “regular” files (not starting with .) in the current directory:lsDisplay a long...
Concatenate and display file contents:cat file1 file2Display the contents of several files...
Concatenate all “regular” files: cat *Concatenate all “hidden” files: cat .*Concatenate all files...
Show only the lines in a file containing a given substring: grep substring fileCase insensitive...