On small and medium scale server environment, most linux servers are not equipped with X (GNOME/KDE) graphical platform that makes the task of uploading and downloading FTP files to and from your current location a much more easier task. Consider a robust FTP client software equipped with user-friendly and graphical menu interface to upload/download FTP files could offer a much more convenient and easier process to accomplish FTP file operations compared to command-line driven FTP commands.
What do you do if your linux system does not support graphical X11 programs? What steps you can follow from your linux desktop without X to process FTP task into your FTP server? Here's a quick entry on how to accomplish that.
Download and Upload FTP Files from Command Line Terminal
Minimum Requirements
1. Existing FTP server
2. Existing FTP user account details
Step One
Connect and log on to your FTP server from terminal. Supply the required FTP username and password.
# ftp domain.com
Launching the above command would give you similar lines as shown below
Connected to domain.com (83.83.83.83).
220---------- Welcome to Pure-FTPd [TLS] ----------
220-You are user number 2 of 50 allowed.
220-Local time is now 03:32. Server port: 21.
220-This is a private system - No anonymous login
220 You will be disconnected after 15 minutes of inactivity.
Name (domain.com:root): ftpuser
Password: *******
230-User ftpuser has group access to: ftpuser
230 OK. Current restricted directory is /
Remote system type is UNIX.
Using binary mode to transfer files.
Now, the last line showed that the curent binary mode of file transfer is binary. You can optionally modify this value.
To change FTP file transfer mode to ASCII
To transfer all ASCII file types, simply
ftp> ascii
To change FTP file transfer mode to binary
ftp> bin
Step Two
Identify your current local and remote directory location.
To change your current local directory
ftp> lcd /home/user1
Local directory now /home/user1
To change your current FTP directory folder
ftp> cd www
250 OK. Current directory is /www
To list down all remote FTP files from current directory location
ftp> ls
# ls *.html
# ls *.php
Alternatively, you can use dir
ftp> dir
ftp> dir *.php
When transferring files, by default configuration, the current file transfer status is now shown. You could setup your current connection to shown you current command status and even send you a beep when the last issue FTP command has been completed.
To show FTP file transfer status for file transfer
ftp> hash
To toggle hash status, simply re issue hash command again.
To send alert on FTP command completion
ftp> bell
Step Three
Now that your current local and remote location have been identified, you can now begin your FTP file transfer
To upload a file from local to remote FTP server
ftp> put filename.txt
ftp> put filename.php
To upload multiple files to remote FTP server
ftp> mput *.php
To confirm file changes from remote, simply re issue a directory listing command
ftp> ls
To download FTP files into your local folder
ftp> get filename.txt
To download multiple FTP files from terminal
ftp> mget *.php
To disconnect from FTP connection
ftp> bye
ftp> quit
221-Goodbye. You uploaded 0 and downloaded 1 kbytes.
221 Logout.
The total number of uploaded and download FTP files will be shown to you when disconnecting from FTP server as shown above.
For more ftp commands, issue
ftp> help
All is done.
Subscription
Categories
- HowTos (612)
- Linux Devices (40)
- Linux Diggs (620)
- Linux News (1541)
- Linux Videos (24)
Recent Posts
Blog Archive
-
▼
2008
(2301)
-
▼
July
(297)
- How To Kill Application Process ID (PID) The Faste...
- How To Install Fedora 9 From The Internet
- How To Install PHP5 and Apache HTTP Server
- How To Display The Number of Processors in Linux
- How To Prevent Alt+F1 and Alt+F2 TTY Console Login...
- How To Install Text-based File Manager
- How To Delete Linux Files Older Than 360 days
- How To Install VirtualBox on Fedora 9
- HowTo: Delete All Thumbs.db Recursively
- HowTo: Delete All Thumbs.db Recursively
- 10 Cool Open Source Easter Eggs
- KDE 4.1 rocks the desktop
- 10 Cool Open Source Easter Eggs
- KDE 4.1 rocks the desktop
- Roku's Netflix Player: a hands-on review
- PostPath cracked Exchange protocols for Postfix-ba...
- Yahoo, HP, Intel Give Ivory Towers a Stairway to t...
- Portugal Rings Up Big Order for Intel's Classmate PCs
- SSD vs. SATA RAID: A Performance Benchmark
- Roku's Netflix Player: a hands-on review
- PostPath cracked Exchange protocols for Postfix-ba...
- Yahoo, HP, Intel Give Ivory Towers a Stairway to t...
- Portugal Rings Up Big Order for Intel's Classmate PCs
- Floating Point Math in Bash
- SSD vs. SATA RAID: A Performance Benchmark
- How To Mount Remote Folder Location Via SSHFS
- How To Protect SSH From Multiple and Parallel Coor...
- How To Enable IP Forwarding in Linux
- spell check text file from terminal
- spell check text file from terminal
- How To Allow and Deny SSH Access To Specific Users
- Customer demand adds Linux to industrial computer ...
- Is OpenSolaris in hot water?
- Anatomy of the Linux file system
- Linux development on the PS 3 More than a toy - pa...
- Quotes from Bill Gates, Steve Jobs and Linus Torvalds
- Under Pressure, ISP Admits Secret Web Snooping in ...
- Open Web Foundation to Play Freedom Cop for Net Specs
- Customer demand adds Linux to industrial computer ...
- Is OpenSolaris in hot water?
- Anatomy of the Linux file system
- Linux development on the PS 3 More than a toy - pa...
- Quotes from Bill Gates, Steve Jobs and Linus Torvalds
- Installing Applications on Linux
- Under Pressure, ISP Admits Secret Web Snooping in ...
- Open Web Foundation to Play Freedom Cop for Net Specs
- Microsoft Becomes Just a Little More Like Apple
- Tux3, a Versioning Filesystem
- Anatomy of Linux loadable kernel modules
- Shuttleworth: Microsoft Does Not Want War
- The Open Call
- Google Gadgets for Linux -- Almost There
- Cloud Computing: When Computers Really Do Rule
- Consoles Sell Like Hotcakes, Yahoo Cuts a Deal, Sy...
- Microsoft Becomes Just a Little More Like Apple
- Tux3, a Versioning Filesystem
- Anatomy of Linux loadable kernel modules
- Shuttleworth: Microsoft Does Not Want War
- The Open Call
- Google Gadgets for Linux -- Almost There
- Cloud Computing: When Computers Really Do Rule
- Consoles Sell Like Hotcakes, Yahoo Cuts a Deal, Sy...
- How To Install Adobe Flash Player 10 in Fedora
- How To Add and Install Alternative Liberation Fonts
- Digg it: Top 1 Supercomputer is powered by Fedora
- How To Send System Message To FTP Clients via TCP ...
- Intel Switches From Ubuntu To Fedora For Mobile Linux
- Intel Switches From Ubuntu To Fedora For Mobile Linux
- How To Create Separate SSH Log File for Specific S...
- How To Allow and Deny SSH Access To Selected Hosts...
- Fedora 10 - Friends, Freedom, Features, and First
- Fedora 10 - Friends, Freedom, Features, and First
- The Mess That is Linux Volume Management
- Are We About to Witness a Real OS X virus?
- Security is No Secret
- Enterprise Storage Solution Using Nand Flash and ZFS
- Shuttleworth Sets Bar For Linux 'Beyond Apple'
- Why We Still Need the iPhone App Black Market
- DragonFly BSD 2.0 Released
- Interview with Mandriva's KDE Developer Helio Castro
- Mandriva and PTech Announce Low-cost Desktop
- The Coco Bidet and Toilet Technology
- The Mess That is Linux Volume Management
- Are We About to Witness a Real OS X virus?
- Security is No Secret
- Enterprise Storage Solution Using Nand Flash and ZFS
- Shuttleworth Sets Bar For Linux 'Beyond Apple'
- Why We Still Need the iPhone App Black Market
- DragonFly BSD 2.0 Released
- Interview with Mandriva's KDE Developer Helio Castro
- Mandriva and PTech Announce Low-cost Desktop
- The Coco Bidet and Toilet Technology
- Automatix Comes to Fedora 9 - FedoMATIX
- Automatix Comes to Fedora 9 - FedoMATIX
- #1 Supercomputer in the World Runs Fedora
- #1 Supercomputer in the World Runs Fedora
- How To Install An Extremely Fast, Lightweight, But...
- How To Bypass DNS Log Monitoring By Your ISP
- Veteran developer ditches Microsoft for open source
- Why not learn a little language while you work, Am...
-
▼
July
(297)
Tuesday, July 22, 2008
How To Do FTP File Operations without Graphical FTP Client
Subscribe to:
Post Comments (Atom)
ILoveTux - howtos and news | About | Contact | TOS | Policy
0 comments:
Post a Comment