Ncftp Cheatsheet #
The ncftp
command-line FTP client provides a set of tools for interacting with FTP servers.
Basic Commands #
Command/Option | Example | Description |
---|---|---|
ncftp | ncftp | Start the ncftp interactive shell |
ncftp -u username | ncftp -u user ftp.example.com | Connect to an FTP server with a specified username |
ncftp -u username -p password | ncftp -u user -p pass ftp.example.com | Connect with username and password |
ncftp -v | ncftp -v ftp.example.com | Connect and display verbose output |
ncftpget | ncftpget ftp.example.com file.txt | Download a file from an FTP server |
ncftpput | ncftpput ftp.example.com file.txt | Upload a file to an FTP server |
ncftpls | ncftpls ftp.example.com | List files in the FTP directory |
ncftpbatch | ncftpbatch script.txt | Run a batch of FTP commands from a file |
Advanced Commands #
Command/Option | Example | Description |
---|---|---|
ncftpget -R | ncftpget -R ftp.example.com /local/dir /remote/dir | Recursively download directories |
ncftpput -R | ncftpput -R ftp.example.com /remote/dir /local/dir | Recursively upload directories |
ncftpls -l | ncftpls -l ftp.example.com | List files with detailed information |
ncftp -F | ncftp -F file.txt | Read FTP commands from a file |
ncftp -i | ncftp -i file.txt | Read FTP commands from a file and interactively execute |
This cheatsheet covers essential ncftp
commands and options for FTP file transfers.