相关考题
-
单项选择题
对以下程序运行成功时描述正确的是()。#include < stdio.h>#include < stdlib.h>#include < unistd.h>#include < sys/types.h>main() { pid_t pid; if((pid=fork())==-1) { perror(“fork”); exit(EXIT_FAILURE); } printf(“hello\\n”); return 0;}
A.只有父进程输出一个hello
B.父进程先输出一个hello,子进程再输出一个hello
C.父子进程各输出一个hello
D.只有子进程输出一个hello -
单项选择题
关于如下命令和其结果,不正确的叙述是?()root@ubuntu:~# ls / -ail2 drwxr-xr-x 23 root root 4096 3月24 16:07 .2 drwxr-xr-x 23 root root 4096 3月24 16:07 ..3407873 drwxr-xr-x 2 root root 4096 10月28 2015 bin
A.bin是目录
B.bin目录的所有者是root、用户所属组是root
C.当前目录是不是根目录
D.3407873是bin的inode结点编号 -
单项选择题
在默认状态下,对应文件不是系统标准I/O设备的文件描述符是()。
A.2
B.1
C.3
D.0
