http://www.gowrikumar.com/c/index.html
Some interesting things on C
http://maxnoy.com/interviews.html
Some brain Teasers here!!!
Linux Guides Links
The Linux Programmer's Guide
The Linux Kernel: How Linux Kernel Works
Linux Kernel Module Programming Guide
Tuesday, April 14, 2009
Tuesday, April 7, 2009
Sunday, April 5, 2009
Common NFS error
Root-NFS: Unable to get nfsd port number from server, using default
Looking up port of RPC 100005/1 on 107.108.71.79
Root-NFS: Unable to get mountd port number from server, using default
mount: server 107.108.71.79 not responding, timed out
Root-NFS: Server returned error -5 while mounting /nfs/cosmos_1302/rootfs_Bala_samba/rootfs
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "nfs" or unknown-block(2,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
Rebooting in 180 seconds..
Soln: NFS on the machine is not started. Restart nfs using the command "service nfs restart"
Looking up port of RPC 100005/1 on 107.108.71.79
Root-NFS: Unable to get mountd port number from server, using default
mount: server 107.108.71.79 not responding, timed out
Root-NFS: Server returned error -5 while mounting /nfs/cosmos_1302/rootfs_Bala_samba/rootfs
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "nfs" or unknown-block(2,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
Rebooting in 180 seconds..
Soln: NFS on the machine is not started. Restart nfs using the command "service nfs restart"
Thursday, April 2, 2009
Redirection Tricks
Now, there are lots of redirection symbols that you can use, and here are some of them:
< file
means open a file for reading and associate with STDIN.
<< token
Means use the current input stream as STDIN for the program until token is seen. We will ignore this one until we get to scripting.
> file
means open a file for writing and truncate it and associate it with STDOUT.
>> file
means open a file for writing and seek to the end and associate it with STDOUT. This is how you append to a file using a redirect.
n>&m
means redirect FD n to the same places as FD m. Eg, 2>&1 means send STDERR to the same place that STDOUT is going to.
< file
means open a file for reading and associate with STDIN.
<< token
Means use the current input stream as STDIN for the program until token is seen. We will ignore this one until we get to scripting.
> file
means open a file for writing and truncate it and associate it with STDOUT.
>> file
means open a file for writing and seek to the end and associate it with STDOUT. This is how you append to a file using a redirect.
n>&m
means redirect FD n to the same places as FD m. Eg, 2>&1 means send STDERR to the same place that STDOUT is going to.
Subscribe to:
Posts (Atom)