Linux Tutorial/Walkthrough needed

Discussion in 'Software' started by R_H, 5 Jan 2007.

  1. Sloth

    Sloth #yolo #swag

    Joined:
    29 Nov 2006
    Posts:
    5,634
    Likes Received:
    208
    No tutorials (I'm a newb too) but I do know that you will see things like terminal, console, and even konsole but all are the same command line thing, and all use "su -" to get to be root, and all use the same commands. Some useful ones are "cd xxx" where "xxx" is the directory you want to go to. "cd" is change directory. Another is "ls" which shows everything in your current directory. "gedit xxx" will let you edit a specified file. Hope that helps a bit
     
  2. Glider

    Glider /dev/null

    Joined:
    2 Aug 2005
    Posts:
    4,173
    Likes Received:
    21
    A good tutorial on the CLI? Well, it's easy :)

    # info help
    # man bash
    # man <insert command>

    and, of course, google!
     
  3. ZenX

    ZenX How are you gentlemen?

    Joined:
    5 Aug 2005
    Posts:
    161
    Likes Received:
    0
    Everytime you need to do something as root, you can just use sudo, for example, you have a document on your desktop, and you need to modify it as root:
    Code:
    sudo gedit ~/Desktop/document.lol
    And voilá!
    You can also move files easily with the mv-command.
    Code:
    sudo mv /etc/apt/sources.list ~/Desktop/Sources.list
    It will create a folder called Sources.list containing your sources.list :)

    You can also remove things easily with rm. For example:
    Code:
    sudo rm ~/Desktop/Mozilla Firefox.lnk
    That should remove the icon for Firefox :)
     
  4. Glider

    Glider /dev/null

    Joined:
    2 Aug 2005
    Posts:
    4,173
    Likes Received:
    21
    Sudo is about the only way you can do it on Ubuntu (which is, TBH, quite frustrating for someone who knows what he is doing, and needs to do some root maintanance)...

    If you want to "make" a root account (it allready exists, just isn't accessable by default), do
    Code:
    # sudo su
    # passwd
    and type the ROOT password you wish to set 2 times.

    After that, you can just do a
    Code:
    # su
    to become root user, or better "# su -", which will automatically cd to the /root/ directory.

    But, best way to learn CLI is actually use it, and you'll see it is immensly more powerfull then GUI

    EDIT: Now that you will be experimenting with root privileges, there is something you'll probably run into... Problems with userrights...

    I'll give an example.
    do this:
    Code:
    # sudo su
    # echo "This is a test" > ~<your username>/test.odt
    This will make a OpenOffice document, with "This is a test" as contents, and test.odt as filename, in your homedir.
    Then, fire up OpenOffice, and try to open it. It won't work. That is because user root made the document. you can check this by doing
    Code:
    # ls -l 
    in your homedir. It will show root:root as user:group... , and -rw-r--r-- as full rights. For more info on that all, do
    Code:
    # man chmod
    # man chown
    Chown is the command with which we fix this, CHange OWNer.
    Code:
    # chown <user>:<user> ~<user>/test.odt
    will change root:root to <user>:<user> and it will be accessable from OpenOffice.
     
    Last edited: 6 Jan 2007
Tags:

Share This Page