=====unix Keywords===== ====The Vi Editor==== Identification of chosen keyword (unless you update the section heading above). ===Definition=== One of the more basic text editors in terminal. Primarily used with writing code. ===Demonstration=== By using a basic command, you are sent into the text editor. From there you can write whatever you want. You can either choose to save it or not upon exit by hitting escape then ":q" What it looks like: lab46:~$ vi newfile.txt ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ "newfile.txt" [New File] 0,0-1 All ====Local Host==== ===Definition=== An alias for the network address "127.0.0.1" that always points to the local computer. ===Demonstration=== The local host is the name given to this network address "127.0.0.1" It is how the computer refers to itself. When testing a web service on a server (such as apache) you use the local host address 127.0.0.1. ====Home Directory==== ===Definition=== A directory in the system that contains the users files. ===Demonstration=== In lab46, the generic path to the home directory is /home/(enter your user name here) There are several shortcuts to the home directory. The command "cd ~" has always been my favorite. Here is an example of a home directory lab46:~$ ls Desktop Folder Templates public_html Documents Maildir Pictures Videos bin src Downloads Music Public Workspace src.bak lab46:~$ ====Current Working Directory==== ===Definition=== The part of the hierarchy you currently reside in. ===Demonstration=== In the Directory system of linux, there are several files and folders. These folders are actually directories. The current directory is the directory that the terminal is in. By casting the command "pwd" , it prints your current working directory and displays it in front of you. lab46:~$ pwd /home/thakes3 lab46:~$ ====Remote Host==== ===Definition=== A web server or database that you have access to via the internet. ===Demonstration=== A good demonstration of remote hosting would be Window's remote desktop. Remote Desktop is an application run on Windows that allows you to connect to another computer's screen remotely. {{:opus:spring2012:thakes3:remotedesktop.gif?500|}} ====Shell Scripting==== ===Definition=== Script written for the shell of an operating system. ===Demonstration=== Shell scripts are mostly ascii text, with several commands in them , and are executable. Shell scripts can be executed by using the "./" ====File Manipulation==== ===Definition=== The process of changing, moving, adding, deleting, or allowing access to a file. ===Demonstration=== There are several ways files can be manipulated. I will show you some of the ways to manipulate a file. By moving the file lab46:~$ mv file.txt /folderhere lab46:~$ cd /folderhere lab46:/folderhere$ ls file.txt lab46:/folderhere$ By deleting the file lab46:~$ rm file.txt lab46:~$ ls lab46:~$ By copying the file lab46:~$ cp file.txt file2.txt lab46:~$ ls file.txt file2.txt lab46:~$ ====Job Control==== ===Definition=== The ability to work jobs in the background while you continue to work at the shell. ===Demonstration=== By using the bg command, you are able to send the job you are currently working on to the background while you continue to work. lab46:~$ cd src lab46:~/src$ gcc -o hello hello.c lab46:~/src$ bg lab46:~/src$ =====unix Objective===== ====unix Objective==== State the course objective ===Definition=== In your own words, define what that objective entails. ===Method=== State the method you will use for measuring successful academic/intellectual achievement of this objective. ===Measurement=== Follow your method and obtain a measurement. Document the results here. ===Analysis=== Reflect upon your results of the measurement to ascertain your achievement of the particular course objective. * How did you do? * Is there room for improvement? * Could the measurement process be enhanced to be more effective? * Do you think this enhancement would be efficient to employ? * Could the course objective be altered to be more applicable? How would you alter it?