With this command, you can check the difference between the volumes mounted and the volume in /etc/fstab.
from a svn repo, print a log, with diff, of each commit touching a given file
Assumes you are in the branch you want to run the check on. Sub 'develop' for whatever branch you commonly submit PRs to. Show Sample Output
opens the output of some command as a file so this also works with graphical editors like meld, kdiff3 etc
meld <(ssh $remote_site cat .zshrc) .zshrc
A great command to assign to an alias, allowing you to git diff the last two commits in git.
As output, checksums and filenames will be printed.
Results will be shown in columns. Only different files and files in one directory that is not in the other will be shown.
Diff 2 branches, for a type of file & having a string in the diff
Copy changed files from the remote git repository, _including binary ones_, staged and unstaged alike. Note that this command doesn't handle deleted files properly. The reverse of the excellent command by Ivan.
Alternatively, the kernel provides a script to cleanly compare two config files even if the options have moved in the file itself: /usr/src/linux/scripts/diffconfig .config.old .config
Using sed to print newlines as doing it in one line with diff is non-trivial.
Or, if you have restricted access for sftp only, I think you can still do this:
diff /path/to/localfile <(scp user@host:/path/to/remotefile >(cat))
references: http://stackoverflow.com/questions/8818789/git-diff-word-diff-with-oneline-files use aha to output html: http://stackoverflow.com/a/20861333/199217
commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.
Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.
» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10
Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):
Subscribe to the feed for: