User Tools

Site Tools


opus:spring2012:jdavis34:unixpart1

unix Keywords

Local host

Definition

“Localhost” refers to the local computer that a program is running on

Demonstration

Remote host

Definition

Remote Host is the host in which you remote into, IE not the actual machine you are on but the remote one where the application or operating system exists.

Demonstration

Home directory

Definition

The home directory is, the directory where the users home resides, essentially the root directory to the user but not really the root.

Demonstration

Current working directory

Definition

Is the directory that you are currently working in, and or where you are in relation to the root.

Demonstration

Regular file

Definition

They show up in ls -l without a specific character in the mode field. Called regular files, to distinguish them from special file types.

Demonstration

lab46:~/src/unix$ ls -l
total 4
-rw-r--r-- 1 jdavis34 lab46 1 Jan 26 12:14 something

Directory

Definition

Most common special file. In a directory listing ls -l, they will show up with a d in the beginning.

Demonstration

lab46:~$ ls -l
total 8
-rw------- 1 jdavis34 lab46 1100 Oct 15 14:03 #pico29112#
lrwxrwxrwx 1 jdavis34 lab46   18 Feb 10  2011 Maildir -> /var/mail/jdavis34
drwxr-xr-x 2 jdavis34 lab46    6 Sep  4 21:21 bin
lrwxrwxrwx 1 jdavis34 lab46   28 Aug 30 17:02 data -> /usr/local/etc/data/jdavis34
drwx---r-x 4 jdavis34 lab46 4096 Apr 27  2011 public_html
drwxr-xr-x 6 jdavis34 lab46   68 Jan 26 11:07 src
drwxr-xr-x 4 jdavis34 lab46   28 Jan 26 09:44 src.bak

GUI

Graphical User Interface- programs used by devices in order to provide human interface with the computer. I (I.E. keyboard,screen,mouse,trackball

tar/gzip

Definition

TAR

Tar is a very commonly used archiving format on Linux systems. The advantage with tar is that it consumes very little time and CPU to compress files, but the compression isn’t very much either. Tar is probably the Linux/UNIX version of zip – quick and dirty.

TAR.GZ

This format is my weapon of choice for most compression. It gives very good compression while not utilizing too much of the CPU while it is compressing the data.

Demonstration

  • TAR
    • compress a directory:
# tar -cvf archive_name.tar directory_to_compress
  • extract the archive:
# tar -xvf archive_name.tar.gz
  • Gzip
    • compress a directory:
# gzip [ -acdfhlLnNrtvV19 ] [-S suffix] [ name ... ] 
  • extract the archive:
# gunzip [ -acfhlLnNrtvV ] [-S suffix] [ name ... ] 

unix Objective

structure of UNIX systems

familiarity with the structure of UNIX systems

Definition

The ability to show that one understands and can demonstrate successfully navigating within a Unix based system via command line.

Method

To do this have several lists of directories to create, including sub directories and files to be placed within these directories, all off the users home directory.

Measurement

make a few directories off of your user, some inside of others etc etc until you have around like 15 random directories and put some files in some. Once this is done move to a particular directory and from here navigate to other directories without using a absolute path, have some text file displaying without absolute path etc etc.

Analysis

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

  • How did you do? Pretty easy for the most part so long as people have familiarity with command line and navigation etc
  • Is there room for improvement? Always room for improvement such as using quotes, wild-cards, tabbing shortcuts etc.
  • Could the measurement process be enhanced to be more effective? If there was a specific set of files, with particular routes to be taken and specific characters used within names that might cause complexity.
  • Do you think this enhancement would be efficient to employ? Yea I also think its apart of the first few lessons and continues throughout the course so far, so as long as someone keeps up on their work they should be good.
opus/spring2012/jdavis34/unixpart1.txt · Last modified: 2012/03/01 13:42 by jdavis34