Results 1 to 9 of 9

Thread: Command line help

  1. #1
    Join Date
    Jan 2014
    Beans
    12

    Command line help

    Hi,

    I'm just learning how to use the command. A few easy questions:

    1. How do I navigate from the "/" directory to the main directory which includes the Documents and Music directory? I use to cd .. command but that doesn't work.
    2. Is there a directory for applications and how do I find it?

    Thanks,

    Tim

  2. #2
    Join Date
    Apr 2012
    Beans
    5,574

    Re: Command line help

    1. Just
    Code:
    cd
    or
    Code:
    cd ~
    will get you to your home directory from anywhere

    2. not really - at least not in the sense that you may be familiar with from Windows (like C:\Program Files). Can you give us the bigger picture of what you are trying to do?

  3. #3
    Join Date
    Jan 2006
    Location
    Not heaven... Iowa
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Command line help

    Just cd will get you to your home directory.
    (or cd ~)
    / is the root directory - it has no parent, so cd .. won't work.
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

  4. #4
    Join Date
    Jan 2014
    Beans
    12

    Re: Command line help

    Awesome! Thanks.

    With regards to the applications, I'm just finding it a little disorienting not having a folder for them.

  5. #5
    Join Date
    Jul 2013
    Location
    Wisconsin
    Beans
    1,871

    Re: Command line help

    There are several directories for applications.
    There are different directories for those applications' configs and settings, manuals, libraries, and more.
    Generally, you don't need to know where they are. But if you're curious, browse through /bin and /usr
    Most are owned by root. Don't mess with them. Some of those applications are vital to your system's operation.

    Some people want to groups files by source (all files for Foo Application in one place)
    Others want to to group files by function (all executables in one place, all settings in another)
    Linux has traditionally used the latter approach. It aids collaboration and reduces duplication.

  6. #6
    Join Date
    Sep 2006
    Beans
    7,622
    Distro
    Lubuntu Development Release

    hier

    Most applications will be in /bin, /usr/bin, or /usr/local/bin, mostly the first two.

    System utilities will usually be in /sbin, /usr/sbin or /usr/local/sbin

    A general overview of where things belong is explained in hier.

  7. #7
    Join Date
    May 2013
    Beans
    15

    Re: Command line help

    Quote Originally Posted by t.williams.im View Post
    1. How do I navigate from the "/" directory to the main directory which includes the Documents and Music directory? I use to cd .. command but that doesn't work.
    Code:
    cd /home/USERNAME/Documents
    and
    Code:
    cd /home/USERNAME/Music
    respectively

    Note you have to replace USERNAME with your own login name and be aware that directories and usernames are case sensitive. Music, MUSIC and music would be 3 different directories.

    pwd will show you the directory you are currently in
    ls will list the contents of the directory you are in.
    cd.. move you to the parent directory of the directory you are in
    Good luck.
    Last edited by mark65ak; January 8th, 2014 at 10:48 AM.

  8. #8
    Join Date
    May 2009
    Beans
    3

    Re: Command line help

    if you installed through Ubuntu Software Center, via terminal or .deb files, all installed softwares will be on software center when you need to remove them

  9. #9
    Join Date
    Aug 2013
    Beans
    11

    Re: Command line help

    hi
    if your "cd " don't works.
    give a "echo $HOME" a change to see where your installation is.
    ciao

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
  •