Show Menu
Cheatography

Shahul_cheatsheet1 Cheat Sheet (DRAFT) by

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Commands

ps -ef|grep -i <pr­oce­ssN­ame>
Get process ID
netstat -anv | grep 8080
List port usage
sudo netstat -plunt
List all the occupied ports
ps -ax <pr­oce­ss_­id>
Finding process details
kill -9 7653
Kill a process
 
 
n -s <so­urc­e> <de­st>
Create symlink
find . -name “*.zip­"
search for files
zip -r zip_na­me.zip <files to zip>
Zip
zip -r zip_na­me.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 <co­mma­nd>
time taken by a command. Ex:
time node sample.js
chmod --refe­ren­ce=­oth­erfile thisfile
copy permissons from a file
chown --refe­ren­ce=­oth­erfile thisfile
copy ownership from a file
 

Eclipse Shortcuts

⌘ ⇧ R
Open file
⌘ ⇧ T
Open Type(C­las­ses­/In­ter­faces) even from library
⌘ E
List all open files (for easy naviga­tion)
⌃ 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­(In­line):
⌥ F7
List all usages­(bottom bar)
⌘ ⇧ F7
Highlight current word
⌥ F3
Quick / Increm­ental Search
⌘ ⇧ N
Paste from History
⌃ ⇧ Space
Current type based sugges­tion.
⌘ 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 -Dskip­Tests
skip tests
mvn clean install -U
force update packages
mvn install -fae
Run all test and fails only at end

Gmail Shortcuts

x
Mark/U­nmark
#
Delete
⇧ I
Mark as read
⇧ U
Mark unread
i
Back to inbox
u
Back to previous thread
r
reply
a
reply to all