1) Login into ftp.cdrom.com and change to /pub/doom2/levels. Note that now you see the "doom2" directory on the screen.
2) Place the cursor over "doom2" directory and press Ins. NFTP will ask whether you really want to walk the subtree /pub/doom2/levels/doom2 (this question will not be asked if you're already been in all subdirs of /pub/doom2/levels/doom2). Answer Yes (remember that walking e.g. "/pub" on ftp.cdrom.com could take hours or even days if your connection is slow). NFTP will then automatically change into all subdirectories of /pub/doom2/levels/doom2, caching them in the memory. You can interrupt the process with Esc. When finished, the directory under cursor (doom2) will be highlighted.
3) Now if you like, you can change into the subdirectories of /pub/doom2/levels/doom2 manually and remove marks from unwanted parts of the subtree, e.g. /pub/doom2/levels/doom2/deathmatch. Remember to return back to /pub/doom2/levels/doom2 when you have finished. Use Shift-I to verify how many files/bytes you have marked.
4) Start download with Ctrl-D. NFTP will ask whether you want to keep original directory structure intact. In general, you should respond Yes; the danger of piling up files is that some of them might have the same name. You can stop transfer with Q, skip files with S. With massive transfers (when transferring more than one file), NFTP enters SmartAppend mode: no questions about reget/rename/overwrite will be asked, the decision is based on sizes and time stamps of local and remote files. When transfer completes, you'll have the mirror of the remote subtree on the local disk (symbolic links are ignored).
nftp -G URL
NFTP will disconnect and exit after transfer. If you want to stay connected, use -g instead of -G. To upload single file, use
nftp -P URL
NFTP will disconnect and exit after transfer. If you want to stay connected, use -p instead of -P.
To transfer a batch of files (possibly from different sites), create file (say, cmdfile.txt) and put URLs on separate lines. Prepend URL with + to download file, - to upload. Transfers always use current local directory, and you cannot use wildcard symbols (*, ?) in URLs. Then run
nftp -@ cmdfile.txt
Here URL must be in the form:
[ftp://] [userid [:password] @] hostname [:port] pathname/filename
No spaces are allowed inside; square brackets mark optional parts.
set TERM=vt100 ssh -l username -c idea hostname(requires sshd on target machine). NFTP version 1.22+ has a workaround for Ctrl-Z problem.