Monday, February 22, 2010
Blog 5 - Lab 4
DONE
Part 2
1. Use wc to tell me how many lines are in the file /etc/fstab. How did you do this and what answer did you get?
There are 11 lines in fstab.
First I had to get to the correct directory by typing cd /etc. Then I just typed wc fstab. This command gives me a line that says " 11 51 556 fstab". The first number is the number of lines in the file. Afterwards I checked by typing cat fstab and there are to be 11 lines.
2. Use wc to tell me how many words are in the file /etc/fstab. How did you do this and what answer did you get?
There are 51 words in fstab.
I found this out the same way as above except the number of words is the second number. Here I didn't double check using the cat command.
3. Use echo to tell me what is contained in the following variables:
HISTSIZE - 1000
LOGNAME - mminten
HOME - /home/mminten
MAIL - /var/mail/mminten
SHELL - /bin/bash
4. Create a variable called NAME that holds you first name. How did you do this?
I just typed 'NAME=Matthew'. When I type 'echo $NAME' it appears to be there. Now I have a question for you... when I type 'env' to see all of my variables it does not appear in the list. Where does it go? I can see its value when I type the echo command.
Friday, February 19, 2010
Blog 4
1. What is your pwd?
The command 'pwd' lists the working directory. Currently it is /home/mminten.
2. Using an absolute path, go to the/etc/gimp directory. How did you do this?
I did this by typing 'cd /etc/gimp'.
3. Using a relative path, go back to your home directory (your pwd). How did you do this?
I can go straight to my home directory by typing 'cd' or 'cd ~'. If I want to go back a step I can type 'cd ..' but this will not get me back to my home directory.
4. What is you PATH set to? How did you find this out?
I found my PATH by typing 'echo $PATH' and my PATH is set to: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
5. From your home directory (make sure you are there using pwd) use the ls –a command to see how many files you have, including the hidden files. How did you do this?
I have 6 files (.bash_history .bash_logout .bashrc Examples .lesshst .profile) in total. I found this by typing pwd to check that I was in my home directory and then typing ls -a to see the hidden files (which have a . in front of them).
6. Create a directory called week4 using the following syntax:
mkdir week4
Check using ls to be sure it is there.
7. Copy the file .profile to your new directory and rename it when you do, using the following command:
cp .profile week4/profilenew
8. See if it worked first by making sure your original file is there and then that he new file is there:
ls –a
Do you see the .profle file? Yes
ls week4
Do you see the new file? Yes
9. Change into your week4 directory using the cd command:
cd week4
Confirm you are there by typing: pwd
10. Once you are in your new directory, you will create a subdirectory inside of it:
mkdir lab
FYI, your absolute path to that directory is: /home/your_login_name/week4/lab.
11. We will now move the file profilenew to our new directory called lab. You need to be inside of your week4 folder for these commands to work:
ls
Do you see the profilenew file? Yes
mv profilenew lab
ls
Do you see the profilenew file? No
ls lab
Is it in the new folder called lab? Yes
12. Let’s try to remove the directory called lab. You should still be in the week4 directory:
rmdir lab
What happens? Why?
Nothing happens, it give an error message telling me it can't remove the 'lab' directory because it is not empty.
Go back to your home by typing:
Cd ~
13. I have told you how helpful the man pages can be. Pretend we just installed a new sound card and cannot remember the command we need that will run the sound volume meter. Le’s use either man –k or apropos to find out what that is:
man –k sound
You can see you can scroll through and find the command you are looking for. What is it?
'vumeter'
Sometimes too much info confuses it. Type:
man –k sound volume meter
Did you get the results you wanted?
I can find the 'vumeter' command in the list but the list is much longer than when I just typed 'apropos sound'.
Friday, February 12, 2010
Blog 3 - Cathedral vs the bazaar
Cathedral vs the Bazaar was an essay and now is a book written by Eric S. Raymond about software development methods. Cathedral and Bazaar are to different model for developing open source code. The Cathedral model basically releases software versions with the source code but between releases only a relatively small group of developers have access to it. The Bazaar model basically develops the code openly over the internet where any programmer has access to it.
The importance of the bazaar model and Mr. Raymond's theory is that you can release software earlier and more often and have your customers and other programmers try to perfect the code by working on all the bugs that everyone reports. This follows the basic idea that two minds are better than one and that hundreds of minds are better than 10 or 20. With this idea in mind the workload diminishes by spreading it out to whoever wishes to work on it.
Wednesday, February 3, 2010
Blog 2 - Questions 1-4 pg. 277
a. Konqueror is a very powerful desktop tool that offers much more than your standard web browser. I can also be used as a file manager with access to local and network drives.
b. With Konqueror you can search the internet, access local files, access an FTP site, and you ca run a textual program by opening the Run Command window.
c. You can search for a file by typing the file name in the search box on the toolbar.
2. A Terminal Emulator brings up a window that "mimics a character based terminal" (p.273). This allows you to run text based programs separate from the GUI.
3. Klipper is a program that stores what you cut and paste to the buffer (like Microsoft's clipboard). Whenever you highlight text it is sent to klipper. If you open klipper you can click on the line you would like to paste then move the mouse to where you want to paste and middle-click.
4. a. Nautilus is a simple File Manager.
b. Two was you can execute a file in Nautilus are through the spatial view and the traditional File Browser view. The spatial view opens each new folder in a new window and the traditional view has a sidepane and a viewpane where files are shown.
c. Nautilus 'knows' how to open a file by looking at it's MIME type.
d. The three most common control bars are the menubar, the toolbar, and the locationbar. The menubar holds all the drop down menus with many options each. The toolbar has navigation tools like forward and back. Finally the locationbar shows where you are (path name) and has viewing options like zoom.
e. The Nautilus location bar is used to show the path name. You can also use it to enter an absolute path name. There are also options to zoom in and zoom out as well as a view as... option.