Results 1 to 5 of 5
Discuss how to delet the file or folder in SSH mode? at the General - Hackint0sh.org; i am connected to iphone through winscp. inadvertantly created some folder, how do i delet ...
  1. #1
    Professional Array

    Join Date
    Jul 2007
    Posts
    72
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    10

    Default how to delet the file or folder in SSH mode?

    i am connected to iphone through winscp.
    inadvertantly created some folder, how do i delet it?
    tried but alway get an error!
    'Command 'rm -f -r "car"'
    failed with return code 127 and error message
    -sh: line 44: rm: command not found
    this is what i get!
    how to deal with it?
    thanks!



  2. #2
    Professional Array

    Join Date
    Aug 2007
    Posts
    70
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    10

    Default

    Same here!

    I add 2 modded .bat files to the Phone and now i cant delate tham with the same error

  3. #3
    Professional Array

    Join Date
    Jul 2007
    Posts
    91
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    11

    Default

    That's probably because you don't have rm installed on the iPhone. Have you installed the iPhone binaries kit?
    The easiest way is to use Installer.app and install the BSD Subsystem package

  4. #4
    Senior Professional Array

    Join Date
    Jul 2007
    Location
    ATLANTA, GA
    Posts
    103
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    12

    Default

    The answer to your problem is that you all dont have the bin-kit installed. Installing SSH is only one part, you need to copy over the entire bin-kit in its respective directories to gain access to commands like delete, chmod, etc. Without it you will get a command not found because those commands truly are not on the iphone bin.

    Dixit

  5. #5
    Senior Professional Array

    Join Date
    Jul 2007
    Posts
    187
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    16

    Default

    You may have the binkit installed, but your PATH environment variable is almost certainly not setup correctly.

    just type this on the command line:

    export PATH=/bin:/usr/bin:/usr/sbin:/sbin:.

    Then, if you type 'rm file', it will either tell you that it can't find it (in which case, you dont have the binkit installed), or it will remove the file. If you dont setup the PATH env variable, try typing '/bin/rm file'. If that fails to run, then you certainly dont have it installed.


    Also, DO NOT use '-f -r' when using 'rm' if possible, it is a recursive delete which won't stop if it gets an error. If you typed 'rm -fr /' as root, wave goodbye to your stuff.

    To remove a directory, you should really type 'rmdir directory' unless it has things in, in which case just 'rm directory/* ; rmdir directory'.


    Good Luck!


 

 

Similar Threads

  1. Replies: 3
    Last Post: 12-16-2009, 01:23 PM
  2. Replies: 3
    Last Post: 10-13-2007, 07:50 PM
  3. IPSW File is a Folder for Downgrade
    By woody_net in forum iPhone "2G" (Rev. 1)
    Replies: 4
    Last Post: 10-08-2007, 03:07 PM
  4. Replies: 4
    Last Post: 09-22-2007, 01:41 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 03:33 AM.
twitter, follow us!