logo

CuriousTab

CuriousTab

Discussion


Home Computer Science Unix Comments

  • Question
  • Which command is used to display and create files?


  • Options
  • A. cat
  • B. vi
  • C. ed
  • D. lyrix
  • E. None of the above

  • Correct Answer
  • cat 


  • Unix problems


    Search Results


    • 1. Which command is used to copy all files having the string chap and any two characters after that to the progs directory?

    • Options
    • A. cp chap?? progs
    • B. cp chap* progs
    • C. cp chap[12] /progs/*.*
    • D. cp chap?? /progs/*
    • E. None of the above
    • Discuss
    • 2. Which command is used to concatenate all files beginning with the string 'emp' and followed by a non-numeric characters?

    • Options
    • A. cat emp[!0-9]
    • B. more [emp][!0-9]
    • C. cat emp[x-z]
    • D. cat emp[a-z]
    • E. None of the above
    • Discuss
    • 3. Which option will be used with sort command to start sorting ofter the nth column of the (m+l)th field?

    • Options
    • A. -m.n
    • B. +m.n
    • C. + n.m+1
    • D. +(m+l).n
    • E. None of the above
    • Discuss
    • 4. Which of the following commands is used to list contents of directories?

    • Options
    • A. ls
    • B. lp
    • C. dir
    • D. tar
    • E. None of the above
    • Discuss
    • 5. Which option is used with rm command to make the command prompt the user with each filename and a?, before acting on it

    • Options
    • A. -r
    • B. -x
    • C. -i
    • D. -1
    • E. None of the above
    • Discuss
    • 6. Which of the following commands is used to display the directory attributes rather than its contents?

    • Options
    • A. ls -l -d
    • B. ls -l
    • C. ls -x
    • D. ls -F
    • E. None of the above
    • Discuss
    • 7. Which command is used to remove a file?

    • Options
    • A. remove
    • B. rm
    • C. mv
    • D. del
    • E. None of the above
    • Discuss
    • 8. While working with mail command, which command is used to save mail in a separate file?

    • Options
    • A. s
    • B. r
    • C. w
    • D. d
    • E. None of the above
    • Discuss
    • 9. The cp command uses:

    • Options
    • A. standard input file
    • B. standard output file
    • C. both input and output file
    • D. neither standard input nor standard output file
    • E. None of the above
    • Discuss
    • 10. Which of the following is not a communication command.

    • Options
    • A. write
    • B. mesg
    • C. mail
    • D. grep
    • E. None of the above
    • Discuss


    Comments

    There are no comments.

Enter a new Comment