When using other tools commonly connected linux system commands.
Connection: ssh username @ip
Into the root directory: cd / (generally the first to enter into the root directory and other folders)
Access to other folders: cd / home / qcq
Displays all the files folder: ls
Access to other folders when the first knock out part of a character, press the tab key to completion, eg: there are class under qcq folder, jsp directory, enter the command cd cl press the tab key to completion as cd class file if qcq there folder claes, will let you choose.
Exit the file: cd ..
Extracting the war file: var -xvf filename .war
Switching into the oracle user: su - oracle
Run in sql sql script: @sql script path / sql script
Enter sqlplus: sqlplus username / password (recommended here directly enter a user name and password, once entered in sqlplus when you want to delete a letter there will be two characters, but also has the effect can be used)
Then you can perform the operation of the sql statement.
Enter mysql ./bin/mysql -u root -pfirewall
Switch User: use the database name
Set the character: set utf8
Eg source sql file directory:: Run sql script source /home/abc/abc.sql
Real-time View Log: tail -f log file name eg: tail -f firewall / logs / log.log
Delete a file: rm -r filename
Copy a file: cp -r / 1 file path / filename 1/2 file path / filename The file path name 2 1 1 2 copied to the file path and rename the file name 2
Create a folder: mkdir file delegates create a file in this folder.
View process: ps aux | greq tomcat tomcat view process information
Close process: kill -9 process id (process id there when viewing the process)
Give permission: chomd 777 file name.
The entire contents of a file a user is authenticated: chown -R username file
View history commands: history
Start tomcat command: bin / startup.sh