Linux Commands Examples

A great documentation place for Linux commands


FTP client


filezilla [-l <logontype>] <FTP URL>
filezilla -h|-s|-v
filezilla -c <site>

add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!



Cannot start FileZilla from linux command line

You need to enable server access control program for X by invoking xhost + in your normal user terminal. It will grant any user to connect to X-server. Once you are done, just make sure to restrict it by xhost - since its enable by default for security reasons.

function filezilla {
apt-get install -y filezilla
. $(dirname $0)/
filezilla sftp://$ssh_username@$server
shutter filezilla vlc mozilla-plugin-vlc network-manager-openvpn ubuntu-restricted-extras
. $(dirname $0)/
filezilla sftp://$ssh_username:$password@$server

Set Filezilla so that it view/edit by default instead of downloading

Open FileZilla, enter Edit → Settings (Alt + E, S) and to go Interface → File lists.

There, in Double-click action you can set the default action for double-clicking files and directories:



FTP client with "master password"

WinSCP has this feature. I just started using it recently and so far I'm impressed. You can use passwords or public keys. It also supports command-line use.


Change FileZilla settings in Ubuntu Linux so view/edit uses gedit

Go to Edit -> Settings....

Scroll down to File editing -> Filetype associations.

In the Custom filetype associations box, add the line html /usr/bin/gedit (and remove any other line starting with html).

(Taken from here - it's Linux Mint but it should be similar enough in Ubuntu.)


FileZilla menu not showing up in Ubuntu Lucid Lynx (10.04)

You seem to be saying that you have no menu bar in FileZilla, but that it still responds to menu accelerators such as Alt-E.

FileZilla keeps a record of all its settings, including the UI layout, in ~/.filezilla. Close FileZilla, rename that directory, and reopen the application to see if it brings the menu bar back. If it does, then you can manually merge files from the previous settings folder into the newly-created one to carry forward your site manager settings and bookmarks. The file names are all fairly self-explanatory and the content is XML so it can easily be viewed and understood.

If this doesn't work, try a forced reinstall of the FileZilla package. This can be done in Synaptic with Package > Mark for Reinstallation.


FileZilla tranfer files between linux and windows machine basic tutorial

I believe FileZilla is a FTP client, so it connects to a ftp server. Meaning if you are transfering from the windows machine then the linux machine needs to be running a ftp server to which you can connect.


filezilla open with a certain local directory in linux

You have 2 options:

  • Either, specify a default folder on Filezilla site manager and open it with filezilla --site=the_site_name_and_path (see below),
  • Or, open it up directly, using something like:

filezilla ftp://user%3Apassword@ftpaddress/path

The tricky bit has to do with the first option (using the site manager). The syntax is not very intuitive. You need to both specify the path to the site name and prefix the whole thing with a 0.

So, a website named "mysite" that you created in the Site Manager under My Sites\Hosting will be called as this:

filezilla --site="0Hosting/mysite"

You start by typing '0', then introduce the path to the site as seen on the site manager and ignoring the "My Sites" folder, and finish with the site name. You enclose everything under double quotes.

As for Local Paths...

Unfortunately this is not possible. Filezilla wasn't meant to be used for automated transfers (see official stance, last December, 2008. 2nd Reply). Thus command line options are limited to what you can see through filezilla -h.

However there's an old feature request on Filezilla Trac's that was deemed an official answer indicating plans to create a command line client sometime after version 3. I do not know if this is being done or not, if it was abandoned or not. I do suggest you try the filezilla official forums. My guess is due to lack of requests, the idea was dropped.


.tar file currupted when copied to Windows using FTP

Force your FTP client to use BINARY file transfer mode - this should be possible to set somewhere in settings.

As background: there are two modes of file transfer - text and binary, if binary is used, data are transferred as is, if you use text, it tries to translate ends of lines to the target platform. In your case the latter happens and damages your archive.


setgid bit always unset when changing file permissions

The application is almost certainly sending the permission change to the server in octal like 0775.

Simply checking/unchecking boxes is not going to do what you want. If you want to set the permissions, provide the options in octal.

To set the permission so of a directory to drwxrwsr-x, you should send 2775 into the numeric value box.

filezilla permissions


sftp to ec2 instance using FileZilla/Putty

First of all, lets quote the wiki:

Importing a site's public key is not supported. It's not possible to pre-cache a public key (which I had obtained as a keyfile from the site's administrator) to verify the server is the one you're trying to connect to. Eventually I had to run ssh-keygen -l -f on a Linux box, then perform a visual comparison.

Once you have understood this, lets assume you have a .ppk file from your Putty installation, which come down to two possible solutions:

Using Pageant

Pageant is a daemon-like agent for storing your private keys saving you the time to put your passwords each time you want to use your stored ssh keys.

  1. You should already have installed Putty, then go to the Putty directory in your Start Menu, and select Pageant.
  2. It should appear a small icon in the notification area (besides the clock), right click it then select Add...
  3. Look for you private key, will ask you for your password, then accept.
  4. Open FileZilla, and it should find Pageant running so it will take your private key and authenticate to your server.

Manual method

In FileZilla:

  1. Go to Edit > Preferences menu.
  2. In the Connection - SFTP tab, look for Add key file... button.
  3. Look for your key and hit Open.

FileZilla will convert this file from Password protected to no password during the importation.

For everything else

FileZilla supports almost any SSH Agent, if the SSH_AUTH_SOCK is set in the environment variables. Please refer to your documentation for your agent in this case.



linux command prompt ftp to ftp server running on windows

The command-line ftp is working properly, and taking you to the root of the folder that FileZilla Server is configured to serve. If you look (more) closely at the FileZilla Client, you can see that it, in fact, does read / when you connect.


FileZilla is a powerful client for plain FTP, FTP over SSL/TLS (FTPS) and the SSH File Transfer Protocol (SFTP).


-c <site>, --site <site>

Connect to the given site from the Site Manager. Site has to be given as complete path, with a slash as separation character. Any slash or backslash that is part of a segment has to be escaped with a backslash. Path has to be prefixed with 0 for user defined entries or 1 for default entries. Site path may not contain double quotation marks.

Example: filezilla -c 0/foo/bar/sl\/ash connects to the user site sl/ash in the site directory foo/bar

May not be used together with -s nor with URL parameter.

-h, --help

Displays a help dialog listing these commandline options.

-l <logontype>, --logontype <logontype>

Set a special logontype, can only be used in combination with a FTP URL as argument.

Logontype has to be either ask or interactive. If -l isn’t given, the normal logontype is used.

-s, --sitemanager

Start with Site Manager opened. May not be used together with -c nor with URL parameter.

-v, --version

Display version number of FileZilla.


Copyright (C) 2004-2010 Tim Kosse

FileZilla is distributed under the terms of the GNU General Public License version 2 or later.


The FZ_DATADIR environment variable can be used to specify the directory containing FileZilla’s data files.


Please visit for further information. Report bugs only if you are using the latest version available from the FileZilla website.

see also


How can this site be more helpful to YOU ?

give  feedback