A.auto.u
B.inst.data
C.bos.autoi
D.bosint.data
第1题:
import java.io.*;
import java.util.*;
public class FileClass {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
try{
File file=new File(args[0]);
System.out.println(args[0]+"文件");
if(file.isFile()){
//是否为文件
System.out.print(file.canRead()?"可读":"不可读");
System.out.print(file.canWrite()?"可写":"不可写");
System.out.print(file.length()+"字节");//注意不能调用数组类型 File[] 的 length()例:File[] files=file.listFiles();不可以这么调用filess.length()
}
else{
//列出所有文件及目录
File[] files=file.listFiles();
ArrayList<File> fileList=new ArrayList<File>();
for(int i=0;i<files.length;i++){
//先列出目录
if(files[i].isDirectory()){
//是否为目录
//取得路径名
System.out.println("路径"+"[ "+files[i].getPath()+" ]");
}
else{
//文件先存入fileList,待会再列出
fileList.add(files[i]);
}
}
//列出文件
for(File f:fileList){
System.out.println(f.toString());
}
System.out.println();
}
}
catch(ArrayIndexOutOfBoundsException e){
System.out.println("using:java FileDemo pathname");
}
}
}
结果:using:java FileDemo pathname
是不是创建的对象所代表的文件没有被创建成功
File file=new File(args[0]); 就是创建一个args[0]所指文件路径的文件对象。出现异常的原因是:你把args[0]作为文件路径,而你运行时又没有指定。
第2题:
A. ./script.ksh
B. nohup ./script.ksh
C. run -b ./script.ksh
D. ./script.ksh > nohup.out
第3题:
Your network consists of a single Active Directory domain. The functional level of the domain is Windows Server 2003. All servers run Windows Server 2003 Service Pack 2 (SP2). The network contains 10 file servers. Each file server hosts a share named Apps.On each file server, a local group named App-install-local has permissions to the Apps share. A global group named App-install-global belongs to the App-install-local group on each file server. App-install-global is used only to control permissions for the Apps share.You create a global group named Helpdesk.You need to provide the Helpdesk group access to the Apps share on each file server. The Helpdesk group must have the same permissions as the App-install-global group. You must achieve this goal by using the minimum amount of administrative effort.What should you do? ()
A. Add the Helpdesk group to the App-install-global group.
B. Add the Helpdesk group to the App-install-local group on each file server.
C. Convert the App-install-global group to a universal group. Add the App-install-global group to the Helpdesk group.
D. Convert the Helpdesk group to a universal group. Add the Helpdesk group to the App-install-local group on each file server.
第4题:
TheadministratorwantstobackuptheexistingVIOserversoftwareanditscurrentconfigurationbeforeapplyinganupdate.WhatcommandwilltheadministratorusetobackuptheVIOserversoftwaresothatthebackupcanberestoredfromaNetworkInstallationManager(NIM)serveroraHardwareManagementConsole(HMC)?()
A.mksysb-tvio/mountpoint
B.backupios-file/mountpoint
C.mksysb-i/mountpoint/vio.mksysb
D.backupios-mksysb-file/mountpoint/vio.mksysb
第5题:
A.FromWindowsPowerShell,runtheAdd-WindowsFeaturecmdlet.
B.FromWindowsPowerShell,runtheInstall-TransportAgent.ps1script.
C.Atthecommandprompt,runSetup.com/M:Install/R:Ht.
D.Atthecommandprompt,runServerManagerCmd.exe-IPExchange-HUb.xml.
第6题:
能够在AD15的工作面版管理中找到System,打开Files面板,截图提交。