niusouti.com
更多“在一个bash shell脚本的第一行上应加入下面所示中的哪一条语句。() A. #/bin/cshB. #/bin/bashC. /bin/bashD. #!/bin/bash”相关问题
  • 第1题:

    An operator is asked to verify the exact location of the default JRE binary. The following commands were run:$ which java /usr/bin/java$ ls -l /usr/bin/javalrwxrwxrwx 1 root other 23 Jan 27 2006 /usr/bin/java -> ../jre1.5.0_06/bin/javaBased on the command outputs above, what is the path to the java executable file?()

    A. /usr/bin/java

    B. /usr/jre1.5.0_06/bin/java

    C. /usr/bin/jre1.5.0_06/bin/java

    D. /usr/bin/java/jre1.5.0_06/bin/java


    参考答案:B

  • 第2题:

    写出在/bin目录中查找名为bash的文件的命令。


    正确答案:Find /bin –name bash –print

  • 第3题:

    在Linux系统中,有大量的软件安装包存在,那么查看/bin/tar文件的安装软件包的命令为:()

    • A、rpm–qi/bin/tar
    • B、rpm–ql/bin/tar
    • C、rpm–qf/bin/tar
    • D、rpm–ivh/bin/tar

    正确答案:C

  • 第4题:

    在/etc/passwd中某一行信息为“linux01:x:505:505:/home/linux12: /bin/bash”,由此可知哪些信息?


    正确答案: 根据/etc/passwd文件中各字段的含义,可知此行表示一位用户,名为linux01,UID为505,GID也是505,其用户的工作主目录为/home/linux12,用户登录成功后使用的shell是Bash。

  • 第5题:

    加载动态语音文件时,需要把动态语音文件放置在OMU的()目录下。

    • A、C、/bam/bin/new
    • B、C、/bam/bin/tone
    • C、C、/bam/bin/tonepatch
    • D、D、/bam/bin/patch

    正确答案:C

  • 第6题:

    Solaris中的Bourne shell的路径是()

    • A、/bin/sh
    • B、/bin/csh
    • C、/bin/ksh
    • D、/bin/rsh

    正确答案:A

  • 第7题:

    Which command will change the user webserver’s shell toksh93?()

    • A、chshell -ksh93 webserver
    • B、chsh webserver /usr/bin/ksh93
    • C、chuser -a shell=/usr/bin/ksh93 webserver
    • D、setuid -a SHELL=/usr/bin/ksh93 -u webserver

    正确答案:B

  • 第8题:

    When run on a machine called client, which of the following commands will mount the /usr/local/bin directory from the host over the /home/bin directory on client?()

    • A、mount host:/home/bin /usr/local/bin
    • B、mount client:/home/bin /usr/local/bin
    • C、mount -n host /usr/local/bin /home/bin
    • D、mount -o host:/usr/local/bin /home/bin

    正确答案:C

  • 第9题:

    单选题
    在Linux系统中,有大量的软件安装包存在,那么查看/bin/tar文件的安装软件包的命令为:()
    A

    rpm–qi/bin/tar

    B

    rpm–ql/bin/tar

    C

    rpm–qf/bin/tar

    D

    rpm–ivh/bin/tar


    正确答案: D
    解析: 暂无解析

  • 第10题:

    单选题
    在Linux系统中的脚本文件一般以什么开头?()
    A

    $/bin/sh

    B

    #!/bin/sh

    C

    use/bin/sh

    D

    set shell=/bin/sh


    正确答案: D
    解析: linux中的shell以#开头来指定解释程序,例如#!/bin/bash,指定bash来解释脚本。

  • 第11题:

    问答题
    在/etc/passwd中某一行信息为“linux01:x:505:505:/home/linux12: /bin/bash”,由此可知哪些信息?

    正确答案: 根据/etc/passwd文件中各字段的含义,可知此行表示一位用户,名为linux01,UID为505,GID也是505,其用户的工作主目录为/home/linux12,用户登录成功后使用的shell是Bash。
    解析: 暂无解析

  • 第12题:

    单选题
    在一个bashshell脚本的第一行上应加入下面所示中的哪一条语句。()
    A

    #/bin/csh

    B

    #/bin/bash

    C

    /bin/bash

    D

    #!/bin/bash


    正确答案: D
    解析: 暂无解析

  • 第13题:

    Solaris中的Bourne shell的路径是()

    A./bin/sh

    B./bin/csh

    C./bin/ksh

    D./bin/rsh


    参考答案:A

  • 第14题:

    奔富Bin系列里,被称为“小葛兰许”的一款葡萄酒是()。

    • A、Bin 28
    • B、Bin 95
    • C、Bin 389
    • D、Bin 407

    正确答案:C

  • 第15题:

    在Linux系统中的脚本文件一般以什么开头?()

    • A、$/bin/sh
    • B、#!/bin/sh
    • C、use/bin/sh
    • D、set shell=/bin/sh

    正确答案:B

  • 第16题:

    在一个bashshell脚本的第一行上应加入下面所示中的哪一条语句。()

    • A、#/bin/csh
    • B、#/bin/bash
    • C、/bin/bash
    • D、#!/bin/bash

    正确答案:D

  • 第17题:

    center linux下,查看/bin/tar文件的安装软件包的命令为:rpm–qf/bin/tar()

    • A、rpm–qf/bin/tar
    • B、rpm–qf
    • C、rpm–q/bin/tar
    • D、rpm–qi/bin/tar

    正确答案:A

  • 第18题:

    Which of the following commands makes /bin/foo executable by everyone but writable only by its owner?()

    • A、 chmod 557 /bin/foo
    • B、 chmod o+rwx.a+rx/bin/foo
    • C、 chown 557 /bin/foo
    • D、 chmod 755/bin/foo

    正确答案:D

  • 第19题:

    An operator is asked to verify the exact location of the default JRE binary. The following commands were run: $ which java /usr/bin/java $ ls -l /usr/bin/java lrwxrwxrwx 1 root other 23 Jan 27 2006 /usr/bin/java -> ../jre1.5.0_06/bin/java Based on the command outputs above, what is the path to the java executable file?()

    • A、/usr/bin/java
    • B、/usr/jre1.5.0_06/bin/java
    • C、/usr/bin/jre1.5.0_06/bin/java
    • D、/usr/bin/java/jre1.5.0_06/bin/java

    正确答案:B

  • 第20题:

    红帽企业版中默认的shell是/bin/sh的程序。


    正确答案:正确

  • 第21题:

    问答题
    写出在/bin目录中查找名为bash的文件的命令。

    正确答案: Find /bin –name bash –print
    解析: 暂无解析

  • 第22题:

    单选题
    An operator is asked to verify the exact location of the default JRE binary. The following commands were run: $ which java /usr/bin/java $ ls -l /usr/bin/java lrwxrwxrwx 1 root other 23 Jan 27 2006 /usr/bin/java -> ../jre1.5.0_06/bin/java Based on the command outputs above, what is the path to the java executable file?()
    A

    /usr/bin/java

    B

    /usr/jre1.5.0_06/bin/java

    C

    /usr/bin/jre1.5.0_06/bin/java

    D

    /usr/bin/java/jre1.5.0_06/bin/java


    正确答案: D
    解析: 暂无解析

  • 第23题:

    单选题
    Solaris中的Bourne shell的路径是()
    A

    /bin/sh

    B

    /bin/csh

    C

    /bin/ksh

    D

    /bin/rsh


    正确答案: A
    解析: 暂无解析