Remote operation of the Linux weapon: Putty and Psftp

Source: Internet
Author: User

Good tool for remote operation of Linux via SSH: Putty (remote Operation Linux) psftp (remote upload and download)

Small footprint, easy to operate, no installation configuration can be used, the official website (http://www.chiark.greenend.org.uk/~sgtatham/putty/) can provide the corresponding software download, free of charge OH

to the Unix-center.net/unix Experience Center after registering the account can be used putty login to learn Unix;

PSFTP Tool related commands used ( reproduced in http://live.haliluya.org/weblog/2007/07/25/psftp/ )

The official website also provides instructions for use (http://the.earth.li/~sgtatham/putty/0.60/htmldoc/chapter6.html )

1. Start psftp  
Enter
set Path=c:\psftp.exe,%PATH%  
, use psftp to log in to the server
psftp [email protected]  
You can also directly double-click to run Psftp.exe, and the following message appears in the command prompt
Psftp>  
Log in to the server with the Open command

2. Psftp
2.1 Use double quotation marks when there are spaces in the file name
such as "Space Name.txt"

2.2 Using wildcard characters

    • * instead of any string

    • ? Replaces a letter

    • [ABC] replaces one letter in the range of a B C

    • [A-Z] Replaces one letter in the A-to-Z range

    • [^abc "instead of a letter, excluding a B cmatches a single Character A, B, or C.

    • [-a "represents the connection number (-)

    • [a^ "represents the caret (^)

    • \ before all wildcards above to cancel their (wildcard) meaning

(wildcard characters are not supported for folder names)

2.3 Open, quit, close, help command
They can be known for their role from the name. Where quit is to close Psftp (Bey and exit are the same as quit), Close is to disconnect the connection without closing the psftp.

2.4 CD, PWD, lcd, lpwd command
You already know what CDs and PWD do, and they work on a remote server. The LCD and lpwd are added in front of the CD and PWD, which is the local machine's change path and display path. can also use!CD,!pwd to realize LCD, lpwd.

2.5 get, put command  
Take and put, pictographic command:), which represents download and upload.
get Something.txt
Get something.txt another.txt
 
The first line of the code above represents the download of Something.txt, the second line represents the download Something.txt, and renames to Another.txt. Upload and so on
put Something.txt
put something.txt another.txt
 
If it is a download upload folder, plus that recursive symbol-R

2.6 mget, mput, reget,reput command
Can be understood as multiple get, multiple put, used to download or upload multiple files and folders at once. In addition to not renaming files or folders, the other parameters are the same as get, put.
Re is shorthand for resume, then they are the continuation of the command.

2.7 dir, del, mkdir rmdir command
Dir is Ls;del is RM, but can not delete folder, mkdir or original meaning (create folder), RmDir is to delete the folder (some servers do not allow the deletion of non-empty folders, you have to delete the files in the row).

2.8 chmod command  
its parameters u, G, O, A, +,-, R, W, x meaning are:

    • u (the owning user) document owner

    • g (members of the owning group) member

    • o (Everybody else-' others ') its It everyone

    • a (' all ', everyone) everyone

    • + Plus (Grant)

    • -minus (stripped)

    • r (permission to read the file) reads

    • w (permission to write to the FIL e) write

    • x (permission to execute the file) run

chmod go-rwx,u+w privatefile  
The meaning of the above code is to deprive group members and anyone else of read and write permission, grant the file owner Write permissions (that is, private documents)
chmod 640 Groupfile1 Groupfile2

2.9 mv Command
If you use MV to change a file or folder name, you can also use the Ren, rename command

2.10. Command
Add an exclamation mark before the command above!, then operate on the local machine.


This article is from the "Half City" blog, please be sure to keep this source http://vabc1314.blog.51cto.com/2164199/1536049

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.