网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
下面哪条命令可用来确保文件“myfile”存在()
- A、cp myfile /dev/null
- B、touch myfile
- C、create myfile
- D、mkfile myfile
参考答案
更多 “下面哪条命令可用来确保文件“myfile”存在()A、cp myfile /dev/nullB、touch myfileC、create myfileD、mkfile myfile” 相关考题
考题
下面创建一个新文件对象方法错误的是( )。A.File myFile; myFile=new File("mulu/file");B.File myFile=new File();C.myFile=new FileC/mulu","filel");D.File myDir=new file("/mulu"); myFile=new File(Dir, "filer');
考题
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
考题
下面哪条命令可用来确保文件“my file”存在()。A.cpmyfile/dev/nullB.touch my fileC.create my fileD.mkfile my file
考题
对桌面的一个文件夹Myfile进行操作,下面说法正确的是()。
A.双击鼠标右键可将文件夹Myfile打开B.单击鼠标右键可将文件夹Myfile打开C.双击鼠标左键可将文件夹Myfile打开D.单击鼠标左键可将文件夹Myfile打开
考题
以下不能正确创建输出文件对象并使其与磁盘文件相关联的语句是A.ofstream myfile:myfile, open("d:ofile.txt");B.ofstream *myfile=new ofstream;myfile->open("d;ofile.txt");C.ofstream myfile("d:ofile.txt");D.ofstream *myfile=new ("d:ofile.txt");
考题
以下不能正确创建输出文件对黎并使其与磁盘文件相关联的语句是( )。A.ofstreammyfile;myfile.open("d:ofile.txt");B.ofstream*myfile=newofstream;myfile-open("d:ofile.txt”);C.ofstreammyfile("d:ofile.txt");D.ofstream*myfile=new("d:ofile.txt");
考题
请把下述代码加上异常处理。int MyWriteFile(CString strFileName, CString strText){int nRet = 0;CFile myFile;myFile.Open(strFileName, CFile::modeWrite|CFile::shareExclusive|CFile::modeCreate,NULL);int nLen = strText.GetLength();myFile.Write((char*)(LPCSTR)strText, nLen);myFile.Close();return nRet;}
考题
在RHEL5系统中,执行ls-l myfile 命令后显示结果如下:-rwxr--r-- l root root 0 Mar 20 19:21 myfile则属于root组的用户lisi 对文件myfile 具有()权限。
A. 可读可写B. 可读可执行C. 只读D. 可读可写可执行
考题
拷贝mydir\myfile文件到dir2目录下,但是系统提示这个文件已经存在,下面那个命令是正确的()?
A、cp-wmydir\myfiledir2B、cp-imydir\myfiledir2C、cpmydir\myfiledir2D、cp-vmydir\myfiledir2
考题
为了将当前目录下的归档文件myfile.Tar.gz解压缩到/tmp目录下,可以使用( )命令。A、tar xzvf myfile.tar.gz-C /tmpB、tar xzvf myfile.tar.gz-R /tmpC、tar zvf myfile.tar.gz-X /tmpD、tar xzvf myfile.tar.gz /tmp
考题
用COPY命令打印当前盘当前路径下的MYFILE.PRG文件,正确的命令是()。ACOPYMYFILE.PRGPRNBCOPYMYFILE.PRGPRNCCOPYPRNMYFILE.PRGDCOPYPRNMYFILE.PRG
考题
Using vi, you want to save changes to the file myfile with :w!, but vi complains it cannot write to the file. Therefore, you want to check the write permissions on the file. To do this without leaving vi, you type:()A、 :!ls-I myfileB、 :/ls-l myfileC、 esc :Is -I myfileD、 :?ls-l myfile
考题
You are administering a database stored in Automatic Storage management (ASM). The files are storedin the DATA disk group. You execute the following command:SQL ALTER DISKGROUP data ADD ALIAS ‘+data/prod/myfile.dbf’ FOR ‘+data.231.45678’;What is the result?()A、The file ‘+data.231.54769’ is physically relocated to ‘+data/prod’ and renamed as ‘myfile.dbf’.B、The file ‘+data.231.54769’ is renamed as ‘myfile.dbf’, and copied to ‘+data/prod’.C、The file ‘+data.231.54769’ remains in the same location and a synonym 'myfile.dbf' is created.D、The file ‘myfile.dbf’ is created in ‘+data/prod’ and the reference to ‘+data.231.54769’ in the data dictionary removed.
考题
拷贝myDir/myfile文件到Dir2目录下,但是系统提示这个文件已经存在,下面哪个命令是正确的。()A、Cp -wmyDir/myfileDir2B、Cp -imyDir/myfileDir2C、Cp myDir/myfileDir2D、Cp -vmyDir/myfileDir2
考题
若要将当前目录中的myfile.txt文件压缩成myfile.txt.tar.gz,则实现的命令为()。A、tar–cvfmyfile.txt myfile.txt.tar.gzB、tar–zcvfmyfile.txt myfile.txt.tar.gzC、tar–zcvfmyfile.txt.tar.gz myfile.txtD、tar–cvfmyfile.txt.tar.gz myfile.txt
考题
单选题用COPY命令打印当前盘当前路径下的MYFILE.PRG文件,正确的命令是()。A
COPYMYFILE.PRGPRNB
COPYMYFILE.PRGPRNC
COPYPRNMYFILE.PRGD
COPYPRNMYFILE.PRG
考题
单选题下面哪条命令可用来确保文件“myfile”存在()A
cp myfile /dev/nullB
touch myfileC
create myfileD
mkfile myfile
考题
单选题拷贝myDir/myfile文件到Dir2目录下,但是系统提示这个文件已经存在,下面哪个命令是正确的。()A
Cp -wmyDir/myfileDir2B
Cp -imyDir/myfileDir2C
Cp myDir/myfileDir2D
Cp -vmyDir/myfileDir2
考题
单选题Using vi, you want to save changes to the file myfile with :w!, but vi complains it cannot write to the file. Therefore, you want to check the write permissions on the file. To do this without leaving vi, you type:()A
:!ls-I myfileB
:/ls-l myfileC
esc :Is -I myfileD
:?ls-l myfile
考题
判断题UNIX的环境下,执行chmod g-r-w+x myfile之后,同组用户不能删除myfile。A
对B
错
热门标签
最新试卷