Professor Haas showed and explained VI/VIM to the class:
This day gimmeh was introduced and a little information on scripts:
Today we learned about Wildcards, to me seems very tricky stuff:
Learning more on shell scripting:
File Removal
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.
Variable (environment / local)
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.
Using wild cards, how would it change my search by adding or taking out a character out of the string?
Using the skills, and information learned in class.
My hypothesis, by just changing one character or adding one from the string typed will make a difference in the results.
Using the command ???? to search for directories, then I will change one thing and then add one thing to see what the results are.
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.
Based on the data collected:
That by just changing or adding one character in a command string it will change the results from the previous string