Securecrt command:
Startup. Sh // start Tomcat. If startup. Sh is mapped, it can be in any directory.
Shutdown. Sh // shut down Tomcat
CD/home // go to the home directory
Ll list all files in the current directory, including detailed information about each file
Ls // only list file names
PS-Ef // view the server processes, which are displayed in the list.
PS: displays the processes currently running in the system/usr/bin/PS [Option]-E: displays a complete list of each currently running process-F
Ant-buildfile cms_maintrunk.xml // build package
Process: undeploy first, disable tomcat, then build (ANT), and finally start Tomcat
In http: // 127.0.0.1: 8080/manager/html, undeploy
Reset ate root:/usr/local/jakarta-tomcat-5.0.28
[Root @ localhost classes] # vi test.txt // browse the File Content
I {insert write input}
ESC exit insert
: WQ! Write: Save and exit VI Mode
: Q! Exit VI mode without saving
PWD // display the current working directory
At the shell prompt, enter history to view the commands you have previously entered (historical commands you have entered on this server are not necessarily all that you have entered ).
# History 20 (display the last 20 commands)
When I use securecrt to view the server process, I usually use the PS-Ef command to view the server process displayed in the list. By accident, we found that some commands can be used to display the server process in the form of a process tree, that is, to display the derivative relationship of the process. I thought it was quite fun. I entered the command pstree, how is it garbled, set the Chinese font. In securecrt: Options-> sessionoptions-> appearance-> font to the default to the UTF-8 can be:
Run the pstree command to view the server process. In this way, the server process displayed in the form of a tree is displayed. As follows:
Let's see what pstree's man manual says:
Function Description: displays programs in a tree chart.
Syntax: pstree [-acghlnpuuv] [-H <program identification code>] [<program identification code>/<User Name>]
Note: The pstree command uses ASCII characters to display the tree structure and clearly express the interconnectivity between programs.
System. If no program identification code or user name is specified, the first program at system startup will be considered as the base layer, and
Show all programs. If the user name is specified, the first program that belongs to the user is used as the base layer.
All programs of the user are displayed.
Parameters:
-A shows the complete commands of each program, including the path, parameters, or resident service labels.
-C does not use the simplified labeling method.
-G uses column plot characters of the VT100 terminal.
-H: Specifies the program to be executed when listing the tree chart.
-H <program identification code> the effect of this parameter is similar to that of the specified "-h" parameter, but it is particularly indicated by the specified program.
-L the tree chart is displayed in the long column format.
-N is sorted by the program identifier. Preferences are sorted by program names.
-P indicates the program identifier.
-U: displays the user name.
-U plot characters using UTF-8 columns.
-V displays the version information.
The advantage of the pstree command is that you can immediately find the parent process of a process: When you want to terminate the entire process series and there are many subordinate branch processes, you only need to terminate the process at the upper layer. You may need to use the-P option to display the PID of each process, and the-u option to display the user name that starts the process. In general, this tree structure is relatively long, so you need to execute pstree-up | less, which will allow you to view the entire process tree structure.
Hostname: Check hostname
Ifconfig
Have you ever been troubled by the inability to use Ctrl + C and CTRL + v in a S-CRT?
Options ----- Global Options --- edit default settings, click Terminal ---- emulation, click mapped keys, and click "use Windows copy and paste key" in the middle and lower layers. Click "OK ".
1. After you complete an operation on a network, you suddenly find that you forgot to monitor the session, or sh runs nearly 10 thousand lines of commands. The screen turns back and cannot flip several pages, in this case, you can modify a parameter to achieve the following effect:
Options ----- Global Options --- edit default settings, click Terminal ---- emulation --- modify the number next to scroll back. For example, if I select 10000, you can select a larger value, click OK.
Upload Linux Files to PC
[Root @ test root] # sz/etc/rc. Local
Upload files from a PC to Linux
[Root @ test root] # Rz
Select the file to be transferred and click OK.
SZ: Specifies the file name. Use tab to download the file to download (set path in x/y/zmodem ).
PWD: displays the current directory
Appendix: Use of ipvs
// Enter the SQL running environment
[Test @ test bin] $./Psql-N dbname-u usrname
Stay81 = # select count (*) from Table1;
Count
-------
5986
(1 row)
// Exit. Exit after use. Otherwise, the connection will be suspended.
Stay81 = #/Q
//S data export
[S @ test bin] $./pg_dump-u Postgres-T testtable-D testdb> testtable. Dump
//S data import
[S @ test bin] $./Psql-u Postgres-D testdb <testtable. Dump
//S data export
[S @ test bin] $./pg_dump-u Postgres-D testdb-T testtable-f c-V> testtable. Dump
//S data import
[S @ test bin] $./pg_restore-u Postgres-D testdb <testtable. Dump
//One host dumps the database directory to another
Pg_dump-H host1-P 5432 dbname | Psql-H host2-P post1 dbname
./Pg_dump-u Postgres-D testdb1-T testtable |./Psql-u Postgres-D testdb2
-U is the user name
-D indicates the database name.
-T indicates the table name. This option is not required if the entire database is exported.
//PHP Execution
[Test @ test bin] $/usr/bin/PHP-Q./batchstart. php