ANTERVIEW EXAMINATION OF AC Company for Unix Programmer?

xiaoxiao2021-03-06  14

Those stuff are the questions testing for Unix / Linux grogrammer. I have little experience on UNIX, who can figure out the anwsers? I recited those questions because I thought I should not waste the chance for studying new skills. Also, I can find out Some Results of Those. MeanWhile, You Can Guess the Company's name!

1, Which Command Can Be Used to Show Information About Your Current UNIX / Linux System, Hardware Name, OS Name, Release Level, Kernel Version

2, please give the commit "portmap" is running or not.

3, How to Archive SEVERAL FILES INTO One Archive File, And Also How To Extract The Back and The Parameters Needed to Perform The Above Two Operations.

4, in Unix / Linux System, How To Share A System Environment Variable To All Users Even After A Reboot.

5, How to Search All Files on Your Unix / Linux Machine Which Name Contain "conf"?

6, Which command Will you use to check the free disk space of volume "/ opt"?

7, what is big endian and what limited-endian?

8, What "VI", How Can I Specify That Only Compile A Program But Not Link IT?

9, using "vi" editor, please tell out the meaning of folload vi command "p", "x", "n", "w"?

10, What's the meaning of $? $ 0, $$, $ *, in shell script?

11, Which Command You Use to See the IP Address On Your Unix / Linux Machine? Which command to see the route Table.

12. What is the list of inspection ports to be occupied?

13. Differences between FORC () and EXEC ()?

14, what is the function of the following functions? Htons () / NTOHS () / HTONL () / NTOHL ();

15. Please Write The Command That List's All The Files Which FileName Save Not Begin with Character, A-O Under Currently Directory (with a regular expression) 16, how to solve the following error.

Error 328: "USBPORT.CPP" LINE 116 # FUNDATION 'FREC' HAS NOT BEEN Define YET; Cannot Call Frec ((Char *));

17, in a Linux shell script, how to catch the keyboard Event "Ctrl C", and call the processing function "interruptprocess ()"?

18, How to redirect Both Standard Output and standard error to /root/output.log?

19, you want to know Wether A Package "Hinutils" is installed or not, please write the command you will use for the folload 4 platage systems. Linux; solarix; hp;

20. How to enable Debug Mode in Shell Script?

21, IF a binary gives out a core dump, how to determine Which binary caused the core error?

22, Which One SHOULD BE CALLED WHEN To Quit A Child Process, EXIT () OR _EXIT () AND why?

24, In a Program, How to ignore the child process termination signal?

25, What's The Output of the Following Code: What Is Wrong With THIS C Code to Do Swapo Value of Two Variable? Please FIX IT:

#include

Void swap (int, int);

Void main (void)

{

INT A = 5, b = 10

SWAP (A, B);

COUT << "a =" << a << endl;

COUT << "b =" << b << endl;

}

Void SWAP (Int A, INT B)

{

INT TEMP = a;

A = B;

B = TEMP;

}

26, What is Difference Of inline and the macro?

#define my (Type, Member) ((SIZE_T) & ((TYPE *) 0) -> MEMBER)

27, please describe what method you would use to debug a daemon processor a child process (use "gdb" for instance)?

28, use c, copy the multi-byte characters to the buffer character, do not copy one byte by one byte, you want a character. 29, # define Toupper (a) ((a)> = 'a' && ((a) <= 'z')? ((A) - ('A' - 'A')): (a)); Modified.

30, plete Write a Program That Create a Child Process Printing Out Hell Message.

31. How to list / remove The Active IPC Objects (Messagesm Semaphores, Share Memory) In Current System Using Shell Command and How To Remove The IPC Object Using UNIX C Functions.

32, listen () / bind () / socket () / send () / acception () / forc () / revc () / close (),

A: Write a program with the above function

B: Draw a flowchart or write some pseudo code to explain your intentions.

33. Write a sample program, the parent process wrote a "Hello World" with a pipe, and the child process reads "Hello World" from this pipeline.

34,

35, in A Socket Server, How Can I Listen To More Than One Port,

36, when will I create RPC?

A: What is usually written in a represented file?

B: Produce a stub file, what tool you will use?

C: After Creating Stub, Which Stub files get generated?

37. Write a Makefile file to meet the conditions

38, Draw A Program A Flowchart Or Write Pseudo Codes include all steps needed to create 'daem'and explain the meaning of your set.

转载请注明原文地址:https://www.9cbs.com/read-47980.html

New Post(0)