Question

QUESTION 1 What will be the output of following Unix command: find / -name ‘*’ A....

QUESTION 1

  1. What will be the output of following Unix command:

    find / -name ‘*’

    A.

    List all files and directories recursively starting from /

    B.

    List a file names * in /

    C.

    List all files in / directory

    D.

    List all files and directories in / directory

QUESTION 2

  1. Which command is used to extract a column/field from a text file / input.

    A.

    paste

    B.

    get

    C.

    cut

    D.

    tar

QUESTION 3

  1. Which command creates an empty file if the file does not exist?

    A.

    cat

    B.

    touch

    C.

    tr

    D.

    pid

  

QUESTION 4

  1. Command used to count number of characters in the file / input is:

    A.

    grep

    B.

    count

    C.

    wc

    D.

    cut

QUESTION 5

  1. Which of these commands could be used to show one page of output at a time?

    A.

    Less

    B.

    sed

    C.

    pause

    D.

    grep

  

QUESTION 6

  1. Which command is used to display all the files including hidden files in your current working directory?

    A.

    ls

    B.

    ls -a

    C.

    ls -l

    D.

    ls -R

QUESTION 7

  1. Which command is used to write the system date in the mm/dd/yyyy format?

    A.

    date +%mm/%dd/%yyyy

    B.

    date +%m/%d/%y

    C.

    date +%m/%d/%YY

    D.

    date +%m/%d/%Y

QUESTION 8

  1. How will you display the contents of file Test.c one page at a time?

    A.

    man Test.c > more

    B.

    cat Test.c < more

    C.

    cat Test.c | more

    D.

    man Test.c < more

QUESTION 9

  1. Unix command, sed is used to:

    A.

    Modify selective contents of a file

    B.

    Perform complex calculations

    C.

    Print selective contents of a file

    D.

    Both a and c

  

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Q1- find / -name'*' List all files in / directory
Q2-Which command is used to extract a column/field from a text file / input - cut command
Q3-Which command creates an empty file if the file does not exist? - touch
Q4-Command used to count number of characters in the file / input is- wc which is word count
Q5-Which of these commands could be used to show one page of output at a time?- less
Q6-Which command is used to display all the files including hidden files in your current working directory?- ls-a
Q7-date +%m/%d/%Y
Q8-How will you display the contents of file Test.c one page at a time- cat Test.c|more
Q9-Both a and c because it can do multiple functions such as search find and replace.

if you like the answer please provide a thumbs up;.

Add a comment
Know the answer?
Add Answer to:
QUESTION 1 What will be the output of following Unix command: find / -name ‘*’ A....
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • A filename con comprise multiple embedded dots (e.g., a.b.c.d.e). True False A device file is not...

    A filename con comprise multiple embedded dots (e.g., a.b.c.d.e). True False A device file is not really a stream of characters and doesn't contain anything at all. True False Relative pathnames begin with the root directory. True False Running the ls -a command uniquely identifies directories and binary executables. True False What is the result of running mkdir -p share/man/cat1 from the command line? a. It creates the directory share. b. It creates the directory share/man. c. It creates the...

  • QUESTION 1 From YOUR home directory, execute a find command string that will locate the file...

    QUESTION 1 From YOUR home directory, execute a find command string that will locate the file called resolv.conf. Include the -exec flag in the find command to cat the file to the screen. Begin your find search from the letc directory Select the correct find command string below that will accomplish this. find /etc-name 'resolv.conf -cat D find /etc-name 'resolv.conf -exec cat 0 find. -name 'resolv.conf -exec cat 0\ find /-name 'resolv.conf' -exec cat 0 QUESTION 2 What find command...

  • How do I do the following on a Unix Command Line Prompt: Change you command-line prompt...

    How do I do the following on a Unix Command Line Prompt: Change you command-line prompt to some interesting phrase/word of your choice Change the command-line prompt to display your user name and your current working directory (this includes your interesting phrase/word) Create a short alias for “ls -l -a”, it is up to you, but maybe “lsa” Execute the “who” command together with the “grep” command to identify whether your peer group (or any 3 or more people) are...

  • a) How would you use the ls command to display all of the files/directories in the...

    a) How would you use the ls command to display all of the files/directories in the directory ‘/sbin’ that start with ‘bl’? b) How would you use the ls command to display all of the files/directories in your current directory that contain the word ‘grade’ somewhere in the name and end with ‘.pdf’? c) How would you use the ls command to display all of the files/directories in your current directory that are any two characters followed by the file...

  • Explain what the following UNIX command does: Is 'echo I.txt' Please type shell commands (for Windows....

    Explain what the following UNIX command does: Is 'echo I.txt' Please type shell commands (for Windows. UNIX, or any other system that you like) for: creating a directory called hello world list the contents of this directory create a file called iwashere.txt display the contents of the file iwashere.txt from the command-line Please write a simple program in C for accepting a string from the command-line, reversing and printing the reversed string to standard output.

  • Some multiple choice questions of Computer Science: Linux command; Actually I can google it but the...

    Some multiple choice questions of Computer Science: Linux command; Actually I can google it but the choice here is a little..unclear. So I can't make sure..Thank you! 1:What does the Linux command “cat” do? a. copy the contents of a file to the screen b. count the number of characters in a file c. create a Linux catalog d. open up an edit session allowing you to modify a file 2:Which of the following Linux commands is best for getting...

  • Question 11     You are in the oranges directory. Write the command to copy the mandarin...

    Question 11     You are in the oranges directory. Write the command to copy the mandarin file to the apples directory. Use a relative path. 2 points Question 12     Which command do you use to rename files and directories?        A.         uname        B.         mv        C.         rn        D.         rename 2 points Question 13     You are in the oranges directory. Write the command to list...

  • Writing Unix Utilities in C (not C++ or C#) my-cat The program my-cat is a simple...

    Writing Unix Utilities in C (not C++ or C#) my-cat The program my-cat is a simple program. Generally, it reads a file as specified by the user and prints its contents. A typical usage is as follows, in which the user wants to see the contents of my-cat.c, and thus types: prompt> ./my-cat my-cat.c #include <stdio.h> ... As shown, my-cat reads the file my-cat.c and prints out its contents. The "./" before the my-cat above is a UNIX thing; it...

  • INFO 1211

    Lab 0: Essential UNIX OperationsObjectivesAt the end of this of lab, you should be able to:securely      log in to a remote computer running a UNIX-like operating systemread the      manual page for any commanduse the      UNIX file systemedit a      text fileNotes:·         In order to get familiar with UNIX, do all your work on UNIX.·         A command line interface may be harder to learn, but can be more powerful for scripting and automating tasks.·        ...

  • UNIX Write and run a simple shell script name mymenu that creates a simple command menu....

    UNIX Write and run a simple shell script name mymenu that creates a simple command menu. The script should present menu items (see below), prompts the user for a selection, and then executes the appropriate command selected. [Submit your script and the results of a test case for a, b, c, and d selections]     COMMAND MENU a. Current date and time b. Name of the working directory c. Contents of the working directory Enter a, b, or c:

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT