As most basement linux kids know, to execute commands in terminal that change harware or file settings you must be logged in as the "root" user. Linux has users similar to the way windows 95 and 98 did, where you are prompted each time on log in for username and password. Root is a seperate name and password, very much like the "administrator" user in windows. You are required to make at least one username and password on setup of linux, but with Ubuntu I have been able to set it up to auto login so I don't have to enter my username and password each time and my wife doesn't have to remember it. It's pretty hard to forget your username, as it becomes your home directory, but DO NOT forget your password. You will still need it.
Ubuntu tries to make using root easier by eliminating the name altogether and using a command instead. In this way, you can be logged in as any user and do things requiring root access. Simply add the command "sudo" in front of any commands that need to be done as the root user. e.g.:
sudo mount -t vfat /dev/hdd /mnt/
A command line to mount my second hard drive (to "/mnt"). In linux, extra drives are "mounted" or simply attached to a directory on the main file system. Think about it like a tree. You are taking a new drive, or "branch" of information and attaching it to a larger tree that is your hard drive. Definately a switch for us windows users, and I still have more I need to learn about this command.
No comments:
Post a Comment