Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Remedial changedir question (was: noob question,)

    Reply
    thesnake505 | # 1 | 2010-01-20, 08:53 | Report

    hay guys, sorry to have to ask such a daft question, iv been playing about with my n900 for a few days, done the odd thing like put the matrix theme on, and added the reboot button to the power menu, however, iv been trying to go in to my docs via the xterminal,

    iv tried

    sudo gainroot

    cd /MyDocs/

    and

    cd /home/user/MyDocs/

    but it keeps saying cant cd to mydocs

    cheers,

    snake

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by thesnake505; 2010-01-20 at 09:09.

     
    bull81 | # 2 | 2010-01-20, 08:57 | Report

    it workes for me...
    Maybe use TAB to avoid fat fingers

    Edit | Forward | Quote | Quick Reply | Thanks

     
    bockersjv | # 3 | 2010-01-20, 09:01 | Report

    And I know you are a noob, but it would be a great help if you title of the post made reference to your problem. You will also get a quicker better response

    I am no longer a noob but still not messed much with x terminal

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to bockersjv For This Useful Post:
    thesnake505

     
    LuckTR | # 4 | 2010-01-20, 09:03 | Report

    Hey.

    Try cd MyDocs without "/" forward slash. Oddly this works in my case...the rest tree access has to be done using "/" but not the first line entering MyDocs....Maintain uppercase and lowercase as well

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to LuckTR For This Useful Post:
    thesnake505

     
    thesnake505 | # 5 | 2010-01-20, 09:05 | Report

    Originally Posted by bockersjv View Post
    And I know you are a noob, but it would be a great help if you title of the post made reference to your problem. You will also get a quicker better response

    I am no longer a noob but still not messed much with x terminal
    sorry dude, wasnt sure what to put my bad

    Edit | Forward | Quote | Quick Reply | Thanks

     
    thesnake505 | # 6 | 2010-01-20, 09:07 | Report

    Originally Posted by LuckTR View Post
    Hey.

    Try cd MyDocs without "/" forward slash. Oddly this works in my case...the rest tree access has to be done using "/" but not the first line entering MyDocs....Maintain uppercase and lowercase as well
    has done the trick cheers,

    u say changine to any other folder to use "/" thou??

    snake

    Edit | Forward | Quote | Quick Reply | Thanks

     
    LuckTR | # 7 | 2010-01-20, 09:13 | Report

    Yeah, let`s say that you want to ls (dir) your music files in music folder. In order to get there you have to do whether cd MyDocs/music or if already in MyDocs than just cd /music etc... not really very skilled in Xterm but had to learn in order to be able to create my own playlists. Glad it helped.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    LuckTR | # 8 | 2010-01-20, 09:42 | Report

    Click HERE, and check out the section MS DOS vs Linux UNIX if you have some experience with MS DOS. Click HERE for excellent Linux only frequent commands (XTerm related overview. Hope this makes life easier. LtR.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    ossipena | # 9 | 2010-01-20, 09:53 | Report

    Originally Posted by LuckTR View Post
    Yeah, let`s say that you want to ls (dir) your music files in music folder. In order to get there you have to do whether cd MyDocs/music or if already in MyDocs than just cd /music
    that would return error: no folder /music

    are you referring to
    cd ./music?

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by ossipena; 2010-01-20 at 09:53. Reason: missing d

     
    Flandry | # 10 | 2010-01-20, 10:58 | Report

    Also, if you become root by typiing "root" it starts you in /root (understandably) so MyDocs would be at /home/user/MyDocs rather than just ./MyDocs. Sudo gainroot leaves you in your current pwd.

    cd .. goes down one dir, . is present dir, / goes to root of filesystem, so to go from your user dir (/home/user) to opt you would cd /opt but to go to MyDocs, which is in the current directory, you would cd ./MyDocs or just cd MyDocs.

    Note that the built-in folders in MyDocs are preceded with the dot to make them hidden: .images, .sounds, etc. That is also true of the user config files in your home dir. To see them, you pass the "all" flag to list:
    ls -a

    Edit: but what i was going to say is that you don't need to (and in fact probably shouldn't) be root to muck about in you user directory. You should already own all the files there. Only become root when you have to do something that affects the system, like installing an app from the command line.

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by Flandry; 2010-01-20 at 11:03.
    The Following User Says Thank You to Flandry For This Useful Post:
    thesnake505

     
vBulletin® Version 3.8.8
Normal Logout