This is a draft cheat sheet. It is a work in progress and is not finished yet.
Commands
ps -ef|grep -i <processName> |
Get process ID |
netstat -anv | grep 8080 |
List port usage |
sudo netstat -plunt |
List all the occupied ports |
ps -ax <process_id> |
Finding process details |
kill -9 7653 |
Kill a process |
|
|
n -s <source> <dest> |
Create symlink |
find . -name “*.zip" |
search for files |
zip -r zip_name.zip <files to zip> |
Zip |
zip -r zip_name.zip <files to zip> -x <files to ignore> |
Zip everything by ignoring a folder (node modules) |
echo test | pbcopy |
copy the output to clipboard |
time <command> |
time taken by a command. Ex: time node sample.js
|
chmod --reference=otherfile thisfile |
copy permissons from a file |
chown --reference=otherfile thisfile |
copy ownership from a file |
|
|
Eclipse Shortcuts
⌘ ⇧ R |
Open file |
⌘ ⇧ T |
Open Type(Classes/Interfaces) even from library |
⌘ E |
List all open files (for easy navigation) |
⌃ Q |
Goto Last edited location |
⌘ . (or) ⌘ + |
Quick move to problems |
⌘ O |
List all methods in current file |
⌃ ⇧ Space |
Explain Method arguments |
IntelliJ Shortcuts
⌘ ⇧ N |
Search & Open Fle |
⌘ G |
goto Line |
F2 |
Goto Next Error |
⇧ F2 |
Goto Previous Error |
⌘ ⌥ F7 |
List all usages(Inline): |
⌥ F7 |
List all usages(bottom bar) |
⌘ ⇧ F7 |
Highlight current word |
⌥ F3 |
Quick / Incremental Search |
⌘ ⇧ N |
Paste from History |
⌃ ⇧ Space |
Current type based suggestion. |
⌘ 9 |
Open git & List Changes |
⌘ K |
Commit the changes |
⇧ F6 |
Rename |
|
|
Terminal Shortcuts
⌃ A |
Go to start of line |
⌃ E |
Move to end of line |
⌥ left / right |
Move word by word |
⌃ W |
Clear word by word in reverse |
Maven commands
mvn install -DskipTests |
skip tests |
mvn clean install -U |
force update packages |
mvn install -fae |
Run all test and fails only at end |
Gmail Shortcuts
x |
Mark/Unmark |
# |
Delete |
⇧ I |
Mark as read |
⇧ U |
Mark unread |
i |
Back to inbox |
u |
Back to previous thread |
r |
reply |
a |
reply to all |
|