Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: Basic commands - This is my list what can you add?

  1. #1
    Join Date
    Oct 2006
    Beans
    4

    Basic commands - This is my list what can you add?

    Guys,

    I am brand new to Linux and Ubuntu this is my second day and I am starting to collect a list of basic commands:

    su : Super User rights from within the terminal
    sudo : super user run this command
    ls : list directory contents
    ls -lis : list directory content is list view
    cd : change directory
    cd /dirname : jump change a directory
    apt-get install : gets app from web and installs
    apt-get remove : uninstalls app
    apt-get update : updates the DB
    clear : clears screen
    ./filename : processes a install command
    mkdir : creates a directory
    chmod 777 dirname : resets access rights to directory
    kill 999 : kills process at high level
    reboot : reboots system
    exit : exits from terminal or moves back a userlevel
    make : comlies package code
    make install : installs the compiled code
    uname -r : gives you the kernel version

    Can you add to this list and have I made any mistakes. Go easy this is all very new for me!

  2. #2
    Join Date
    May 2005
    Beans
    200

    Re: Basic commands - This is my list what can you add?

    you can give someone a fish, or teach them to fish ...

    so basically i think its pointless to teach all the different options for every command. The main thing is to learn how to figure out commands yourself. A couple of good pointers

    man ls # will give you information about ls

    also by pressing tab you can auto complete a command or see all available possibilities ... so if you type gre ... and cant remember that what you need is grep, then just hit tab a couple of times.

    Also the history helps remember commands you have used before.

  3. #3
    Join Date
    Jul 2005
    Location
    California
    Beans
    171

    Re: Basic commands - This is my list what can you add?

    tar -xf

    Extracts the contents of most tar.** archives.

    apt-cache search ****

    Searches the apt database for packages with names or descriptions similar to ****

    apt-cache show ****

    Shows information on package ****, for example "apt-cache show unzip".

    df -h

    Shows mounted filesystems and space usage infomation for them.

    du -hs /path/to/directory/

    Shows the size of the contents of the specified directory.


    Let me know if this helped. I could list some more if you'd like.
    Last edited by PatrickMay16; October 11th, 2006 at 05:28 PM.

  4. #4
    Join Date
    Aug 2006
    Beans
    30

    Re: Basic commands - This is my list what can you add?

    I'll join you on this mission. I was thinking of doing the same thing. Maybe someone could go through all the different sudos. for example sudo sudo -s gksudo su and so on. Thanks to anybody that does it would be a big help. Hopefully they get posted to the top.

  5. #5
    Join Date
    Apr 2005
    Location
    Sintra, Portugal
    Beans
    835

    Re: Basic commands - This is my list what can you add?

    Having an & at the end of the command line sends this process to the background (you regain the prompt to type more commands). If you type a command followed by && and then another command (i.e. $command1 && command2) the second command will only be started when the first one is finished

  6. #6
    Join Date
    May 2006
    Location
    Milwaukee,WI
    Beans
    6,110
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Basic commands - This is my list what can you add?

    su : Super User rights from within the terminal
    sudo : super user run this command
    ls : list directory contents
    ls -lis : list directory content is list view
    cd : change directory
    cd /dirname : jump change a directory
    apt-get install : gets app from web and installs [NOTE from dannyboy: I would use aptitude, it keeps track of dependencies and when you uninstall stuff it takes the dependencies with it, apt-get DOESN'T do this!]
    apt-get remove : uninstalls app [same here]
    apt-get update : updates the DB [same here]
    clear : clears screen
    ./filename : processes a install command
    mkdir : creates a directory
    chmod 777 dirname : resets access rights to directory [i don't know what you mean by resets access right, chomd will make the dir readable, writable, and executable i thought?]
    kill 999 : kills process at high level
    reboot : reboots system
    exit : exits from terminal or moves back a userlevel
    make : comlies package code
    make install : installs the compiled code
    uname -r : gives you the kernel version
    dir : will list all directories within your current location
    cat filenamehere : will display it's contents
    pwd : will show you your current location (very important if you're usincli ftp)
    cp oldfilename newfilename : copies a file
    mv oldfile newfile : will overwrite the oldfile with the newfile
    chown usernamehere dirnamehere : changes the dir owner to whoever you put
    chgrp groupnamehere dirnamehere : changes the group who owns the dir

    Thats it from me, you're best off reading a linux command website.

  7. #7
    Join Date
    Mar 2006
    Beans
    1,435
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: Basic commands - This is my list what can you add?

    su doesn't work in ubuntu!
    instead we have to use:
    sudo su

    and if you have mkdir then you should also have rmdir to remove a directory..


    Thanks for the && -didn't know it And just happen to need it!
    _______________
    - anaconda

  8. #8
    Join Date
    Aug 2005
    Beans
    Hidden!

    Re: Basic commands - This is my list what can you add?

    Advantages and Disadvantages of 64bit.(Plus install Guides)

    ‘In search of some small measure of peace, that we all seek, and few of us ever find.’

  9. #9
    Join Date
    May 2006
    Location
    Milwaukee,WI
    Beans
    6,110
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Basic commands - This is my list what can you add?

    Quote Originally Posted by anaconda View Post
    su doesn't work in ubuntu!
    instead we have to use:
    sudo su
    You really should be more specific. I'll update the statement for you. su doesn't come enabled in Ubuntu by default, you need to set it up yourself. You would type 'sudo passwd' and when it asks you for a password, enter in a root password. now whenever you want to log in as root, you would hit su then the password you chose or you could simply login that way by entering root as the username and the password you chose.

  10. #10
    Join Date
    Jan 2006
    Location
    Spain
    Beans
    150

    Lightbulb Re: Basic commands - This is my list what can you add?


Page 1 of 3 123 LastLast

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
  •