|
List all directory contents in long data form
ls -al directory
|
|
Find all java files by extension
find directory -name pattern
|
|
Find all indexed paths in updatedb
locate option pattern
|
|
Finds source, binary and manual files:
whereis filename
|
|
Shows full path of command
which -a filename
|
|
pre-clean
|
|
clean
|
|
post-clean
|
|
validate
|
|
initialize
|
|
generate-sources
|
|
process-sources
|
|
generate-resources
|
|
process-resources
|
|
compile
|
|
process-classes
|
|
generate-test-sources
|
|
process-test-resources
|
|
test-compile
|
|
process-test-classes
|
|
test
|
|
prepare-package
|
|
package
|
|
pre-integration-test
|
|
integration-test
|
|
post-integration-test
|
|
verify
|
|
install
|
|
deploy
|
|
Current
|
.
|
|
Last
|
-
|
|
Home
|
~
|
|
Parent
|
..
|
|
Root
|
/
|
|
Any string
|
*
|
|
Any character
|
?
|
|
Any of character set
|
[...]
|
|
Negate
|
!
|
|
Or
|
|
|
|
Change directory
cd
|
|
Remove directory
rmdir
|
|
Move directory
mv source destination
|
|
Remove all files recursively
rm -rf
|
|
Copy directory or file
cp source destination
|
|
Create shortcut
ln -s path alias
|
|
Create directory
mkdir directory name
|
|
Create empty file or update time stamp.
touch filename
|
|
Profile
|
-P profile name
|
|
Skip unit tests
|
-DskipTests
|
|
Skip integration test
|
-DskipITs
|
|
Skip all tests
|
-Dmaven.test.skip=true
|
|
pre-site
|
|
site
|
|
post-site
|
|
site-deploy
|
|
Variable string
echo string
|
|
Numbered-line text
cat -n filepath
|
|
Scrollable numbered-line text
less -N filepath
|
|
Current directory
pwd
|
|
Beginning of a file
head
|
|
End of a file
tail
|
|
Count: character, word and line
wc
|
|
Directory hierarchy
tree path
|
|
Delete
|
Ctrl W
|
|
Clear Line
|
Ctrl U
|
|
Start of Line
|
Ctrl A
|
|
End of Line
|
Ctrl E
|
|
Create repository
git init
|
|
Untrack files
git rm --cached filename
|
|
Get remote repository
git clone url
|
|
Stage all files
git add --all
|
|
Push commits to remote repo
git push alias branch
|
|
Pull changes from remote repo
git pull alias branch
|
|
Show log
git log
|
There was an issue with gif images on the PDFs, which I've now resolved. The new PDF is now being created properly for this cheat sheet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.