Results 1 to 6 of 6
  1. illfill's Avatar
    Posts
    33 Posts
    Global Posts
    43 Global Posts
       #1  
    ok so you know when you have your pre rooted and you want to makes changes to something but the instructions say like go down to line 429 how in the hell do you know which one is line 429 when there are like a million lines and how would you edit that text can you just backspace it or do you have to perform a code like "cd" or "mv" or "vi" or something like that ????????
  2. #2  
    if you go to the dir "cd" into it where the file is you simply "vi filename" then it opens it up and you can edit it by pressing "i" then edit and when u want to save press "esc" then press "shift+:" then press "wq" and hit enter, if your in the same directory as the file "vi" displays the line number at the left hand bottom corner, if you simply edit it from root ex "vi /var/usr/palm/applications/folder/filname" then it displays the path in the bottom left hand corner


    if someone posted something that helped you out dont forget to push the thanks button and let 'em they helped

    always make backups of the files you mod, that or get accquainted with WebOs DR
  3. #3  
    To go to the line number simply type

    :line number
    For example:

    :429

    I think to find a word you can simply type

    /term
    (where term is the word or phrase possibly)

    Donate Via Paypal to Email Adress: silent2205@gmail.com
    Email: fritos1406@aim.com
    Twitter: @fritos1406
  4. dizzwave's Avatar
    Posts
    98 Posts
    Global Posts
    109 Global Posts
    #4  
    don't forget to make the filesystem readwrite first, too:
    mount -o remount,rw /
    (you need to be root to do that, or else put "sudo" before "mount")

    vi is tough to get used to at first, but here's a good cheat sheet I've been using:
    Vi Cheat Sheet
  5. dizzwave's Avatar
    Posts
    98 Posts
    Global Posts
    109 Global Posts
    #5  
    also don't forget to remount the system as readonly when you're done editing the file:
    mount -o remount,ro /
  6. #6  
    also, if your editing with I, then if you want to be able to jump to another line, you must press esc then : (line number)

Posting Permissions