MCQs > IT & Programming > LAMP > Read the following code snippet: 1. for filename in *; do 2. if [ -f $filename ]; then 3. ls -l $filename 4. file $filename 5. else 6. echo $filename is not a regular file. 7. fi 8. done What does '-f' in line 2 mean?

LAMP MCQs

Read the following code snippet:

 1.  for filename in *; do
 2.    if [ -f $filename ]; then
 3.      ls -l $filename
 4.      file $filename
 5.    else
 6.      echo $filename is not a regular file.
 7.  fi
 8. done

 What does '-f' in line 2 mean?

Answer

Correct Answer: It tests all the items in the current working directory

Explanation:

Note: This Question is unanswered, help us to find answer for this one

LAMP Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

LAMP Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it