SECURECRT Personal Operating Manual

Source: Internet
Author: User
Tags manual first string parent directory psql solr table name
Hostname 10.1.9.191
Port 22
Username Vrms
Password CMCC



Last Login:sat June 09:58:46 from 192.168.4.17
? Vrms@service/home/vrms
> su
Password: (rootroot)
? Vrms@service/home/vrms
> su
? Vrms@service/home/vrms
> rz (Upload, sz reverse to PC)
RZ waiting to receive.
Starting Zmodem transfer. Press CTRL + C to cancel.
Transferring Statistic-0.0.1-snapshot.jar ...
100% 56187 KB 7023 kb/sec 00:00:08 0 Errors

? Vrms@service/home/vrms
> SZ
Sz:need at least one file to send
Try ' sz--help ' for more information.
? Vrms@service/home/vrms
> MV Statistic-0.0.1-snapshot.jar/usr/local/app
? Vrms@service/home/vrms
> Cd/usr/local/app
? Vrms@service/usr/local/app
> ls
Eureka-server-0.0.1-snapshot.jar Statistic-0.0.1-snapshot.jar
Search-service-provider-0.0.1-snapshot.jar Vrms-security-0.0.1-snapshot.jar
Spring-cloud-config-0.0.1-snapshot.jar
? Vrms@service/usr/local/app
> Cd/usr/local/logs
? Vrms@service/usr/local/logs
> ls
Config.log eureka.log SOLR Solr.log user.log
? Vrms@service/usr/local/logs
> Touch Statics.log
? Vrms@service/usr/local/logs
> Cd/usr/local/app
? Vrms@service/usr/local/app
> ls
Eureka-server-0.0.1-snapshot.jar Statistic-0.0.1-snapshot.jar
Search-service-provider-0.0.1-snapshot.jar Vrms-security-0.0.1-snapshot.jar
Spring-cloud-config-0.0.1-snapshot.jar
? Vrms@service/usr/local/app
? Vrms@service/usr/local/app
> Nohup java-jar statistic-0.0.1-snapshot.jar >>/usr/local/logs/statics.log& (boot jar package)
[1] 4403
Nohup: Ignore input redirect error to standard output
? Vrms@service/usr/local/app
>



PS-EF View process,
Kill 4403
Tail-n 550 Statics.log
Where can I find the jar package?
TASK build, inside the lib of build


Common commands:
First, LS only lists the file name (equivalent to Dir,dir can also be used)
-A: Lists all files, including hidden files.
-L: List form, which contains most of the properties of the file.
-R: Recursive display.
--help: Help for this command.

Second, CD change directory
CD/: Go to the root directory
CD: Go back to your directory (different directories are different, root is/root,xxt for/home/xxt
Cd.. : Back to Parent directory
PWD: Displays the directory where you are currently

Three. Less file name: View the contents of the file.
Tail-f Log name: View Log

Four. Q exit the Open file.

Five. Upload file: RZ Select the file to be transferred, OK.

Six. download file: Sz Specify the file name, enter to hit, that is downloaded to the Securecrt/download directory.

Seven: Delete file: RM Delete file, rmdir delete empty directory. RM-RF forcibly deleting a non-empty directory

Eight. Show the last 20 commands entered: History 20

Nine. Get help command--help View command under detailed parameters: such as: RZ--help, Sz--help.

10. The CD Entry command to a folder:
mkdir+ folder name command to create a folder
sz+ file name from server-side send files to native command
RZ commands to transfer files from the local to the server side
ll lists all files in the current directory, including details for each file
Dir to the current folder
VI Open the current file

11. When editing a file:
A switch to edit mode
CTRL + C Exit Edit mode
DD Delete entire row
: Q Exits the current file
: W writes and saves the current file
-F Force XX parameters ...

Other commands:
1.PS-EF//View the server process as a list of the server processes that are displayed.
PS shows the process currently running on the system/usr/bin/ps [options]-e display each now running process-F to generate a full list

2.ant-buildfile cms_maintrunk.xml//build Bag

3.VI test.txt//Browse file contents
I {insert write input}
ESC exits Insert
: wq! Write save and Exit VI mode
: q! Do not save Exit VI mode
4, SECURECRT in garbled solution: Options->sessionoptions->appearance->font to change the default to UTF-8, you can display the Chinese font.
6.hostname: Check hostname

7.ifconfig Query Host IP

8. Use CTRL + C and CTRL + V under S-CRT:
Options---Global options---Edit default settings go inside and point terminal---emulation then point mapped Keys, point lower part, use Windows copy and Paste key, click Confirm.

9. Command to enter VI:
VI FileName: Opens or creates a new file and places the cursor at the beginning of the first
VI +n FileName: Opens the file and places the cursor at the beginning of nth
VI + FileName: Opens the file and places the cursor at the beginning of the last line
VI +/pattern FileName: Opens the file and places the cursor at the first string that matches the pattern

10. Move the Cursor Class command:
}: Move the cursor to the beginning of the paragraph
{: Cursor moves to end of paragraph
NG: Cursor moves to the beginning of nth
n+: The cursor moves down n rows
N: Move the cursor up n rows
n$: Cursor moves to end of Nth line
H: Move the cursor to the top row of the screen
M: Move the cursor to the middle line of the screen
L: The cursor moves to the last line of the screen
0: (note is the number 0) cursor moves to the beginning of the current line
$: Cursor moves to the end of the current line

11. Screen Tumbling Class command:
Ctrl+u: First half screen to file
Ctrl+d: Half-screen to the end of the file
Ctrl+f: Turn a screen at the end of the file//as if R
ctrl+b; Turn one screen to the top of the file

12. Search command:
/pattern: Searches for pattern at the end of the file from the beginning of the cursor
? pattern: Searches for pattern from the beginning of the cursor to the top of the file
N: Repeat the last search command in the same direction
N: Repeats the last search command in the opposite direction

Postgres using:
1. Enter the SQL runtime environment.
[Test@test bin]$./psql-n dbname-u Usrname
stay81=# Select COUNT (*) from table1;
Count
-------
5986
(1 row)

2. Exit, exit after use, or the connection has been suspended.
stay81=# \q

3.postgres data export.
[Postgres@test bin]$./pg_dump-u postgres-t testtable-d TestDB > Testtable.dump
or [Postgres@test bin]$./pg_dump-u postgres-d testdb-t testtable-f c-v > Testtable.dump

4. Postgres data import.
[Postgres@test bin]$./psql-u postgres-d TestDB < Testtable.dump
or [Postgres@test bin]$./pg_restore-u postgres-d TestDB < Testtable.dump

5. On one host, dump the database directory on another host.
Pg_dump-h host1-p 5432 dbname | Psql-h host2-p Post1 dbname
Or./pg_dump-u postgres-d testdb1-t testtable |./psql-u postgres-d TESTDB2
-U is the user name,-D is the DB name, and-T is the table name, which is not required if the entire database is exported.

6.php execution.
[Test@test bin]$/usr/bin/php-q./batchstart.php


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.