به نظر میرسه که شما ابتدا به یک FTP server متصل شدید . برای دانلود کردن تمامی محتوای یک پوشه ، وارد آن پوشه شده (یا برای دستور مسیر کامل و صحیح وارد کنید ) ، سپس دستور * mget را وارد کنید .1 = ما داخل فولدر backup 1 یه سری فایل داریم اگه بخواهیم همه فایل هارو wget کنیم باید چکار کنیم ؟
* ضمن اینکه با دستور lcd /path مسیر مورد نظر خود برای دانلود شدن فایل ها در سرور خود را مشخص کردید .
2 = اگه بخواهیم تمام فایل های داخل فولدر backup رو حذف کنیم باید چکار کنیم ؟
3 = اگه بخواهیم فولدر backup که شامل فایل هست رو حذف کنیم چکار باید بکنیم ؟کد:rm -rf ../path/backup/*
کد:rm -rf ../path/backup/بله!4 = اگه ما از طریق ssh به FTP سرور دیگه وصل شده باشیم Command دستورات بالا تغییر می کنه ؟
Basic ftp commands :
کد HTML:* open - opens a connection to the specified machine. * cd - change directory on the remote machine. * lcd - change directory on the local machine. * pwd - print working directory on the remote machine. * ls - short directory listing on the remote machine. * lls - short directory listing on the remote machine. * dir - long directory listing on the local machine. * ascii - set ascii transfer type (for text files). * binary (or image) - set binary transfer type (for binary data, executable files, gzipped files etc.). * get - copy file from the remote machine to the local machine, or append "-" after the filename to display the contents of a remote file on your screen (e.g. the command get 00README - will display the 00README file of the current directory to your local screen). * put - copy file from the local machine to the remote machine. * mget - as for get, but copies multiple files. * mput - as for put, but copies multiple files. * rmdir - Delete a directory on the remote machine. * delete - Delete file on remote host. * close - disconnects from the remote machine. * quit - terminate FTP session and exit
چه پیام خطایی به شما داده میشه ؟ (چنانچه به FTP متصل هستید ، دستورات متناسب با آن را وارد کنید )چون من
rm -rf FOLDERNAME
رو وقتی می زنم انجام نمیده !





پاسخ با نقل قول