ඔන්න ඉතින් class එකේදී උන වැඩක් ගැන කියන්න හදන්නේ, හැමදාම linux වලින් නේ terminal එකේ වැඩ දාන්නේ, අද නම් උනේ windows වල cmd එකෙන් ftp ගිහින් file එකක් ගන්න සහ දාන්න මොකුත් tool පාවිච්චි කරන්නේ නැතුව
ඒ කියන්නේ filezilla වත් winscp නැතුව cmd එකෙන් වැඩේ ගොඩදාගන්න තියෙන්නේ.
මමත් දැනගෙන හිටියේ නැති උනත් අන්තිමට හොයාගත්ත කොහොමද කරන්නේ කියල
To use FTP commands at Windows command prompt
cmd එක open කරලා ඔයාගේ transfer කරන්න අවශ්ය folder එකට යන්න.
cd "C:\Documents and Settings\manusha\My Documents\FTP" (මතක් කරලා "quotes" දාන්න මොකද නැත්තම් spaces තිබ්බොත් අවුල් පාත් එකේ .)
At the C:\>දැන් , type කරන්න FTP. The C:\> prompt changes to ftp>.
At the ftp> prompt, type open followed by the name of the remote FTP site, then press ENTER. For example, type:
open myftpsite.com
When prompted, type the username and password provided to you by the administrator of the FTP site, then press ENTER.
Type cd then the path to the remote server's directory in which you have permission to transfer files via FTP. For example, type:
cd M:\InetPub\EFTRoot\MySite\Usr\jbug
Task
|
DOS Command
|
Notes
|
Change user password
on a site |
Literal SITE PSWD oldpassword
newpassword |
"Literal" sends a command line to the remote
FTP connection and executes the SITE PSWD command. |
Connect to the specified
FTP host on the specified port |
open [host] [port]
|
For example, type:
open myftpsite.com 21
|
Navigate to a different
directory on remote machine |
cd [directory]
|
For example, type:
cd M:\InetPub\EFTRoot\MySite\Usr\jbug
|
Change to parent directory
|
cdup
|
Same as cd ..\
|
Changes directory on local
machine |
lcd [path]
|
For example, type lcd c:\temp.
|
Displays a list of files and folders
in the current remote directory |
dir [path]
ls [directory][localfile]
|
For example, type:
dir M:\InetPub\EFTRoot\MySite\Usr\jbug
or
ls M:\InetPub\EFTRoot\MySite\Usr\
jbug C:\temp\contents.txt |
Creates a directory on the remote
file system |
mkdir [name]
|
For example, to create a folder into which you
will upload your graphics files,
mkdir images
|
Copies a file from the local to the
remote computer |
put [filename.ext]
|
To upload the file with a different name, use
put oldfilename.ext newfilename.ext
|
Copies multiple files from the local
to the remote computer |
mput [files]
|
Puts multiple files; *.* puts all files; *.txt puts
all .txt files, my_*.* puts all files that start with my_ with any extension. |
Copies a file from the remote to
the local computer |
get [filename.ext]
|
For example, type:
get dog.jpg
|
Copies multiple files from the
remote to the local computer |
mget [files]
|
Gets multiple files; *.* gets all files; *.txt gets
all .txt files, my_*.* gets all files that start with my_ with any extension. |
Deletes a file
|
delete [filename.ext]
|
For example, type:
delete dog.jpg
|
Renames a file
|
rename [filename][filename]
|
For example, to rename a picture of your dog,
Pooh Bear, type:
rename dog.jpg PoohBear.jpg
|
Removes a directory on the
remote computer |
rmdir [name]
|
For example, type:
rmdir olddogpics
|
List current working directory
|
pwd
|
Use when you forget which directory you are
in or if you want to copy the path |
Close connection
|
bye (or quit)
|
Disconnect from remove FTP server
|
List of available commands or
help for a specific command |
help
help [command]
? [command]
|
help by itself lists available FTP commands;
help [command] or ? [command] provides help for the specific command |
Change transfer mode to ASCII
|
ascii
|
Used for HTML and text files
|
Change transfer mode to binary
|
binary
|
Used for
clips, etc. |
Displays current transfer mode
(ASCII or binary) |
status
|
Query the status of files, transfers in
process, and other system information. The STAT command implemented on some FTP servers could allow a remote attacker to obtain sensitive information; therefore, it is disabled on some servers. |
Enable/disable prompts
|
prompt
|
Use this command if you do not
want to be prompted for each file transfer when transferring multiple files. |
I am never read like your article. It is full pack of information for us. I get more knowledge to this post. In other sight, you can take advantage from Landscaping Services in Sacramento CA. We are always ready for your help.
ReplyDelete