niusouti.com

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

题目

Which UNIX command creates a symbolic link named myfile in the current directory to the file/etc/hosts?

A.In -s/etc/hosts myfile

B.In -s myfile/etc/hosts

C.link -s/etc/hosts myfile

D.link -s myfile/etc/hosts


相似考题
更多“Which UNIX command creates a symbolic link named myfile in the current directory to the fi ”相关问题
  • 第1题:

    在UNIX操作系统中,当用户执行如下命令:

    link(“/user/include/myfile.Sh”, “/usr/userwang/youfile.sh”)

    则文件名“/usr/userwang/youfile.sh”存放在(44)。

    2.假设在系统中一个文件有两个名字,它与一个文件保存两个副本的区别是(45)。

    A.user目录文件中

    B.include目录文件中

    C.userwang目录文件中

    D.youfile.sh的文件内容中


    正确答案:C

  • 第2题:

    3.函数 将输出重定向到文件myfile中。 A.sink("myfile") B. library("myfile") C. setwd("myfile") D. write("myfile")


    ls>>file1

  • 第3题:

    要获取当前目录下的所有文件,要采用下面的方法:

    A.Directory.GetLogicalDrives()

    B.Directory.GetDirectories()

    C.Directory.GetFiles()

    D.Directory.GetCurrentDirectory()


    Directory.GetCurrentDirectory()

  • 第4题:

    在UNIX操作系统中,当用户执行如下命令Link("/user/include/myfile.sh","/usr/userwang /youfile.sh")则文件名"/usr/userwang/youfile.sh"存放在(21)。

    A.user目录文件中

    B.include目录文件中

    C.userwang目录文件中

    D.youfile.sh的文件内容中


    正确答案:C
    link命令属于文件系统调用,主要是为了实现文件共享。它有两个参数:path1和path2。path1是源文件名称,path2是新建立的目录文件名称。link命令的实质是为文件建立一个新的目录项,增加一个新的路径名。如题所示的link命令,就是使用户userwang可以使用“/user/userwang/youfile.sh”路径名对“/user/include”路径下的myfile.sh进行访问。

  • 第5题:

    在Java语言中,若myFile是类File的一个对象,下面正确的有()。

    A.myFile.getPath()

    B.new File(myFile.getAbsolutePath()).getParent()

    C.myFile.isDirectory()

    D.myFile.isHidden()

    E.myFile.length()


    myFile.getPath();new File(myFile.getAbsolutePath()).getParent();myFile.isDirectory();myFile.isHidden();myFile.length()

  • 第6题:

    58、在Java语言中,若myFile是类File的一个对象,下面正确的有()。

    A.myFile.getPath()

    B.new File(myFile.getAbsolutePath()).getParent()

    C.myFile.isDirectory()

    D.myFile.isHidden()

    E.myFile.length()


    myFile.getPath();new File(myFile.getAbsolutePath()).getParent();myFile.isDirectory();myFile.isHidden();myFile.length()