Preview

NT1310 Unit 3 Homework

Satisfactory Essays
Open Document
Open Document
1253 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
NT1310 Unit 3 Homework
CHAPTER 7
Q1) 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?
A1) The shell goes to “sleep” until the command has been processed. You can run a program in the background, which will allow you to run more than one at a time.
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?
A3) process identification (PID) number—a larger number assigned by the operating sys- tem. Each of these numbers identifies the command running in the background. It’s useful to know what jobs the program has completed and which ones are still running. The utility to use to run more than one command is “&”.
Q4) Assume that the following files are in the working directory: intro notesb ref2 section1 section3 section4b notesa ref1 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.
b. List the section1, section2, and section3 files only.
c. List the intro file only.
d. List the section1, section3, ref1, and ref3 files.
A4) a – $ echo section* B - $ echo section(1,2,3)* C – 4 echo *intro
Q8) Give an example of a command that uses grep
a. With both input and output redirected.
b. With only input redirected.
c. With only output redirected.
d. Within a pipe.
In which of the preceding cases is grep used as a filter?
A8) a - $ grep \$Id<*.c>id_list
B - $ grep –I mike <address
C - $ grep –il report *.txt >report_files
D - $ file /usr/bin/* | grep “shell script” | sort –r
“d” uses grep as a filter
CHAPTER 9
Q1 – Explain the following unexpected result
A - $ whereis date
Date: /bin/date…
B - $ echo $PATH
.:/usr/local/bin:/usr/bin:/bin
C - $ cat > date
Echo the format

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Now, select a virtual switch depending on how you have configured the host. Proceed to the configuration of port properties. Give the port a specific name. I have given the label as ‘VMK’. Enter VLAN ID if there is any or else chose ‘None’. Put a check next to the ‘Virtual SAN traffic’ box and then click ‘Next’. Now start with configuring IPv4 settings for this port. After completing that, click ‘Next’. Click on the finish button to end the configuration for port group creation. Make sure that the group is created. Again a new window will pop up showing the devices created and their respective IP addresses. After confirming that the host is created, repeat this procedure two more times, since we require at least three hosts for configuring VSAN.…

    • 229 Words
    • 1 Page
    Satisfactory Essays
  • Powerful Essays

    Which of the following symbols instructs the shell to redirect the output of a command to the specified file instead of the screen and overwrite the file?…

    • 2385 Words
    • 10 Pages
    Powerful Essays
  • Satisfactory Essays

    nt1310 midterm

    • 1089 Words
    • 6 Pages

    a. Near end cross talk, Far end Cross Talk, Equal Level Far end cross talk. Alien cross talk…

    • 1089 Words
    • 6 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

    Ls1180 Unit 1 Biology Key

    • 448 Words
    • 2 Pages

    This paper contains THIRTY-EIGHT questions in FIVE sections: Sections A, B, C, D and E. Answer THIRTY-FOUR questions only…

    • 448 Words
    • 2 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

    5. [3] Ten processes share a critical section implemented by using a semaphore x. Nine…

    • 299 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
  • Good Essays

    It250

    • 272 Words
    • 2 Pages

    Which of the following Linux utilities lists the names of files in a single directory?…

    • 272 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Unit 2 Linux Fedora

    • 560 Words
    • 3 Pages

    Unit 2 Chapter 5 1) who 3 }cp - copy files and directories mv - move (rename) files you would just basically overwrite the file 4) apropos edit Typical editors are vim, ex, ed and gedit. 8) The which utility displays a message saying that the command you are looking for is not in the list of directories in your search path. For example, $ which me /usr/bin/which: no me in (/usr/bin/which: no me in (/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/sam/bin) 10) Approximately 20 Unit 2 Chapter 6 1) 1.Is each of the following an absolute pathname, a relative pathname, or a simple filename? a. milk_co b. correspond/business/milk_co c. /home/max d. /home/max/literature/promo e. .. f. letter.0210…

    • 560 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Questions 1, 2, 3, 6, 7, 10, and 12 on page 84.Q1. Classify the following types of processes as continuous, assembly line, batch, job shop, or project:…

    • 1157 Words
    • 6 Pages
    Good Essays
  • Satisfactory Essays

    Read Chap. 2 as background for the following tasks. For each task, respond as indicated:…

    • 760 Words
    • 4 Pages
    Satisfactory Essays
  • Better Essays

    Chapter 8 LINUX Answers

    • 1190 Words
    • 5 Pages

    3. Your company is launching a marketing campaign, and to start, you’ve created a file…

    • 1190 Words
    • 5 Pages
    Better Essays
  • Satisfactory Essays

    Java Dumps

    • 5526 Words
    • 23 Pages

    Answer: D, E QUESTION: 2 Which two statements are true? (Choose two.) A. It is possible for more than two threads to deadlock at once. B. The JVM implementation guarantees that multiple threads cannot enter into a deadlocked state. C. Deadlocked threads release once their sleep() method 's sleep duration has expired. D. Deadlocking can occur only when the wait(), notify(), and notifyAll() methods are used incorrectly. E. It is possible for a single-threaded application to deadlock if synchronized blocks are used incorrectly. F. If a piece of code is capable of deadlocking, you cannot eliminate the possibility of deadlocking by inserting invocations of Thread.yield().…

    • 5526 Words
    • 23 Pages
    Satisfactory Essays
  • Good Essays

    Metafunction

    • 2411 Words
    • 10 Pages

    Three questions that can be asked about any process and the clause of which it forms a nucleus:…

    • 2411 Words
    • 10 Pages
    Good Essays