Cheatography
https://cheatography.com
Software development reference for Git, Maven and Bash commands.
Navigation
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
|
Maven Clean Lifecycle
pre-clean |
clean |
post-clean |
Maven Default Lifecycle
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 |
|
|
Directory Key
Current |
. |
Last |
- |
Home |
~ |
Parent |
.. |
Root |
/ |
Patter Key
Any string |
* |
Any character |
? |
Any of character set |
[...] |
Negate |
! |
Or |
| |
Directory Manipulation
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
|
Maven Options
Profile |
-P profile name |
Skip unit tests |
-DskipTests |
Skip integration test |
-DskipITs |
Skip all tests |
-Dmaven.test.skip=true |
Maven Site Lifecycle
pre-site |
site |
post-site |
site-deploy |
|
|
Display
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
|
Command Line Control
Delete |
Ctrl W |
Clear Line |
Ctrl U |
Start of Line |
Ctrl A |
End of Line |
Ctrl E |
Git
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
|
|
Created By
Metadata
Favourited By
Comments
DaveChild, 09:01 15 Apr 14
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.
Add a Comment
Related Cheat Sheets
More Cheat Sheets by tertioptus