Ali cloud ECS- use putty uploading and downloading tools product psftp

I windows10, installed winscp3, which could be simple to use, but the sky not cooperate, life and death will not let me connect, but unfortunately, only for the command line,

Fortunately, putty provides a small tool, psftp, however, need to go to the official website to download the full version only, oh, at the following address:

http://www.chiark.greenend.org.uk/~sgtatham/putty/download.htm

After downloaded, open psftp.exe, open the console, type: open IP address

Thus, to enter the remote server, some common commands given below.

 

Double quotes 1.1 file name spaces

, such as "Space name.txt"

1.2 using wildcards

    * * any string in place
    *? Alternatively letter
    * [abc] Alternatively a letter in the range abc
    * [AZ] In a to z alternatives falling within the scope of a letter
    * [^ abc] Alternatively a letter, not including ab & cmatches a SINGLE character that IS not a, B, or C.
    * [-a] Representative hyphen (-)
    * [a ^] Representative caret (^)
    * \ wildcard before on all the above, in order to cancel it (wildcards) meaning
    (folder name wildcards are not supported)

1.3 Open, quit, use Close, Help command

from the name you can know their role in the. Wherein quit is off PSFTP (bey and exit the same quit), close the connection is cut off, but not PSFTP.
1.4 cd, pwd, lcd, lpwd commands

you already know the cd and pwd are doing, and they work on a remote server billion TU technology. lpwd lcd and is added prior to cd and pwd Local, it is to change the path and the display path of the local machine. Pwd to achieve lcd, lpwd can also use! Cd,!.
1.5 get, put command (get and put), on behalf of downloading and uploading.

    something.txt et
    GET something.txt another.txt

The first row represents the above code download something.txt, the second row represents download something.txt, and rename another.txt. Upload so
PUT something.txt
PUT something.txt another.txt

If you downloaded the upload folder, with recursive symbol -r

    GET -r mydir newname
    PUT -r mydir newname

1.6 mget, mput, ReGet, reput command

can be understood as multiple get, multiple put, to download or upload multiple files and folders. In addition to not rename a file or folder, and other parameters get, put the same.
re resume is short for, then they resume commands.
1.7 dir, del, mkdir rmdir command

dir is ls; del is rm, but you can not delete folders; mkdir is meant to establish a folder; rmdir delete folders (some billion TU technology server does not allow to delete non-empty folders , you need to delete files in the job).
1.8 chmod command

its arguments u, g, o, a, +, -, r, w, x meanings are:

    * U (User The owning) document owner
    * g (members of the owning group ) group membership
    * o ( everybody else - 'others') all others
    * a ( 'all', everyone ) all
    * + Plus (grant)
    * - minus (deprivation)
    * r (at The permission to the Read File) reading
    * w (permission to write to the file) write
    * x (permission to execute the file ) run
    chmod go-rwx, u + w privatefile

the meaning of the code above is deprived of the group members and any other person permission to read and write operations, write permissions granted to the file owner also (that is, private documents)
chmod a + r * public
meaning of the code above to grant read access for all (i.e. Publication Publication Kokai)
directly authority digital code can also
chmod 640 groupfile1 groupfile2

【转自】https://blog.csdn.net/chen_gp_x/article/details/79299863

 

Guess you like

Origin www.cnblogs.com/jimmyshan-study/p/11515954.html