单选题What command would an operator use to move a file from the /old_dir directory to the /new_dir directory without changing the file name?()A mv /old_dir/file /new_dirB mv -p /old_dir/file /new_dirC mv -k /old_dir/file /new_dirD mv /old_dir/file /new_dir/

题目
单选题
What command would an operator use to move a file from the /old_dir directory to the /new_dir directory without changing the file name?()
A

mv /old_dir/file /new_dir

B

mv -p /old_dir/file /new_dir

C

mv -k /old_dir/file /new_dir

D

mv /old_dir/file /new_dir/new_file


相似考题
更多“单选题What command would an operator use to move a file from the /old_dir directory to the /new_dir directory without changing the file name?()A mv /old_dir/file /new_dirB mv -p /old_dir/file /new_dirC mv -k /old_dir/file /new_dirD mv /old_dir/file /new_dir/”相关问题
  • 第1题:

    What command would an operator use to move a file from the /old_dir directory to the /new_dir directory without changing the file name?()

    A. mv /old_dir/file /new_dir

    B. mv -p /old_dir/file /new_dir

    C. mv -k /old_dir/file /new_dir

    D. mv /old_dir/file /new_dir/new_file


    参考答案:A

  • 第2题:

    What command would an operator use to move a file from the /old_dir directory to the /new_dir directory without changing the file name?()

    • A、mv /old_dir/file /new_dir
    • B、mv -p /old_dir/file /new_dir
    • C、mv -k /old_dir/file /new_dir
    • D、mv /old_dir/file /new_dir/new_file

    正确答案:A

  • 第3题:

    How can a directory be excluded from a mksysb backup()

    • A、Put an entry in the /etc/exclude.rootvg file.
    • B、Put an entry in the /etc/mksysb.exclude file.
    • C、Remove the directory’s entry from the mksysb /image.data file.
    • D、Remove the directory’s entry from the /var/adm/ras/bosinst.data file.

    正确答案:A

  • 第4题:

    Given a portion of a valid Java EE web application’s directory structure:MyApp | |--Directory1 ||--File1.html| |--META-INF|  |--File2.html| |--WEB-INF |--File3.html You want to know whether File1.html, File2.html,and/or File3.html is protected from direct access by yourweb client’s browsers. What statement is true?()

    • A、All three files are directly accessible.
    • B、Only File1.html is directly accessible.
    • C、Only File2.html is directly accessible.
    • D、Only File3.html is directly accessible.

    正确答案:B

  • 第5题:

    Which gets the name of the parent directory file “file.txt”?()

    • A、 String name= File.getParentName(“file.txt”);
    • B、 String name= (new File(“file.txt”)).getParent();
    • C、 String name = (new File(“file.txt”)).getParentName();
    • D、 String name= (new File(“file.txt”)).getParentFile();
    • E、 Directory dir=(new File (“file.txt”)).getParentDir();  String name= dir.getName();

    正确答案:B

  • 第6题:

    10. class MakeFile {  11. public static void main(String[] args) {  12. try {  13. File directory = new File(”d”);  14. File file = new File(directory,”f”);  15. if(!file.exists()) {  16. file.createNewFile();  17. }  18. } catch (IOException e) {  19. e.printStackTrace  20. }  21. }  22. }  The current directory does NOT contain a directory named “d.” Which three are true?()

    • A、 Line 16 is never executed.
    • B、 An exception is thrown at runtime.
    • C、 Line 13 creates a File object named “d”.
    • D、 Line 14 creates a File object named “f‟.
    • E、 Line 13 creates a directory named “d” in the file system.
    • F、 Line 16 creates a directory named “d” and a file  “f”  within it in the file system.
    • G、 Line 14 creates a file named "f " inside of the directory named “d” in the file system.

    正确答案:B,C,D

  • 第7题:

    Windows Communication Foundation (WCF) service will be hosted in Microsoft Internet Information Services (IIS).You create a new application in IIS to host this service and copy the service DLL to the bin directory of the application.You need to complete the deployment of this service to IIS. What should you do next?()

    • A、Create an asmx file and add a @ServiceHost directive to this file. Copy the file to the root of the application directory.
    • B、Create an .asmx file and add a @Register directive to this file. Copy the file to the bin directoyy of the application.
    • C、Create a svc file and add a @ServiceHost directive to this file. Copy the file to the root of the application directory.
    • D、Create a .svc file and add a @Register directive to this file. Copy the file to the bin directory of the application.

    正确答案:C

  • 第8题:

    单选题
    Which of the following will occur if an operator types the command vi file.out?()
    A

    If the file exists it will be opened for editing. If the file does not exist an error message will be displayed.

    B

    If the file exists it will be opened for editing. If the file does not exist a new file with the name file.out will be created and opened for editing.

    C

    If the file exists an error message will be displayed. If the file does not exist a new file with the name file.out will be created and opened for editing.

    D

    If the file exists the operator will be asked whether to open the file or overwrite the file. If the file does not exist a new file with the name file.out will be created and opened for editing.


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

  • 第9题:

    单选题
    Given that the current directory is empty, and that the user has read and write privileges to the current directory, and the following: Which statement is true?()
    A

    Compilation fails.

    B

    Nothing is added to the file system.

    C

    Only a new file is created on the file system.

    D

    Only a new directory is created on the file system.

    E

    Both a new file and a new directory are created on the file system.


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

  • 第10题:

    单选题
    When performing a database duplication, which duplicate database parameter would you set to ensure that the online redo logs are created in the correct location?()
    A

     log_file_name_convert

    B

     convert_log_file_name

    C

     file_name_convert_log

    D

     redo_log_file_name_convert

    E

     logfile_convert_directory


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

  • 第11题:

    单选题
    Given a portion of a valid Java EE web application’s directory structure:MyApp | |--Directory1 ||--File1.html| |--META-INF|  |--File2.html| |--WEB-INF |--File3.html You want to know whether File1.html, File2.html,and/or File3.html is protected from direct access by yourweb client’s browsers. What statement is true?()
    A

    All three files are directly accessible.

    B

    Only File1.html is directly accessible.

    C

    Only File2.html is directly accessible.

    D

    Only File3.html is directly accessible.


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

  • 第12题:

    单选题
    Windows Communication Foundation (WCF) service will be hosted in Microsoft Internet Information Services (IIS).You create a new application in IIS to host this service and copy the service DLL to the bin directory of the application.You need to complete the deployment of this service to IIS. What should you do next?()
    A

    Create an asmx file and add a @ServiceHost directive to this file. Copy the file to the root of the application directory.

    B

    Create an .asmx file and add a @Register directive to this file. Copy the file to the bin directoyy of the application.

    C

    Create a svc file and add a @ServiceHost directive to this file. Copy the file to the root of the application directory.

    D

    Create a .svc file and add a @Register directive to this file. Copy the file to the bin directory of the application.


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

  • 第13题:

    An Active Directory database is installed on the C volume of a domain controller. You need to move the Active Directory database to a new volume What should you do()

    • A、Move the ntds,dit file to the new volume by using Windows Explorer.
    • B、Copy the ntds,dit file to the new volume by using the ROBOCOPY command.
    • C、Move the ntds,dit file to the new volume by using the Files option in the Ntdsutil utility .
    • D、Move the ntds,dit file to the new volume by running the Move-item command in Microsoft Windows powerShell.

    正确答案:C

  • 第14题:

    如果要将文件名file1修改为file2,下列命令()可以实现。

    • A、cp file1file2
    • B、mv file1file2
    • C、ls file1>file2
    • D、ll file1>file2

    正确答案:B

  • 第15题:

    Which of the following will occur if an operator types the command vi file.out?()

    • A、If the file exists it will be opened for editing. If the file does not exist an error message will be displayed.
    • B、If the file exists it will be opened for editing. If the file does not exist a new file with the name file.out will be created and opened for editing.
    • C、If the file exists an error message will be displayed. If the file does not exist a new file with the name file.out will be created and opened for editing.
    • D、If the file exists the operator will be asked whether to open the file or overwrite the file. If the file does not exist a new file with the name file.out will be created and opened for editing.

    正确答案:B

  • 第16题:

    After a merger with another small business, your company has inherited a legacy WAR file but the originalsource files were lost. After reading the documentation of that web application,you discover that the WARfile contains a useful tag library that you want to reuse in your own webapp packaged as a WAR file. What do you need to do to reuse this tag library?()

    • A、Simply rename the legacy WAR file as a JAR file and place it in your webapp’s library directory.
    • B、Unpack the legacy WAR file, move the TLD file to the META-INF directory, repackage the whole thingas a JAR file, and place that JAR file in your webapp’s library directory.
    • C、Unpack the legacy WAR file, move the TLD file to the META-INF directory, move the class files to thetop-level directory, repackage the whole thing as a JAR file, and place that JAR file in your webapp’slibrary directory.
    • D、Unpack the legacy WAR file, move the TLD file to the META-INF directory, move the class files to thetop-level directory, repackage the WAR, and place that WAR file in your webapp’s WEB-INF directory.

    正确答案:C

  • 第17题:

    Given that file is a reference to a File object that represents a directory, which code fragments will succeed in obtaining a list of the entries in the directory?()  

    • A、Vector filelist = ((Directory) file).getList();
    • B、String[] filelist = file.directory();
    • C、Enumeration filelist = file.contents();
    • D、String[] filelist = file.list();
    • E、Vector filelist = (new Directory(file)).files();

    正确答案:D

  • 第18题:

    When performing a database duplication, which duplicate database parameter would you set to ensure that the online redo logs are created in the correct location?()  

    • A、 log_file_name_convert
    • B、 convert_log_file_name
    • C、 file_name_convert_log
    • D、 redo_log_file_name_convert
    • E、 logfile_convert_directory

    正确答案:A

  • 第19题:

    单选题
    How can a directory be excluded from a mksysb backup()
    A

    Put an entry in the /etc/exclude.rootvg file.

    B

    Put an entry in the /etc/mksysb.exclude file.

    C

    Remove the directory’s entry from the mksysb /image.data file.

    D

    Remove the directory’s entry from the /var/adm/ras/bosinst.data file.


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

  • 第20题:

    单选题
    After a merger with another small business, your company has inherited a legacy WAR file but the originalsource files were lost. After reading the documentation of that web application,you discover that the WARfile contains a useful tag library that you want to reuse in your own webapp packaged as a WAR file. What do you need to do to reuse this tag library?()
    A

    Simply rename the legacy WAR file as a JAR file and place it in your webapp’s library directory.

    B

    Unpack the legacy WAR file, move the TLD file to the META-INF directory, repackage the whole thingas a JAR file, and place that JAR file in your webapp’s library directory.

    C

    Unpack the legacy WAR file, move the TLD file to the META-INF directory, move the class files to thetop-level directory, repackage the whole thing as a JAR file, and place that JAR file in your webapp’slibrary directory.

    D

    Unpack the legacy WAR file, move the TLD file to the META-INF directory, move the class files to the top-level directory, repackage the WAR, and place that WAR file in your webapp’s WEB-INF directory.


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

  • 第21题:

    单选题
    Which gets the name of the parent directory file “file.txt”?()
    A

     String name= File.getParentName(“file.txt”);

    B

     String name= (new File(“file.txt”)).getParent();

    C

     String name = (new File(“file.txt”)).getParentName();

    D

     String name= (new File(“file.txt”)).getParentFile();

    E

     Directory dir=(new File (“file.txt”)).getParentDir();  String name= dir.getName();


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

  • 第22题:

    单选题
    An Active Directory database is installed on the C volume of a domain controller. You need to move the Active Directory database to a new volume What should you do()
    A

    Move the ntds,dit file to the new volume by using Windows Explorer.

    B

    Copy the ntds,dit file to the new volume by using the ROBOCOPY command.

    C

    Move the ntds,dit file to the new volume by using the Files option in the Ntdsutil utility .

    D

    Move the ntds,dit file to the new volume by running the Move-item command in Microsoft Windows powerShell.


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

  • 第23题:

    单选题
    Given that file is a reference to a File object that represents a directory, which code fragments will succeed in obtaining a list of the entries in the directory?()
    A

    Vector filelist = ((Directory) file).getList();

    B

    String[] filelist = file.directory();

    C

    Enumeration filelist = file.contents();

    D

    String[] filelist = file.list();

    E

    Vector filelist = (new Directory(file)).files();


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

  • 第24题:

    单选题
    What command would an operator use to move a file from the /old_dir directory to the /new_dir directory without changing the file name?()
    A

    mv /old_dir/file /new_dir

    B

    mv -p /old_dir/file /new_dir

    C

    mv -k /old_dir/file /new_dir

    D

    mv /old_dir/file /new_dir/new_file


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