ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

Which of the following commands can be used to assure that a file 'myfile' exists? A. cp myfile /dev/null B. touch myfile C. create myfile

Which of the following commands can be used to assure that a file 'myfile' exists? A. cp myfile /dev/null B. touch myfile C. create myfile D. mkfile myfile

user-image
تم إضافة السؤال من قبل mohammed elsayed hesseny mohammed Elaidy , Service Level & Quality Management Engineer , TE-data
تاريخ النشر: 2014/03/03
Hesam Shahbazi
من قبل Hesam Shahbazi , Computer Engineer , Informatics Services Corporation

A is correct and B is incorrect. Because touch command creates the file if it doesn't exist. But we want just check the file existance, not create a new one.

sakthivel veeramuthu
من قبل sakthivel veeramuthu , Linux Technical Support , Rox Trading & System Pvt Ltd

Hello Mohammed,

B.touch myfile->assure a 'myfile' exists

المزيد من الأسئلة المماثلة