[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Yafc presents the user with an internal shell. Command redirection is
available, using the conventional shell syntax (eg cat foo.txt > foo
will copy the remote file foo.txt to the local file foo.) Input redirection,
however, is not supported. Also asynchronous mode is not supported. The
following will thus be rejected: ls |emacs &
or open < login.foo
.
3.1 Yafc commands all yafc internal commands 3.2 Nohup transfers
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
All commands follow the usual GNU command line syntax, with long options starting with two dashes (`--').
Most commands have an option `--help' that shows a short syntax description.
3.1.1 !
execute shell command 3.1.2 afslog
obtain remote AFS tokens 3.1.3 alias
create an alias 3.1.4 bookmark
create a bookmark 3.1.5 cache
control directory cache 3.1.6 cat
view a text file 3.1.7 cd
change working directory 3.1.8 cdup
change to parent directory 3.1.9 chmod
change access mode (permissions) of files 3.1.10 close
close connection 3.1.11 copyright
show copyright notice 3.1.12 filetime
print file modification time 3.1.13 flush
flush replies 3.1.14 fxp
transfer files between hosts 3.1.15 get
get files 3.1.16 help
don't panic 3.1.17 idle
modify idle time 3.1.18 kauth
authenticate to Kerberos 3.1.19 kdestroy
destroy Kerberos tickets 3.1.20 klist
list Kerberos tickets 3.1.21 krbtkfile
specify Kerberos ticket file 3.1.22 lcd
change local working directory 3.1.23 list
show raw directory listing 3.1.24 lpwd
print local working directory 3.1.25 ls
show directory listing 3.1.26 ltag
tag local files 3.1.27 luntag
remove files from local taglist 3.1.28 mkdir
create directory 3.1.29 mv
move files 3.1.30 nlist
show filename list 3.1.31 nop
do nothing 3.1.32 open
open a connection 3.1.33 prot
change Kerberos data protection level 3.1.34 put
put files 3.1.35 pwd
print working directory 3.1.36 quit
quit Yafc 3.1.37 quote
send arbitrary FTP command 3.1.38 reopen
reopen active connection 3.1.39 rhelp
remote help 3.1.40 rm
remove files 3.1.41 rmdir
remove empty directory 3.1.42 rstatus
show status 3.1.43 set
show and set variables 3.1.44 shell
execute local shell 3.1.45 site
issue a site specific FTP command 3.1.46 source
read a configuration file 3.1.47 status
show local status 3.1.48 switch
switch between open connections 3.1.49 system
show type of system 3.1.50 tag
tag files 3.1.51 unalias
remove an alias 3.1.52 untag
remove files from taglist 3.1.53 url
print the current FTP url 3.1.54 user
send new user information 3.1.55 version
show Yafc version 3.1.56 warranty
show lack of warranty
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
!
shell
) command.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
afslog
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
alias
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
bookmark
Usage:
bookmark [options] [bookmark name ...] |
Options:
bookmark
. The bookmarks file
will be rewritten.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
cache
Control the directory cache.
Usage:
cache [options] [directory ...] |
Options:
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
cat
Usage:
cat [options] file ... |
Options:
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
cd
Usage:
cd [directory] |
If no argument is given, cd
changes to the home directory. The home
directory is the current directory when logged in.
If the argument is '-', cd
changes to the previous working directory.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
cdup
cd ..
.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
chmod
Usage:
chmod mode file ... |
Mode must be given in octal representation (for example: 0644 is -rw-r--r---).
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
close
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
copyright
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
filetime
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
flush
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
fxp
This will not always work with all ftp servers, either because passive mode is not supported on the source host, or because the target refuses the given port. The target ftp server might refuse the port as a security policy. You might get the error 'Illegal PORT Command' or 'Possible port theft'.
If the destination file already exists, and none of the options `--append', `--force', `--newer', `--resume', `--skip-existing' or `--unique' is given, you will be prompted what to do.
Usage:
fxp [options] file ... |
Options:
Examples:
fxp --target=2 foo.tar.gz -o bar.tar.gz |
fxp --target=funet *.tar.gz -o foo |
fxp -T ftp.stacken.kth.se foo -r -o bar |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
get
Transfer files from remote server to local computer.
If the destination file already exists, and none of the options `--append', `--force', `--newer', `--resume', `--skip-existing' or `--unique' is given, you will be prompted what to do.
Usage:
get [options] file ... |
Options:
Examples:
get foo.tar.gz -o bar.tar.gz |
get *.tar.gz -o foo |
get foo -r -o bar |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
help
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
idle
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
kauth
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
kdestroy
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
klist
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
krbtkfile
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
lcd
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
list
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
lpwd
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
ls
Usage:
ls [options] [files ...] |
Options:
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
ltag
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
luntag
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
mkdir
Usage:
mkdir directory |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
mv
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
nlist
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
nop
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
open
Opens a new connection to an FTP server.
Usage: open [options] [proto://][user[:password]@]hostname[:port][/directory] ...
proto can be either 'ftp' or 'ssh'
Options:
Specify `--sftp=""' to disable the sftp-server path, and use sftp subsystem instead.
If you don't know the remote path to the sftp-server program, the default for OpenSSH is `/usr/libexec/sftp-server'. Another common path is `/usr/bin/sftp-server'.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
prot
Changes the data protection level for data transfers. The protection level defines how data transfers are handled by the security mechanism.
Usage:
prot [options] [command | data] protlevel |
Options:
Valid protection levels are:
clear
safe
private
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
put
If the destination file already exists, and none of the options `--append', `--force', `--newer', `--resume', `--skip-existing' or `--unique' is given, you will be prompted what to do.
Usage:
put [options] file ... |
Options:
Examples:
put foo.tar.gz -o bar.tar.gz |
put *.tar.gz -o foo |
put foo -r -o bar |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
pwd
Prints the current remote working directory.
Usage: pwd
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
quit
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
quote
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
reopen
Reopen a timed out connection.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
rhelp
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
rm
Remove files on remote server.
Usage: rm [options] file...
Options:
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
rmdir
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
rstatus
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
set
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
shell
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
site
Usage:
site command |
Try site help
or rhelp site
for more information
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
source
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
status
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
switch
Usage:
switch [options] [connection] |
Options:
The connection argument specifies which connection to switch to. It can be specified either as the connection number or with the name (hostname or alias).
If no argument is given, switch to the next open connection.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
system
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
tag
Usage:
tag [options] file ... |
Options:
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
unalias
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
untag
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
url
Usage:
url [options] |
Options:
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
user
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
version
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
warranty
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
get and put has an option `--nohup'. When given, Yafc will fork itself
to the background and continue to transfer the specified files,
allowing you to use your shell or even logout. Output
is redirected to the file `~/.yafc/nohup/nohup.pid', or to file specified
by option `--logfile=FILE'.
If you have tagged any files (with the tag
command, see 3.1.50 tag
), add
the option `--tagged' to the get command to transfer those files too.
There is an equivalent command for local files and put, namely ltag
.
Yafc will also enter nohup mode upon receipt of SIGHUP
.
Set nohup_mailaddress in the yafcrc file to a valid mail address if you want to receive a mail notifying you when the transfer is complete.
[ << ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |