User Tools

Site Tools


opus:fall2012:byang:unixpart1

unix Keyword 1

Links to Files

Definition

Links to files is used to help find the files and the directory. We use the code to find the file and directory.

References

List any sites, books, or sources utilized when researching information on this topic. (Remove any filler text).

  • Reference 2
  • Reference 3

unix Keyword 1 Phase 2

File Operations

Definition

The Processes of manipulating data and directories. Some examples of this are; reading, writing, creating, seeking and appending files or directories.

Creating a file or directory is essentially the same as writing in the sense of once the program is written, it has to use a compiler to convert it to machine language. Once it is converted, then it can be put in any directory specified and then called upon at a later time to execute

Reading a file is the process of the computer taking the output information that only the computer understands and converting into information that is readable to us. This process is done by interpreters and translators within the computer system.

Writing a file is the process of converting from a natural human language to a language the computer can understand. After writing a code in the system, a compiler such as VI is used in order to convert the information into an executable format that the computer can understand

Seeking is the process of repositioning the file read/write offset. This is done by using what is called a pointer, a pointer refers directly or (points to)information that is stored at another location in memory. So in other words, if the you cannot see the information until the information is “pointed to” or called from memory.

Appending a file is the process of rewriting a file that has already been written. This is done by pointing to the end of the text that was written and adding more the text desired

References

List any sites, books, or sources utilized when researching information on this topic. (Remove any filler text).

Demonstration

Demonstration of the indicated keyword.

If you wish to aid your definition with a code sample, you can do so by using a wiki code block, an example follows:

/*
 * Sample code block
 */
#include <stdio.h>
 
int main()
{
    return(0);
}

Alternatively (or additionally), if you want to demonstrate something on the command-line, you can do so as follows:

lab46:~$ cd src
lab46:~/src$ gcc -o hello hello.c
lab46:~/src$ ./hello
Hello, World!
lab46:~/src$ 
opus/fall2012/byang/unixpart1.txt · Last modified: 2012/10/05 20:02 by byang