分享
 
 
 

An interview examination of AC company for Unix programmer?

王朝system·作者佚名  2006-01-09
窄屏简体版  字體: |||超大  

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?(for example: platform, hardware name, OS name, release level, kernel version)

2、 please give the command line to check whether the process “portmap” is running or not.

3、 How to archive several files into one archive file, and also How to extract them back?please give the command 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 is little-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 following 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、 用什么名录检查端口被占据了?

13、 Forc()和Exec()的区别?

14、 以下函数的功能是什么?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(用正则表达式)

16、 怎样解决如下错误。

Error 328: “USBPort.cpp” line 116# Fundation ‘frec’ has not been define yet; cannot call frec((char*) (pdictionname));

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 following 4 platforms . Linux;Solarix;HP;AIX;

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 <iostream.h>

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 will use to debug a daemon processor a child process (Using “gdb” for instance)?

28、用C,将多字节字符复制到buffer character中,不要一个字节一个字节的复制,要一个字符一个字符的。

29、#define ToUpper(a) ((a)>=’a’ && ((a)<=’z’)? ((a)-(‘a’-‘A’)) : (a)); 修改之。

30、please write a program that create a child process and wait till 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()/accept()/forc()/revc()/close(),

a: 使用以上函数写出一个程序

b: 画一个流程图或写一些伪代码来说明你的意图。

33、写一个样例程序,父进程用一个管道写了一个”hello world”,子进程从这个管道读取” hello world”

34、

35、in a socket server, how can I listen to more than one port,同时?

36、什么时候创建RPC

a: 再定义文件中,你通常要写入什么内容

b: 产生 stub文件,你将使用何种工具?

c: 创建完stub后,which stub files get generated?

37、写一个Makefile 文件,满足一下条件

38、Draw a program a flowchart or write pseudo codes include all steps needed to create ‘daemon’and explain the meaning of your steps.

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有