网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

在Unix系统中,Shell程序(57)实现显示用户主目录以及当前命令的进程标识符。

A.echo UserHome directory:$LOGNAME echo Current shell's PID:$$

B.echo UserHome directory:$HOME echo Current shell's PID:$@

C.echo UserHome directory:$LOGNAME echo Current shell's PID:$@

D.echo UserHome directory:$HOME echo Current shell's PlD:$$


参考答案

更多 “ 在Unix系统中,Shell程序(57)实现显示用户主目录以及当前命令的进程标识符。A.echo UserHome directory:$LOGNAME echo Current shell's PID:$$B.echo UserHome directory:$HOME echo Current shell's PID:$@C.echo UserHome directory:$LOGNAME echo Current shell's PID:$@D.echo UserHome directory:$HOME echo Current shell's PlD:$$ ” 相关考题
考题 在UNIX操作系统中,若用户键入的命令参数的个数为1时,执行cat$l命令;若用户键入的命令参数的个数为2时,执行cat>>$2<$1命令。请将下面所示的Shell程序的空缺部分补齐。Case (25) in1)cat$1 ;;2)cat>>S2<$1:;*)echo‘default...’esacA.$$B.$@C.$#D.$*

考题 ●在UNIX操作系统中,若用户键入的命令参数的个数为1时,执行cat$1命令;若用户键入的命令参数的个数为2时,执行cat$2$1命令。请将下面所示的Shell程序的空缺部分补齐。case (51) in1)cat$1;;2)cat$2$1;;*)echo# 'default……'esac(51) A.$$B.$@C.$#D.$*

考题 运行时不会创建子进程的方式是()A.赋予shell程序文件可执行权限,直接运行shell程序(外部命令)B.调用命令解释器解释执行shell程序(Shell函数)C.使用source命令执行shell程序(内部命令)D.用()将多条命令括起来而形成的复合命令执行

考题 Which UNIX command creates a symbolic link named myfile in the current directory to the file/etc/hosts?A.In -s/etc/hosts myfileB.In -s myfile/etc/hostsC.link -s/etc/hosts myfileD.link -s myfile/etc/hosts

考题 显示单个SHELL变量的命令是( )。 A.setB.envC.unsetD.echo

考题 在UNIX系统中,Shell程序(21)实现显示用户主目录以及当前命令的进程标识符。A.echo UserHome directory:$LOGNAME echo Current shell's PID:$$B.echo UserHome directory:$HOME echo Current shell'PID:$@C.echO UserHOme directOIy:$LOGNAME echo Current shell'sPID:$@D.echo UserHome directory:$HOME echo Current shell'sPID:$$

考题 显示用户的主目录的命令是什么()A.echo$HOMEB.echo$USERDIRC.echo$ECHOD.echo$ENV

考题 在UNIX系统中,Shell程序______实现显示用户主目录以及当前命令的进程标识符。A.echo UserHome directorY:$LOGNAMEecho Carrent shell'Ss PID:$$B.echo UserHome directory:$HOMEecho Carrent shell'PID:$@C.echo UserHome directory:$LOGNAMEecho Carrent shell's PID:$@D.echo UserHome directory:$HOMEecho Carrent shell's PID:$$A.B.C.D.

考题 在UNIX操作系统中,以下Shell程序实现当用户键入的命令参数的个数为1时,执行cat$1命令;若用户键入的命令参数的个数为2时,执行cat>>$2<$1命令。 case(36)in 1)cat $1;; 2)cat>>$2<$1;; *)echo ‘default...’ esacA.$!B.$*C.$#D.$@

考题 在UNIX操作系统中,若用户键入的命令参数的个数为1时,执行cat $1命令;若用户键入的命令参数的个数为2时,执行cat>>$2<$1命令。请将下面所示的Shell程序的空缺部分补齐。 case(1)in 1)cat $1;; 2)cat>>$2<$1 *)echo 'default...' esacA.$$B.$@C.$#D.$*

考题 An operator wants to move all files inside the directory /home/operator to the current directory. Which of the following commands will complete the task?() A. mv /home/operator .B. mv /home/operator/* .C. mv /home/operator ../..D. mv /home/operator/all ../home/operator

考题 在UNIX系统中,Shell程序(19)实现显示用户主目录以及当前命令的进程标识符。A.cho UserHome directory:$LOGNAME echo Carrent shell's PID:$$B.echo UserHome directory:$HOME echo Carrent shell's PID:$@C.echo UserHome directory:$ LOGNAME echo Carrent shell's PID:S@D.echo UserHome directory:$HOME echo Carrent shell's PID:$$

考题 查找/etc下文件内容中以shell开头或以shell结尾,且与shell大小写无关的文件及其相应行(不包括错误信息和父目录),以下命令正确的是()。A、grep –s -I -E、“^shellB、grep –s -E、“^shellC、grep –s -i “^shellD、grep -I -E、“^shell

考题 关于常用Linux环境变量的用途,下列说法中,正确的是()A、PATH变量决定了shell将到哪些目录中寻找命令和程序B、HOME变量制定了当前用户的主目录C、SHELL变量记录了当前用户使用的是哪种ShellD、LOGNAME变量记录了当前用户的登录名E、HISTSIZE变量指定了保存历史命令记录的条数

考题 linux系统中,以下显示结果相同的是()。A、echo The current working path is $PWD.B、echo "The current working path is $PWD." Echo helloC、echo 'The current working path is $PWD.' Echo helloD、echo "The current working path is `pwd`."E、echo The current working path is $PWD. Echo hello

考题 下面有关shell的说法正确的是()。A、shell是linux核心程序B、shell是操作员使用的程序C、shell是用户与Linux操作系统内核之间的接口D、shell是Windows的命令行程序

考题 运行时不会创建子进程的方式是()。A、赋予shell程序文件可执行权限,直接运行shell程序(外部命令)B、调用命令解释器解释执行shell程序(Shell函数)C、使用source命令执行shell程序(内部命令)D、用()将多条命令括起来而形成的复合命令执行

考题 linux系统中,以下显示结果不同的是()。A、echo The current working path is $PWD.B、echo 'The current working path is $PWD.'C、echo "The current working path is $PWD."D、echo "The current working path is `pwd`."

考题 关于Unix系统不正确的叙述是:()。A、Unix由内核和外壳两部分组成B、系统程序在核心态运行C、终端用户通过shell使用系统D、仅当一条shell命令执行完成以后,才能打入下一条shell命令

考题 An operator wants to move all files inside the directory /home/operator to the current directory. Which of the following commands will complete the task?()A、mv /home/operator .B、mv /home/operator/* .C、mv /home/operator ../..D、mv /home/operator/all ../home/operator

考题 A user would like their shell prompt to reflect the current directory. Which of the following environment variables can be set to accomplish this?()A、PS1B、PATHC、PROMPTD、LOCPATH

考题 在linux环境下通过下面哪个命令得到当前使用shell的类型()。A、shellB、echo $SHELLC、echo $shellD、disenv

考题 eCho命令可以用来显示?()A、参数B、文本字符C、过滤内容D、shell变量

考题 使用下面的哪条命令,可以显示当前正在使用的shell的PATH变量()。A、environmentB、echo$pathC、echo$PATHD、echo$environment

考题 What is the correct command to display the current working directory?()A、echo $PWDB、echo $pwdC、echo $CWDD、echo $cwd

考题 单选题关于Unix系统不正确的叙述是:()。A Unix由内核和外壳两部分组成B 系统程序在核心态运行C 终端用户通过shell使用系统D 仅当一条shell命令执行完成以后,才能打入下一条shell命令

考题 多选题linux系统中,以下显示结果相同的是()。Aecho The current working path is $PWD.Becho The current working path is $PWD. Echo helloCecho 'The current working path is $PWD.' Echo helloDecho The current working path is `pwd`.Eecho The current working path is $PWD. Echo hello