Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Ubuntu (terminal) commands

  1. #1
    Join Date
    Sep 2011
    Beans
    46

    Question Ubuntu (terminal) commands

    I installed Ubuntu few days ago and works very good. "Ubuntu Software Center" works good for installing but not every application is in there, so some of them need to be installed manually.
    When I need to install manually, I go to App's web site and see what commands to run (in terminal), but it confuses me because I don't even know what all those commands are for, all I know is it's about to install needed app, so I'm asking you, what those "sudo", "apt", "get", "add", "install update" "./configure" etc. do. (and if there are more usefull cmds, tell me), I just like having control on what's my PC is doing, that's why I switched from Windows to Linux. Atm, I would like if there is some "Ubuntu installer" like the "Windows installer", but maybe manually installing (and other stuff in terminal) could be even more fun if I know what commands that I running actually do.

  2. #2
    Join Date
    Oct 2010
    Location
    uk
    Beans
    247
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Ubuntu (terminal) commands

    the man page is probably going to be the best thing for you to read if you want to know what a command does just type in terminal

    Code:
    man nameofcommand
    
    e.g.
    
    man sudo
    man apt-get
    man apt
    also apropos is a useful command that will search the man pages using a keyword so if you don't know the command you want you can search a keyword and it will list commands that contain the keyword

    ./configure is abit different that is used for compiling software from source this page should explain more about that i would suggest not compiling from source until you have read abit more about it first
    The best things in life are free

  3. #3
    Join Date
    Feb 2010
    Location
    Summerwind
    Beans
    11,561
    Distro
    Ubuntu

    Re: Ubuntu (terminal) commands

    Hello and Welcome

    If you stick to software from the Ubuntu software center or debian packages , known as (.deb ) you should not have to compile any software . There may be cases that the program you want doesn't come as a .deb package .
    “Start where you are. Use what you have. Do what you can."

    Ubuntu Documentation Search: Popular Pages
    Ubuntu: Security Basics
    Ubuntu: Manual

  4. #4
    Join Date
    Jun 2011
    Location
    Grand Forks, ND
    Beans
    113
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Ubuntu (terminal) commands

    Code:
    sudo
    - Things that require you to make significant or potentially dangerous changes require root or administrator level permission, Ubuntu prefers you don't simply run around as the root user, so sudo gives a command permission to do things for the root user. Putting it in a command basically tells the computer, "Yes, it's ok to do this".

    Code:
    apt-get
    - Accesses the software repositories, a giant collection of various programs for Ubuntu users

    Code:
    apt-cache search "keyword"
    - Searches through a stored list of programs in the repositories for your keyword. After the keyword, add
    Code:
     | grep 'keyword'
    to narrow down your results even more.

    Code:
    sudo apt-get install "package"
    - Searches the repositories for the package specified and installs it, since it makes changes to your hard drive, sudo must be used.

    Code:
    sudo apt-get update/upgrade
    - Both of these are used on a fairly regular basis, updates your repository information, any security updates, program patches, etc. Basic upkeep of your current software.

    Code:
    sudo apt-get remove "program"
    - Removes a program from your system, leaving configuration files to be used if it is reinstalled.

    Code:
    sudo apt-get purge "program"
    - Totally removes the chosen program from your system along with configuration files. Best thing if you know you won't be using that program again in the future.

    I think that's really it for the basics of installing/finding/removing things with the terminal. I personally hate the software center, so this is how I install everything.
    Last edited by Neoncamouflage; October 2nd, 2011 at 08:34 PM.

  5. #5
    Join Date
    Sep 2011
    Beans
    46

    Re: Ubuntu (terminal) commands

    Quote Originally Posted by dave01945 View Post
    the man page is probably going to be the best thing for you to read if you want to know what a command does just type in terminal

    Code:
    man nameofcommand
    
    e.g.
    
    man sudo
    man apt-get
    man apt
    also apropos is a useful command that will search the man pages using a keyword so if you don't know the command you want you can search a keyword and it will list commands that contain the keyword

    ./configure is abit different that is used for compiling software from source this page should explain more about that i would suggest not compiling from source until you have read abit more about it first
    Yeah, just tested the "man", it really shows detailed explanation, thanks it's great

  6. #6
    Join Date
    Feb 2008
    Location
    Texas
    Beans
    17,744
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

  7. #7
    Join Date
    Sep 2011
    Beans
    46

    Smile Re: Ubuntu (terminal) commands

    Quote Originally Posted by Neoncamouflage View Post
    Code:
    sudo
    - Things that require you to make significant or potentially dangerous changes require root or administrator level permission, Ubuntu prefers you don't simply run around as the root user, so sudo gives a command permission to do things for the root user. Putting it in a command basically tells the computer, "Yes, it's ok to do this".

    Code:
    apt-get
    - Accesses the software repositories, a giant collection of various programs for Ubuntu users

    Code:
    apt-cache search "keyword"
    - Searches through a stored list of programs in the repositories for your keyword. After the keyword, add
    Code:
     | grep 'keyword'
    to narrow down your results even more.

    Code:
    sudo apt-get install "package"
    - Searches the repositories for the package specified and installs it, since it makes changes to your hard drive, sudo must be used.

    Code:
    sudo apt-get update/upgrade
    - Both of these are used on a fairly regular basis, updates your repository information, any security updates, program patches, etc. Basic upkeep of your current software.

    Code:
    sudo apt-get remove "program"
    - Removes a program from your system, leaving configuration files to be used if it is reinstalled.

    Code:
    sudo apt-get purge "program"
    - Totally removes the chosen program from your system along with configuration files. Best thing if you know you won't be using that program again in the future.

    I think that's really it for the basics of installing/finding/removing things with the terminal. I personally hate the software center, so this is how I install everything.
    This is really nice explaining of thing I were asking for. Thanks alot.

  8. #8
    Join Date
    Sep 2011
    Beans
    46

    Re: Ubuntu (terminal) commands

    Thank u all, I found solution in ur replies, so this is solved Peace

  9. #9
    Join Date
    Jun 2011
    Location
    Grand Forks, ND
    Beans
    113
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Ubuntu (terminal) commands

    Anytime. I know when I started learning this stuff all I wanted was a basic list of what the common commands were, and what they did. Seems fairly difficult to just get that from any of the help sites.

  10. #10
    Join Date
    Feb 2008
    Location
    Texas
    Beans
    17,744
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

Page 1 of 2 12 LastLast

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
  •