Kamis, November 20, 2008

Learning Linux through the terminal console

Because I Nyubie in the field of Linux, and sometimes difficult to apply again what I have learned so I try to document them in this blog, the main purpose is no other matter does not forget when you meet the same problems and the broader hopefully there are people who can benefit from this.

In the post this time I will try to pack in the form of FAQ, or frequently asked questions.

Q: How do I go to the root of the ordinary user?

A: In my liveCD Linux like Ubuntu, then when we log on our desktop is not allowed to log in using the root, but the user is the first time installation, while steps are as follows:

- Login using normal user account, "but change from the terminal towards the root login by using the commands: # sudo su - and then enter, so you can look that your console prompt like this :

root@yourmachine:~#

But if you using debian or orther distro, just use command :~# su - then enter, after that the field will appear passwd, then enter a password and enter rootnya.

As the picture below:

and fill a password if it is correct, then will look like this:

When the display is above (the name depends on the name linux nightwish we make, not necessarily the same), then it indicates we have been working with the root user.

Q: To prove we work with the root user with the what?

A: Use the command: nightwish: ~ # pwd, the pwd command will show where our position?

Q: How do I create a folder in linux?

A: Use the command: nightwish: ~ # mkdir, for example:

nightwish: ~ # mkdir / home/denden/mp3 <

nightwish: ~ # chmod 777 / home/denden/mp3 /

to see whether there are changes in the execution of rights in the file / mp3 /

nightwish: ~ # ls-la / home/denden/mp3 / <

total 8 total 8

drwxrwxrwx 2 root root 4096 2008-11-06 12:24 . drwxrwxrwx 2 root root 4096 2008-11-06 12:24.

drwxr-xr-x 5 denden denden 4096 2008-11-06 12:24 .. drwxr-xr-x 5 Denden Denden 4096 2008-11-06 12:24 ..

Q: How do I access the files / folders on the Windows partition?
A: Use the mount, with the first step is to make direktory in / mnt / command, being the same as the folder as above, and to use the mount command:

nightwish: ~ # mount /dev/hda5/mnt/newfolder, when the data partition in the windows / linux hda5 in the data will be visible in /mnt/newfolder.

for while it ahead of me ... and hopefully useful..



0 komentar: