Table of Contents

Part Numero Uno

Entries

Entry 1: September 7th, 2012

Professor Haas showed and explained VI/VIM to the class:

Entry 2: September 19th, 2012

This day gimmeh was introduced and a little information on scripts:

Entry 3: September 21st, 2012

Today we learned about Wildcards, to me seems very tricky stuff:

Entry 4: September 28th, 2012

Learning more on shell scripting:

Keywords

unix Keyword 1

File Removal

Definition

File removal also known as file deletion is a way of removing a file from a computer's file system.

The reasons for deleting files are

  Freeing the disk space
  Removing duplicate or unnecessary data to avoid confusion
  Making sensitive information unavailable to others

All operating systems include commands for deleting files (rm on Unix, era in CP/M and DR-DOS, del/erase in MS-DOS/PC DOS, DR-DOS, Microsoft Windows etc.). File managers also provide a convenient way of deleting files. Files may be deleted one-by-one, or a whole directory tree may be deleted.

References

  • Wikipedia
  • Professor Matthew Haas
  • Mr. Joe Oppenheim

unix Keyword 1 Phase 2

Variable (environment / local)

Definition

Environment variable - within the shell, a variable that is stored in the environment. Because the environment is inherited by all child processes, environment variables can be thought of as global variables. However, they are not strictly global, because changes made by the child are not propagated back to the parent. Local Variable - A variable that exists only within the scope in which it was created. For example. within the shell, a variable that is not part of the environment is a local variable.

References

  • Harley Hahn's Guide to Unix and Linux
  • Programming Logic and Design
  • Wikipedia

Experiment 1

Question

Using wild cards, how would it change my search by adding or taking out a character out of the string?

Resources

Using the skills, and information learned in class.

Hypothesis

My hypothesis, by just changing one character or adding one from the string typed will make a difference in the results.

Experiment

Using the command ???? to search for directories, then I will change one thing and then add one thing to see what the results are.

Data

I will be working in files in sbin

using the command: ls -d ???? Result: dump fsck halt ifup init mkfs rarp Changing the command to ls -d ???* the result: I received way to much Changing the command to ls -d ????? the result: blkid fdisk getty lsmod rdump rmmod route rtmon udevd Changing the command to ls -d ?????? the result: agetty depmod e2undo ifdown mke2fs nameif rtacct swapon wipefs cfdisk e2fsck findfs insmod mkswap reboot sfdisk sysctl

this gave me every word that was at least four letters, then a result I did not intend for, then every word that was a least five letters, then the next with words that had six letters.

Analysis

Based on the data collected:

Conclusion

That by just changing or adding one character in a command string it will change the results from the previous string