User Tools

Site Tools


opus:spring2012:tedmist1:unixpart1

unix Keywords

Local Host

Definition

Definition (in your own words) of the chosen keyword.

Standard host name given to the address of the network interface.

Demonstration

Demonstration of the chosen keyword.

lab46:~$ netstat
Active Internet connections (w/o servers)
Proto Revc-Q Send-Q Local Address            Foreign Address       State
tcp   0      0      lab46.offbrone.la:60002  irc.offbyone.lan:ircd Established
lab46:~$ 

Remote Host

Definition

Definition (in your own words) of the chosen keyword.

A computer that is in a different location than your computer but which you can log on to from your computer.

Demonstration

Demonstration of the chosen keyword.

Step 1. On the local host

Type the following at the command line:

lab46:~$ xhost + Remote Host IP address < press return >

Step 2. Log on to the remote host

lab46:~$ telnet Remote Host IP address < press return >

Home Directory

Definition

Definition (in your own words) of the chosen keyword.

A directory owned by a user and dedicated to storage of the user's personal files.

Demonstration

Demonstration of the chosen keyword.

lab46:~$ 
lab46:~$ cd home
lab46:~/home$
lab46:~/home$ ls
tedmist1
lab46:~/home$
lab46:~/home$ cd .
lab46:~/home$
lab46:~/home$ cd .. 
lab46:~$ 

Current Working Directory

Definition

Definition (in your own words) of the chosen keyword.

The default directory of a process from which all relative path names are resolved.

Demonstration

Demonstration of the chosen keyword.

pwd (Print Working Directory): Displays the name of your working directory.
lab46:~$ 
lab46:~$ pwd
/home/tedmist1
lab46:~$ 

Regular Files

Definition

Definition (in your own words) of the chosen keyword.

A file that's not a directory, a device, a named pipe or socket, or a symbolic link.

Demonstration

Demonstration of the chosen keyword.

ls (List Files): Display information about the contents of a directory.

* Listing only of a few regular files in my personal directory.

lab46:~$ ls
count.c
courses.html
cs.html
display.c
dtypes.c
file.txt
lab46:~$ 

Directory Files

Definition

Definition (in your own words) of the chosen keyword.

A file that consists solely of a set of other files.

Demonstration

Demonstration of the chosen keyword.

ls (List Files): Display information about the contents of a directory.

* Listing only of Directory files in my personal directory.

lab46:~$ ls
Mail
Maildir
archives
cd
devel
home
lab2
ls
p
public_html
script
shell
src
src.bak
tedmist1
lab46:~$ 

Special Files

Definition

Definition (in your own words) of the chosen keyword.

A device file or special file is an interface for a device driver that appears in a file system as if it were an ordinary file.

Demonstration

Demonstration of the chosen keyword.

ls (List Files): Display information about the contents of a directory.

* Listing only of special files in my personal directory.

lab46:~$ ls
Maildir
motd
lab46:~$

File Manipulation

Definition

Definition (in your own words) of the chosen keyword.

The act of changing a file to your certain needs and or requirements.

Demonstration

Demonstration of the chosen keyword.

chmod (Change File Mode): Change permissions for a file.

- Syntax: chmod mode file… * Where mode is the new file mode, and file is the name of a file or directory.

The first number represents the permission for the userid that wons the files; the second number represents the permissions for the userids in the group; the third number the permissions for all the userids on the system.

6 = permissions for owner
0 = permissions for group
0 = permissions for all other userids
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Use the following numeric value for the various permissions.

4 = read permission
2 = write permission
1 = execute permission
0 = no permission

Owner: read + write + execute = 4 + 2 + 1 = 7
Group: read + write = 4 + 2 + 0 = 6
Other: read = 4 + 0 + 0 = 4
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Owner Group Other Mode File
rwx = 7 | rwx = 7 | rwx = 7 | 777 | program.allusers
rwx = 7 | rwx = 7 | — = 0 | 770 | program.group
rwx = 7 | — = 7 | — = 0 | 700 | program.owner
rw- = 7 | rw- = 7 | rw- = 6 | 666 | text.allusers
rw- = 7 | rw- = 7 | — = 0 | 660 | text.group
rw- = 7 | — = 0 | — = 0 | 600 | text.owner
lab46:~$ 
lab46:~$ chmod 777 file.txt
lab46:~$ 
lab46:~$ ls 
file.txt (should be indicated as a changed file, a green coloration is used to indicate such things in Unix)
lab46:~$ 

unix Objective

Exposure to Command-Line Tools and Utilities

State the course objective

Exposure to command-line tools and utilities.

Definition

In your own words, define what that objective entails.

The objective entails that throughout the course you will gain some, if not a lot of knowledge around the basics of command-line interfaces and the utilities involved with the type of interface.

Method

State the method you will use for measuring successful academic/intellectual achievement of this objective.

The method of academic/intellectual achievement of this objective can only be done through the amount of usage(time) spent using a command line interface.

Measurement

Follow your method and obtain a measurement. Document the results here.

This can be measured by how comfortable the user is with the language and syntax involved with CLI systems. The more commands you can remember the easier job it will be for the user to do his or her job.

Analysis

Reflect upon your results of the measurement to ascertain your achievement of the particular course objective.

  • How did you do?
So far I am learning about CLI, there wont be a point in which I know everything about CLI. Theres always something to learn about the subject at hand.
  • Is there room for improvement?
Yes, there is always room for improvement.
  • Could the measurement process be enhanced to be more effective?
The more you use a CLI the more effective you will be as a user. Knowing the commands is only part of the job, but correct implementation is the hard part.
  • Do you think this enhancement would be efficient to employ?
Yes, broadening your horizon upon the multiple interfaces that computers can employ only make you a better end user.
  • Could the course objective be altered to be more applicable? How would you alter it?
The course object is applicable at the moment, so alterations to the objective are not needed in current time.
opus/spring2012/tedmist1/unixpart1.txt · Last modified: 2012/04/01 21:04 by tedmist1