Pages

Monday, February 4, 2013

Here Document & Here String

Here Document we are pretty much aware of the re direction in Linux .When we use # echo 'hello world' >output # cat <output The first line writes "hello world" to the file "output", the second reads it back and writes it to standard output ( To Terminal) Then there are "here" documents: # cat <<EOF > hello > world > EOF A "here" document is essentially a temporary, nameless...
Read More

File Descriptors In Linux

As we all know that every thing in Linux is a file. Any program that runs on a Linux machine has access to something called a €œFile Descriptor Table. A This table acts as a map providing the process access to files, directories, unnamed pipes, named pipes, sockets and kernel-level data structures. This table exists for each process. There are 3 standard file descriptors accessible inside the bash shell. They are 0 -...
Read More

Controlling Resources

Many Times as a Sys admin,I see users create different scripts or process that cause a system failure. Many times there are done with out the knowledge of the scripts or process effectively. One of the dangers associated with the thin client model is that a runaway process might eat up all of the available system memory and/or cpu on the host system. When this happens, the performance on that system can degrade resulting...
Read More