Preview

Unit 3 network discovery

Powerful Essays
Open Document
Open Document
1031 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Unit 3 network discovery
Unit 3 Assignment 3

Chapter 7 Questions
1. What does the shell do while a command is executing? What should you do if you do not want to wait for a command to finish before running another command?
A. The shell tries to find an executable program with the same name as the command. When it does, the shell executes the program. When finishing the command put an & ampersand symbol at the end of the command and the command will run in the background. Then a cursor will be displayed immediately to allow the next command to be entered.
3. What is the PID number? Why are these numbers useful when you run processes in the background? Which utility displays the PID numbers of the commands you are running?
A. PID is a process identification number given to each process created. These PID are helpful to allow the child process to run in the background so the parent process can start a new command. The history utility list all the commands you have ran.
4. Assume that the following files are in the working directory.
Give commands for each of the following, using wildcards to express filenames with as few characters as possible.
a. List all files that begin with section.
$ ls section
b. List the section1, section2, section3 files only.
$ ls section(1-3)
c. List intro file only.
$ ls i
d. List the section1, section3, ref1, and ref3 files.
$ ls [l3] 8. Give an example of a command that uses grep. a. With both input and output redirected. $ grep \$Id < *.c > id_list b. With only input redirected. $ grep –I suzi < addresses c. With only output redirected. $ grep -il memo .txt > memoranda_files
e. Within a pipe.
$ file /usr/bin/ * | grep “Again shell script” | sort –r
In which of the preceding is grep used for a filter? Example d uses grep as a filter.
Chapter 9 Exercises Questions
1. Explain the following unpredicted result:
$ whereis date- date:

You May Also Find These Documents Helpful

  • Better Essays

    Nt1310 Unit 4

    • 3614 Words
    • 15 Pages

    If the following program (myprog) is run from the command line as myprog 1 2 3, What would be the output?…

    • 3614 Words
    • 15 Pages
    Better Essays
  • Good Essays

    Nt1310 Unit 1 Study Guide

    • 846 Words
    • 4 Pages

    28. What is the purpose of the |more parameter at the end of a command line?…

    • 846 Words
    • 4 Pages
    Good Essays
  • Powerful Essays

    Nt1310 Unit 1

    • 4209 Words
    • 17 Pages

    If two steps are indented at the same level, the uppermost statement is executed first. ans)All of the above…

    • 4209 Words
    • 17 Pages
    Powerful Essays
  • Satisfactory Essays

    What UID and PID have the highest amount of physical memory a process has used and is not swapped out? Show all processes and full output.…

    • 385 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Nt1430 Unit 2

    • 393 Words
    • 2 Pages

    8. What is the result of giving the which utility the name of a command that resides in a directory that is not in your search path? If if is not in my search path it will not show me the results for it.…

    • 393 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    It 250 Homework 4

    • 769 Words
    • 4 Pages

    1. What does the shell ordinarily do while a command is executing? What should you do if you do not want to wait for a command to finish before running another command?…

    • 769 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    CNE 251 Lab 07

    • 548 Words
    • 2 Pages

    7) The output from the command lists the total numbers of lines that match which is 6.…

    • 548 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    4. What kind of files will be matched by the following when you list by ls command: (3)…

    • 529 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    data and can be initiated from the DOS command prompt? What useful information does this query…

    • 924 Words
    • 4 Pages
    Powerful Essays
  • Satisfactory Essays

    NT1430 UNIT 2

    • 565 Words
    • 3 Pages

    4) How can you find out which utilities are available on your system for editing files? Which utilities are available for editing on your system?…

    • 565 Words
    • 3 Pages
    Satisfactory Essays
  • Better Essays

    Chapter 8 LINUX Answers

    • 1190 Words
    • 5 Pages

    1. You have obtained a new utility, called watchit, to monitor security on your computer,…

    • 1190 Words
    • 5 Pages
    Better Essays
  • Satisfactory Essays

    The command prompt is just using the keyboard where as the gui program can use the keyboard and or mouse of your choice.…

    • 435 Words
    • 5 Pages
    Satisfactory Essays
  • Good Essays

    * To run the program, press the <F6> function key and type cscript EchoDemo.vbs and click OK as shown below. CScript is the WSH Interpreter for running VBScript programs in a console window.…

    • 2429 Words
    • 10 Pages
    Good Essays
  • Satisfactory Essays

    File Processing Commands

    • 354 Words
    • 2 Pages

    What UID and PID have the highest amount of physical memory a process has used and is not swapped out? Show all processes and full output.…

    • 354 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Cesar Chavez Notes

    • 304 Words
    • 2 Pages

    Cesar Estrada Chavez was born March 31, 1927 in Yuma, Az. He died at age 66 on April 23, 1993 in San Luis, Az. Co-founded the National Farm Workers Association with Dolores Huerta. Cesar Chavez was a farm worker, labor leader, and civil rights activist. He is the best-known Latino American civil rights activist. His slogan was “Si, se puede” (“Yes, it is possible”). Since his death in 1993, California, Colorado, and Texas celebrate March 31 as Cesar Chavez Day. In 1942, Chavez graduated middle school and became a full time migrant farm worker. In 1952, Chavez stopped working in the fields, and began working for the Community Service Organization (CSO); Chavez became the program director in 1958. He encouraged Mexican Americans to vote while promoting workers rights. In 1962, Chavez joined forces with Dolores Huerta to form the National Farmers Association (NFWA) which was renamed United Farm Workers.…

    • 304 Words
    • 2 Pages
    Good Essays