LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-12-2012, 07:39 AM   #1
PinoyAko
LQ Newbie
 
Registered: May 2011
Posts: 28

Rep: Reputation: 0
Cant delete file in FTP server


I saw a file in my ftp client with file named "Dec 18 00:39"

Tried to delete the file but I cannot delete it

Code:
Command:	rm "/var/www/html/Dec 18 00:39  "
Error:	rm /var/www/html/Dec 18 00:39  : no such file or directory
I already logged in to the server but the file is not listed if I tried to list the files in /var/www/html

Can anyone tell me how I can delete or list the file?

Thanks
 
Old 01-12-2012, 07:45 AM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
When you descend into the directory, perform the following:
Code:
ls -al
As far as removing the file, you need to escape the spaces in the file name; Have a look here:
Code:
rm /path/to/directory/file\ with\ spaces
Cheers,

Josh
 
Old 01-12-2012, 08:13 AM   #3
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by PinoyAko View Post
I saw a file in my ftp client with file named "Dec 18 00:39"

Tried to delete the file but I cannot delete it

Code:
Command:	rm "/var/www/html/Dec 18 00:39  "
Error:	rm /var/www/html/Dec 18 00:39  : no such file or directory
I already logged in to the server but the file is not listed if I tried to list the files in /var/www/html

Can anyone tell me how I can delete or list the file?

Thanks
Are you sure that you have given the location of your files in /var/www/html as this location is generally used for http server

I would advice you to check for the location of file

If you have not specified any particular location for ftp directories then it might be inside /var/ftp/pub
or if you are logging in by some user instead of anonymous then the default location will point to the home directory of that user

So kindly once again confirm the location and if you fail to do that post your

Code:
vsftpd.conf
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
user can upload and download file but not delete file in ftp on thel 6 kukusuku Linux - Server 1 08-21-2011 02:50 AM
Upload file to ftp server -vsftp- but can not delete or change the file once uploaded murattas6 Linux - Server 2 06-26-2009 06:00 AM
limiting the delete command on an ftp server buffed317 Linux - Networking 0 03-26-2005 07:57 PM
Retrieve and delete from FTP server? obelxi Linux - Networking 5 03-07-2005 02:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration