Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
Agreed this should be simple - I have the directory 'Dowloads' on the desktop, but cd Downloads or cd / Downloads returns null. is there a directory called Desktop that ...
  1. #1
    Just Joined!
    Join Date
    Nov 2008
    Posts
    13

    CD command returns 'no such file or directory'

    Agreed this should be simple - I have the directory 'Dowloads' on the desktop, but cd Downloads or cd / Downloads returns null. is there a directory called Desktop that I have to put in first?? I'm assuming that for any subdirectory the full path has to be entered??

    Also, do you need to call any command inside that directory, if so how??

    Thanx Richard

  2. #2
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,085
    The Downloads directory usually resides in /home/user_name/Downloads:

    Code:
    cd /home/user_name/Downloads


    Edit: oops, my error... I was thinking of the Desktop folder when you said Downloads. In this case, try this:

    Code:
    cd /home/user_name/Desktop/Downloads
    Last edited by oz; 11-22-2008 at 03:54 PM.
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  3. #3
    Just Joined!
    Join Date
    Nov 2008
    Posts
    13

    Unhappy

    This works OK as you said:

    richard@magnetman:~$ cd /home/richard/Desktop/Downloads
    richard@magnetman:~/Desktop/Downloads$ dir
    opera-9.62.gcc4-shared-qt3.i386.tar.gz
    richard@magnetman:~/Desktop/Downloads$


    But this doesn't go to richard from home..

    richard@magnetman:~$ cd /home
    richard@magnetman:/home$ dir
    richard
    richard@magnetman:/home$ cd /richard
    bash: cd: /richard: No such file or directory
    richard@magnetman:/home$

    Must be some rule i dont know about??

  4. #4
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,085
    Here's a good place to get some experience working with the Linux command line:

    LinuxCommand.org: Learn the Linux command line. Write shell scripts.
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  5. #5
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,343
    You are entering the wrong path. Instead of /richard, you should be entering richard. If you use /richard, you will be referring to a directory located just off / instead of a directory located in /home.

  6. #6
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077
    this sounds like you would be better off learning how to use tab completion
    LinuxClues.com | Directories and Tab Completion

  7. #7
    Just Joined!
    Join Date
    Nov 2008
    Posts
    13
    Thanks guys a lot of studying to do! bookmarked and ready to de - numtify..

  8. #8
    Linux Guru waterhead's Avatar
    Join Date
    Jul 2004
    Location
    Franklin, Wisconsin
    Posts
    4,577
    Instead of always typing in the complete path to your home directory, the tilde (~) can be used.
    Code:
    ~/Desktop
    The tilde will take you to the home of whatever user is logged in. If you want to go to a different directory, then the entire path is needed. If you are logged in as root, it will take you to the /root directory instead of the /home directory.
    Paul

    Please do not send Private Messages to me with requests for help. I will not reply.

  9. #9
    Just Joined!
    Join Date
    Nov 2008
    Posts
    13
    Thanx Paul that looks handy!

  10. #10
    Linux User
    Join Date
    Feb 2006
    Posts
    484
    Hi

    add this line to your /etc/apt/sources.list file
    Code:
    deb http://deb.opera.com/opera etch non-free
    and then in a terminal

    Code:
    apt-get update
    
    now you can install opera from the debian repos
    
    apt-get install opera
    After a update you can install the newest version any time.

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •