Question

QUESTION 4 Which UNIX shell operator will perform which function?       -       A....

QUESTION 4

  1. Which UNIX shell operator will perform which function?

          -       A.       B.       C.       D.   

    Append output to a file

          -       A.       B.       C.       D.   

    !!

          -       A.       B.       C.       D.   

    <

          -       A.       B.       C.       D.   

    Neutralize a single metacharacter

    A.

    Re-direct input into a command string from a file

    B.

    \

    C.

    Recall last command

    D.

    >>

10 points   

QUESTION 5

  1. cd to the /etc directory.

    Execute the following command.

    ls -l au*.[mn]*

    The output is the following:

    -rw-r--r-- 1 root root 675 Jan 24 19:04 auto.master

    -rw-r--r-- 1 root root 524 Mar 22 2012 auto.misc

    -rwxr-xr-x 1 root root 1374 Mar 22 2012 auto.net

    This is exactly the output I was hoping for.

    What function are the [ ] performing?

    They look good and balance the command string.

    The uniquely match the m and n characters to ensure only the desired output is generated.

    They neutralize the m and n characters to hide the output.

    They were used by mistake and have no meaning.

10 points   

QUESTION 6

  1. Create an alias called li. When executed it will generate a long listing of files including the file i-node numbers.

    Will the following alias do this?

    alias li='ls -li'

    True

    False

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

Please Note: I have answered the first Question and all of its sub-parts, according to Chegg Answering Guidelines. Please Re-Post for receiving answers on the other questions.

Q4. Answer)
The following UNIX shell operator will perform each of these functions:
A. Append output to a file - >>, >> character will append the output to the file and thus is used in Unix shell.
B. Neutralize a single metacharacter - \, the Backslash is used to Neutralize. That is any character which is following the backslash loses its special meaning.
C. Re-direct input into a command string from a file - <, The "<" character is used to redirect standard input from a file usually without a keyboard
D. Recall the last command - !!, Typing !! and pressing enter from the command line will recall and execute the last command on the command line for Unix.

**Please Hit Like if you appreciate my answer. For further doubts on the question or answer please drop a comment, I'll be happy to help. Thanks for posting.**

Add a comment
Know the answer?
Add Answer to:
QUESTION 4 Which UNIX shell operator will perform which function?       -       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
  • d to the /etc directory. Execute the following command. ls -l au*.[mn]* The output is the...

    d to the /etc directory. Execute the following command. ls -l au*.[mn]* The output is the following: -rw-r--r-- 1 root root 675 Jan 24 19:04 auto.master -rw-r--r-- 1 root root 524 Mar 22 2012 auto.misc -rwxr-xr-x 1 root root 1374 Mar 22 2012 auto.net This is exactly the output I was hoping for. What function are the [ ] performing? They look good and balance the command string. The uniquely match the m and n characters to ensure only the...

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

    QUESTION 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 Which command is used to extract a column/field from a text file / input. A. paste B. get C. cut D. tar QUESTION 3 Which command creates an empty...

  • 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...

  • Purpose This assignment should give you experience in using file descriptors, open(), close(), wr...

    Purpose This assignment should give you experience in using file descriptors, open(), close(), write(), stat() and chmod(), perror(), and command line arguments. Program Write a C++ program that will allow you to add messages to a file that has NO permissions for any user. A Unix system has many files that have sensitive information in them. Permissions help keep these files secure. Some files can be publicly read, but can not be altered by a regular user (ex.: /etc/passwd). Other...

  • do numbers 4-8 4. Given any directory, use the Is command to display: • all files...

    do numbers 4-8 4. Given any directory, use the Is command to display: • all files and sub-directories starting with the letter "D" (note do not list anything in any sub-directory) • its immediate sub-directories (sub-directories only, and no other ordinary files) its immediate hidden sub-directories only - take a screenshot (#3-3) that clearly shows the command and the result. 5. Assume that the following files are in the working directory: $ ls intro notesb ref2 section 1 section3 section4b...

  • Unix/Linux Part 1. Multiple choice 1. In the command ls /tmp, the ls is the__ A)...

    Unix/Linux Part 1. Multiple choice 1. In the command ls /tmp, the ls is the__ A) argument B) option C) utility D) file E) kernel 2. In the command mv -i fileAA fileBB A) there are three arguments B) there is one option C) there is one utility D) If fileBB exists it will not be overwritten with confirmation E) All of the above 3. To add the output of date to the end of the file junk, we enter...

  • Revision Question 3 on Linux. Please explain the shell script commands in the context of post...

    Revision Question 3 on Linux. Please explain the shell script commands in the context of post execution. You have just logged in and have a directory called "novel" in your home directory containing the following files: chapter1.docx chapter2.docx chapter3.docx draft.pdf save where "save" is itself a directory and contains the files Attributes.txt draft.pdf.1 draft.pdf.2 draft.pdf.3 indexA.txt indexB.txt list1.txt list2.txt a) Describe the results you would expect when executing the following shell commands: i) ls novel/save/*A* ii) ls novel/*r[23]* iii) rmdir...

  • 19. UNIX/Linux normally include two editors: vi and (choose the single best answer). 20. You can...

    19. UNIX/Linux normally include two editors: vi and (choose the single best answer). 20. You can use thecommand to create empty a create b. make c touch d mu 21. Which command can be used to leave vi temporarily to access the command line? 22 If you execute the contents of filel are sorted and the results are stored in file2. a sort file1 -ofile2 b. sort file1 >file2 c sort filel -d file2 d sort filel filez field or...

  • Unix/Linux The purpose of this lab is to practice the commands to manage and organize files...

    Unix/Linux The purpose of this lab is to practice the commands to manage and organize files and directories: How would one go about this? Thanks. Task 1: Preliminaries: 1) If you have not already done so, create a directory called bin under your HOME directory. 2) If you have not already made a copy (using ftp) of the file called famous.dat from the Assignment#1, do that now. 3) Make bin the active/working directory. Task 2: Perform all of the following...

  • 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...

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