Solved

FTP

Posted on 1998-11-30
2
229 Views
Last Modified: 2010-04-20
When I FTP to a Linux server, where in the directory structure am I by default. (I'm trying to figure out where to put directories.)
0
Comment
Question by:Theophilus
2 Comments
 
LVL 4

Accepted Solution

by:
davidmwilliams earned 20 total points
ID: 1638652
 It depends on whether you ftp as a defined user, or using anonymous ftp.
  If you ftp in as a user, then you are in that user's specified home directory.  Use the finger command to get more information
(for example, if the computer is host.com and the user is fred, type finger fred@host.com and you should see their home directory listed).  Alternatively, type 'pwd' after ftp'ing in.
  If you login as an anonymous user, you will be in a directory specified in the ftp server config file.  Some machines may define an 'ftp' user, so try doing a finger on this user.
  If you have interactive access (i.e. login) to the computer, try looking for an 'ftp' directory somewhere (maybe /usr/local/ftp, etc.).  You could probably find it with this command

  cd / ; find . -name ftp -print
0
 
LVL 1

Author Comment

by:Theophilus
ID: 1638653
Thank you. I found it.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question