Try:
diff --brief --recursive dir1/ dir2/
Or alternatively, with the short flags -qr
:
diff -qr dir1/ dir2/
If you also want to see differences for files that may not exist in either directory:
diff --brief --recursive --new-file dir1/ dir2/ # with long options diff -qrN dir1/ dir2/ # with short flag aliases
Related Posts:
- What is the difference between “#!/usr/bin/env bash” and “#!/usr/bin/bash”?
- How do I use grep to search the current directory for all files having the a string “hello” yet display only .h and .cc files?
- “sed” command in bash
- Pseudo-terminal will not be allocated because stdin is not a terminal
- Extract file basename without path and extension in bash
- Diff command along with Grep gives “Binary file (standard input) matches”
- Pseudo-terminal will not be allocated because stdin is not a terminal
- ./configure : /bin/sh^M : bad interpreter
- Is there a “goto” statement in bash?
- What does `set -x` do?
- Command to change the default home directory of a user
- Writing a simple shell in C using fork/execvp
- chmod: changing permissions of ‘my_script.sh’: Operation not permitted
- What does “&” at the end of a linux command mean?
- What does set -e mean in a bash script?
- What does set -e mean in a bash script?
- Syntax error near unexpected token ‘then’
- How do I write stderr to a file while using “tee” with a pipe?
- How do I know the script file name in a Bash script?
- What is “-bash: !”: event not found”
- What does ‘set -e’ do, and why might it be considered dangerous?
- How to add a timestamp to bash script log?
- Colors in bash after piping through less?
- How to run command as user who has /usr/sbin/nologin as Shell?
- How to get pid of just started process
- Can you have more than one ~/.ssh/config file?
- How do I pause my shell script for a second before continuing?
- In the shell, what does ” 2>&1 ” mean?
- How do I grep recursively?
- How do I grep recursively?
- “Couldn’t find a file descriptor referring to the console” on Ubuntu bash on Windows
- In the shell, what does ” 2>&1 ” mean?
- gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now
- How do I grep recursively?
- How can I recursively find all files in current and subfolders based on wildcard matching?
- How can I check if a directory exists in a Bash shell script?
- subprocess.Popen(): OSError: [Errno 8] Exec format error in python?
- How to substitute shell variables in complex text files
- -bash: syntax error near unexpected token `newline’ for display command
- How can I recursively find all files in current and subfolders based on wildcard matching?
- SSH using python script
- Curl command for https ( SSL )
- How can I exclude directories from grep -R?
- How to exclude a directory in find . command
- How to exclude a directory in find . command
- Shell command to tar directory excluding certain files/folders
- Argument list too long error for rm, cp, mv commands
- Difference between using “chmod a+x” and “chmod 755”
- Explaining the ‘find -mtime’ command
- How does “cat << EOF" work in bash?
- How can I kill a process by name instead of PID, on Linux?
- mv: cannot stat error : No such file or directory error
- How to make and apply SVN patch?
- Which characters need to be escaped when using Bash?
- screen Cannot open your terminal ‘/dev/pts/0’ – please check
- How to download a file from server using SSH?
- Implementing shell in C and need help handling input/output redirection
- How to count lines in a document?
- How to get the process ID to kill a nohup process?
- Sorting data based on second column of a file
- Implementation of multiple pipes in C
- Variable interpolation in the shell
- Using ls to list directories and their total sizes
- tar: add all files and directories in current directory INCLUDING .svn and so on
- “find: paths must precede expression:” How do I specify a recursive search that also finds files in the current directory?
- Copy multiple files from one directory to another from Linux shell
- Shell script not running, command not found
- Bash script prints “Command Not Found” on empty lines
- Using grep and ls -a commands
- How to use sed to extract substring
- Pipe to/from the clipboard in a Bash script
- Linux Bash: Move multiple different files into same directory
- Restarting cron after changing crontab file?
- Difference between sh and Bash
- cd into directory without having permission
- How to enable Bash in Windows 10 developer preview?
- What does ‘bash -c’ do?
- How can I sort du -h output by size
- What are the functional differences between .profile .bash_profile and .bashrc
- Can I nohup/screen an already-started process?
- Environment variables of a running process on Unix?
- In my /etc/hosts/ file on Linux/OSX, how do I do a wildcard subdomain?
- Shell command to monitor changes in a file
- When does /tmp get cleared?
- How do I prevent accidental rm -rf /*?
- How do I sleep for a millisecond in bash or ksh
- Is it possible to detach a process from its terminal? (Or, “I should have used screen!”) [duplicate]
- What’s the best way to check if a volume is mounted in a Bash script?
- What useful things can one add to one’s .bashrc? [closed]
- Meaning of directories on Unix and Unix like systems
- How to remove empty/blank lines from a file in Unix (including spaces)?
- How can I kill all stopped jobs?
- How can I rename a Unix user?
- Linux command line best practices and tips?
- How to disable everything in crontab -l?
- How can I fully log all bash scripts actions?
- How to sort ps output by process start time?
- How to remove invalid characters from filenames?
- zcat/gzcat works in linux, not on osx. general linux/osx compatibility
- How do I join two named pipes into single input stream in linux