Last active
August 23, 2016 23:53
-
-
Save grenoult/92784fb663f2a402e2aef6a1a2bbcead to your computer and use it in GitHub Desktop.
General Unix stuff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Vim: replace ‘),(‘ by ‘),\n(‘ | |
:%s/),(/),\r(/g | |
# Archive content without extraction | |
tar -tf filename.tar.gz | |
# Find a file by its name | |
find . -name "profile.html" | |
# Execute multiple processes | |
A; B # Run A and then B, regardless of success of A | |
A && B # Run B if A succeeded | |
A || B # Run B if A failed | |
A & # Run A in background. | |
# Git: ignore file to be commited | |
git update-index --assume-unchanged file.txt | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment