Results 1 to 5 of 5

Thread: New to forums and ubuntu : ( Im trying to learn shell.. what am I doing wrong

  1. #1
    Join Date
    Nov 2015
    Beans
    2

    Unhappy New to forums and ubuntu : ( Im trying to learn shell.. what am I doing wrong

    lulwat@lulwat:~$ pwd
    /home/lulwat
    lulwat@lulwat:~$ cd ..
    lulwat@lulwat:/home$ cd ~
    lulwat@lulwat:~$ ls
    Desktop Downloads Link to WIN TO NIX NIX TO WIN Pictures Templates
    Documents examples.desktop Music Public Videos
    lolwat@lulwat:~$ cd ~/downloads
    bash: cd: /home/lulwat/downloads: No such file or directory
    lolwat@lulwat:~$ cd ~/downloads/
    bash: cd: /home/lulwat/downloads/: No such file or directory
    lulwat@lulwat:~$


    I’m trying to learn how to get around in shell.. right now I'm having issues navigating to the downloads folder..
    I’m just trying out what I just learned on codecademy

  2. #2
    Join Date
    Oct 2006
    Beans
    56,253

    Re: New to forums and ubuntu : ( Im trying to learn shell.. what am I doing wrong

    Downloads should be capitalised, you do not have a "downloads" folder.

    Look at the result of your ls command..

  3. #3
    Join Date
    Nov 2015
    Beans
    2

    Re: New to forums and ubuntu : ( Im trying to learn shell.. what am I doing wrong

    wow.... thanks. Never would have thought its case sensitive..

  4. #4
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: New to forums and ubuntu : ( Im trying to learn shell.. what am I doing wrong

    There's also tab completion, if you haven't found that yet. Start typing as normal and then press tab when you what you have so far is unique. e.g.

    Code:
    cd ~/Doc<tab>
    cd ~/Dow<tab>
    You get used to it very quickly and it saves on typing.

  5. #5
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!

    Re: New to forums and ubuntu : ( Im trying to learn shell.. what am I doing wrong

    Tab completion will also overcome another of the problems that you may come across with files and folders with spaces in their names.

    For these files you have to use an escape character in terminal, ie either quotation marks around the full pathway, or a backslash before the space, so a folder called rock music will have to be typed as rock\ music or "rock music". Type rock then hit tab and the terminal will fill in the rest for you and escape the space for you with a backslash; if there is more than one match tab x2 will show all the matching options.
    DISTRO: Xubuntu 18.04-64bit --- Code-tags --- Boot-Repair --- Grub2 wiki & Grub2 Basics --- RootSudo --- Wireless-Info --- SolvedThreads

Tags for this Thread

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
  •