Unix FAQ
How can you boot a solaris box interactively? i.e.
it will ask you question before you load it and
boot -a ---------------------------------------------------------------- What is the following program doing... #include <stdio.h> struct addr
struct list
typedef struct list nodes[2]; nodes gbl_list; function(int rtype, char *who)
adr1 = (struct addr *)malloc(sizeof(struct addr));
adr1->next = gbl_list[rtype].adr;
} main()
function(0, "meerut.rpc");
} Though may seem complicated peice of code, this code does some pretty simple task, without bothering much. It adds a node to the head of the linked list. Useful
in conditions where you have to maintain a linked list by quantities e.g.
Though I don't call it the right type of coding to practice.
It does very well in disguising itself and confusing others. Remember
---------------------------------------------------------------- I want an unix command that will search for an executable file(bits) in all the direstories. eg, I have an executable of notepad stored in unix. and now I want to locate this executable and get a copy of it. (how to I diffrentiate between a normal file and an executable file) The find command has a -perm option that follows the chmod command. For example, this find . -perm 777 -print finds all the files in the current directory structure where the permissions are read-write-execute for everybody.
See Also
Have a Unix Problem
Unix Books :-
Return to : - Unix System Administration Hints and Tips (c) www.gotothings.com All material on this site is Copyright.
|