Tuesday, June 1, 2010

Week 2:

This week consisted of using the virtual private network (vpn) and virtual network computing (vnc) to remotely gain control of a computer running Ubuntu 10.04. From there, I spent most of my time going over the tutorials on command lines and putting them into the command line interface (cli) or terminal. The easy part of this was getting the VPN and VNC running. Those posed no problem to me. The tricky part was getting the CLI to do what I wanted.


Using "cd" to move up and down the directories in the terminal was fine. It helps to navigate and figure out the maze of /home/user1/folders/etc or going back to the root / then navigating to /usr/share/example-content. Then ls, cp, mv, rm, mkdir, and file all worked as expected. I rejoiced. The "less" command gave me problems. In theory, this should allow me to view text files in a readable format, but all I got was gobbledygook. Since I have installed Ubuntu on my hard drive as a virtual machine, I will continue to experiment with less and see if I can't figure out what is going wrong.

The most confusing part of this week's tutorials is ownership and permissions. Logging in as the Super User, I can change the permissions of a file with chmod, chgrp, and chown. So a file which is rwxrwxrwx is readable, writable, and executable by the owner, the group, and others. So, I see how in binary 111 makes something rwx or 101 makes it r-x. What gives me trouble is that
100 = 4

101 = 5

110 = 6

111 = 7
For the time being, I think I'll be sticking to an alphabetical approach i.e. chmod a+rwx

No comments:

Post a Comment