Preview

Linux Assignment 3

Satisfactory Essays
Open Document
Open Document
1307 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Linux Assignment 3
Date: 12 Oct 2013
Subject: Assignment 3

Chapter 7 page 251 Exercises 1,3,4,8
1. What does the shell ordinarily do while a command is executing? What should you do if you do not want for a command to finish before running another command?
While the command is executing, the shell waits for the process to finish. Or sleeps
3. What is a 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?
PID process identification numbers. Each of these numbers identifies the command running in the background. You can use the PS (process status) utility to display the PID numbers of running commands.
4. Assume that the following files are in the working directory:$ 1sintro notesb ref2 sectionl section3 section4bnotesa refl ref3 section2 section4a sentrev. 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, and section3 files only.
$ ls section[1-3]
c. List the intro file only.
$ ls i*
d. List the section1, section3, ref1, and ref3 files.
$ ls *[13]
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
D. Within a pipe.
$ file /usr/bin/* | grep "Again shell script" | sort -r
In which of the preceding cases is grep used as a filter?
Part d uses grep as a filter.

Chapter 9 p.356, exercises 1,2,3,4,5,6,8

1. Explain the following unexpected result:
1. $ whereis date date: /bin/date ...
2. $ echo $PATH
.:/usr/local/bin:/usr/bin:/bin
3.$ cat > date echo "This is my own version of date."
4.$ ./date
Sat May 21 11:45:45 PDT 2011

1. "whereis date" tells us where the executable file "date" is

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

    Unix processes are instances of an executed program. UNIX, being a multi task operating system handles thousands of processes at a time. We are able to check on what processes are currently running by typing ps at the UNIX prompt. Depending on the options used with the ps command, we can see different outcomes such as $ps -ef | more. This will list all the processes in the system. Some items you might see using the ps command are PID which is the process ID number, TT or TTY shows the controlling terminal for the process. If there is no controlling terminal then a question mark is used.…

    • 567 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    NT1310 Unit 3 Homework

    • 1253 Words
    • 5 Pages

    Q3) What is a PID number? Why are these numbers useful when you run process in the background? Which utility displays the PID numbers of the commands you are running?…

    • 1253 Words
    • 5 Pages
    Satisfactory Essays
  • Powerful Essays

    Unit 3 network discovery

    • 1031 Words
    • 5 Pages

    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?…

    • 1031 Words
    • 5 Pages
    Powerful Essays
  • Satisfactory Essays

    Unit 3 Assignment 1

    • 383 Words
    • 2 Pages

    Video Connectors – Video Graphics Adapter (VGA), Digital Video Interface (DVI), and S-Video (TV connection)…

    • 383 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Unit 10 Assignment 1

    • 469 Words
    • 3 Pages

    I have learned some new terms from this video and how the commands are imperative…

    • 469 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    Hw3 7

    • 1263 Words
    • 5 Pages

    A PID number is an identification number assigned to a command running in the background, which can be used to differentiate between commands. The PS (process status) utility…

    • 1263 Words
    • 5 Pages
    Powerful Essays
  • Satisfactory Essays

    It 250 Homework 4

    • 769 Words
    • 4 Pages

    2. What is a 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?…

    • 769 Words
    • 4 Pages
    Satisfactory Essays
  • Good Essays

    Unit 3 assignment 1

    • 479 Words
    • 2 Pages

    The purpose of this policy is to define standards for connecting to Richman Investments network from any host. These standards are designed to minimize the potential exposure to Richman Investments from damages which may result from unauthorized use of Richman Investments resources. Damages include the loss of sensitive or company confidential data, intellectual property, damage to public image, damage to critical Richman Investments internal systems, etc.…

    • 479 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    ________ System is a collection of processors that do not share memory, peripheral devices, or a clock. 7. The main function of a command interpreter is to get and execute the next user specified command. (True/False) Self Assessment Questions 8. An error in one part of the system may cause malfunctioning of the complete system.…

    • 4533 Words
    • 19 Pages
    Satisfactory Essays
  • Satisfactory Essays

    unit 3 assignment 3

    • 854 Words
    • 3 Pages

    1. Which of the following is true about a TCP/IP network? A) The network uses only standards defined in TCP/IP RFCs.…

    • 854 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Study Guide GB 310

    • 5424 Words
    • 22 Pages

    is a graphic description of a process, showing the sequence of process tasks, which is developed for a specific purpose and from a selected viewpoint…

    • 5424 Words
    • 22 Pages
    Good Essays
  • Satisfactory Essays

    assignment 204 task c

    • 545 Words
    • 2 Pages

    Ci-If a social care worker becomes aware of unsafe practice they could speak with their colleague who is performing an unsafe task, about what they are doing and that it is wrong and not safe. After speaking with their colleague they could show them a safer way and explain to them how it reduces the risk. Also they must report the unsafe practice to their manager so that it is corrected and inform staff by offering training and the right information and it has to be recorded.…

    • 545 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    assignment 013

    • 545 Words
    • 3 Pages

    1. In our setting, it is important for us to work with parents/carers/guardians as this benefits the children that we care for. It may be that the child has an illness or allergy that we need to be made aware of, issues at home or school, behaviour change, additional needs etc. We would expect the parents/carers to let us know about these kind of things relating to their child so that we can provide the best care possible. If we are not kept up to date, we may miss something, eg. We are not told that a child is allergic to a certain food, and we may offer it to the child at lunch or snack time which of course would be very dangerous for them. Also, we as child minders would need to act in the same way, and let a parent/carer know of any changes/ additional needs for their child. If they have sustained an injury whilst in our care, been unwell, behaviour issues, or if their school have notified us about something that we need to pass on to the parent. Good communication is key in our workplace. To try and give parents as much information as possible, each child has their own book in which we record what they have eaten, the times their nappies were changed and what time they had a nap. We also write about the activities they did, their mood and behaviour, or if they have achieved any next steps. This is so that the parents can read about their childs day, and it is also a good record for us to keep track of their progress etc.…

    • 545 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Process Analysis

    • 1426 Words
    • 6 Pages

    We need to understand how the activities of a process affect one another. The process flow chart is a diagrammatic tool which helps in analyzing a process. This diagram shows the basic elements of a process-tasks, flows, storage, decisions, start/end of a process.…

    • 1426 Words
    • 6 Pages
    Satisfactory Essays

Related Topics