Common command remarks

eclipse ctrl + T View interface implementation class

eclipse ctrl + h can find a method in the whole project

eclipse ctrl+shift+r open resource (open file)

eclipse ctrl+g select quick search

eclipse ctrl+g click properties to find all references to the

eclipse ctrl + shift + / comment

eclipse ctrl + o to view the method

eclipse try catch shortcut key after entering try, alt + /





chrome ctrl + shift + del to clear the cache

chrome ctrl + n to open a new window

chrome ctrl + t to open a new tab

chrome ctrl + shift + t reopen closed tabs

chrome ctrl + tab switch tabs

chrome ctrl + f4 (or w) close current tab





windows netstat -ano|findstr 2080 View which ports are occupied

windows tasklist|findstr PID View which programs Occupy port

windows mstsc remote desktop

windows Ctrl + Shift + N New folder

windows set path view environment variables

windows ipconfig /flushdns flush dns cache

windows dir




linux ln -s /opt/oracle/docker /opt/testlink linux shortcut

linux tar -zxvf name.tar.gz decompress file

linux rm -rf filename delete file

linux tail -fn 200 catalina.out View the last 200 records in the file

linux(ubuntu) sudo passwd root Set a password for the root user

linux(ubuntu) sudo su Switch to the root user

linux ifconfig View the ip address

linux uname -r View the linux kernel version number

linux uname -m Check whether the linux architecture is 32-bit or 64-bit

linux(ubuntu) sudo lsb_release -a Check the version number

linux which wget which Check the location of the executable file

linux(ubuntu) sudo apt-get install openssh-server Install the ssh service

linux( ubuntu) ps -e |grep ssh Check if ssh is started and start with sshd

linux(ubuntu) /etc/init.d/ssh start start ssh service

linux ps -ef query all process information | grep docker filter specific process

linux vi o open a line under the current line, O insert a line of

linux vi u on the current line Undo the operation of the previous step Ctrl+r Restore the operation that was undone in the previous step

linux vi i,a

linux vi / Find
/pattern<Enter>: look down for the pattern matching string
?pattern<Enter>: look up the pattern matching string
Use After the search command is executed, use the following two keys to quickly search:
n: continue to search in the same direction
N: search in the opposite direction for

linux vi dd delete

linux vi:%s/old/new/g global replacement:%s/old/new /c Confirm to replace

the linux vi gg file header G file end

linux(ubuntu) shutdown -h now shutdown immediately

linux(ubuntu) shutdown -r now restart

linux immediately netstat -tpnl #View the port opening status

linux top #View the real-time operation of the linux system Figure

linux find / -name redis 2>/dev/null



jdk jps

jdk jconsole

jdk java -cp target\my-app-1.0-SNAPSHOT.jar cn.luxh.app.App




maven mvn dependency:sourcess Download the source code

maven mvn eclipse:eclipse Convert the maven project to a normal project

maven clean install Install to repo

maven mvn archetype:create-from-project

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326481422&siteId=291194637