Free Essay

Unit 3

In:

Submitted By Gooniemanbb
Words 363
Pages 2
NT 1430
UNIT 3
Bash Scripts: * Script –commands written to a file. * Bash- a command processor a Unix shell

Bash History:
It was written by a man called Brian Fox. It was part of the GNU Project. The first release was 1989. It was a improvement and replacement to something called the Borne shell

The Borne Shell:
The creator was Stephen Borne. His employer was AT&T Labs. It was a Unix Shell he developed for Unix 7. Like everything it was replacing a older program called Thompson shell.

The Borne Again Shell:
Bash
Borne
Again
Shell
A free replacement to Borne shell

Commands in Linux
Mkdir- Make Directory rmdir- remove directory cd- Change directory
Mv- Change name move directory
Pwd – print working directory chmode-Change file access Permissions
Commands are what tell Linux what to do.

Chapter 7: 1. It waits for the process to be finished. You can give it multiple commands it will execute them in order.
3.Process Identification Number, The numbers tell you what commands are running in the background. Type ps
4.
a. $ls section*
b. $ls section[1-3] $ ls section?
c. $ls I*
d.$ls *[13]
8.
a. $ grep \$ID < * .c > id_list
b. $ grep –I suzi < addresses
c. $ grep –il memo *.txt > memoranda_files
D. $ file /usr/bin*|grep “Again shell script” | sort –r

Chapter 9
1.
You get permission denied, Not executable search though path 2. With Bash you can use these commands, $ . scriptfile, $ source script file 3. Path shows the pathways for common programs to make them easy to use. a. Export PATH=/usr/local/bin;/:/usr/… b. /usr/bin it goes in order c. Cd to the usr/bin directory then use command ./doit d. Export PATH=$PATH:/usr/games 4. $ person=jenny a. jenny b. $person 5.
a. $chmod +x journal.sh
b. It reads it from the first imput

6.A. $pwd /home/jenny/grants $ CDPATH=$(pwd) $ cd $ cd biblios
B. $ pwd
/home/jenny/grants
$ CDPATH=$(pwd)
$ cd $HOME/biblios

8. No sleep out put,/etc/inittab,

10. $ cat a pid=$PPID line=$(ps | grep $pid) echo $line | cut --delimiter=" " --fields=4

11.
a.2 each

Similar Documents

Premium Essay

Nt1310 Unit 3 Assignment 1 Material Analysis

...screen is going to be and the higher quality the video will look. For UHD Tvs they support resolutions up to 4k resolution (3840x2160). The Highest Resolution out now is 4k resolution which is at 3840 x 2160 The image above shows you the different types of screen resolution used in different types of media devices. Ratios: Aspect ratio is the term given to describe the proportional relationship between its width and its height. Nowadays the standard ratio is 16:9 which will stretch to fit most if not every TV screen. The height is the first value and the second value is the width, for example 16:9 16 being the height and 9 being the width. This will determine how stretched an image will be on your screen, for example if you were to use 4:3 there would be a black border around the image, because it wouldn’t be stretched to fit the screen. For new 4k Monitors and TV the aspect ratio is 1.9:1 Compression: There are two different types of compression Lossy and Lossless. Compression is the term given when you take a file and make it smaller so that it takes up less space on your Hard Drive. Lossy compression is the type of compression method that when compressed and decompressed the file will lose the quality of the picture or video. Lossless compression is the type of compression that when compressed it can be decompressed without losing any of the quality. Lossy compression is the type of compression method that when compressed and decompressed the file will lose the quality...

Words: 1493 - Pages: 6

Premium Essay

Nt1310 Unit 3 Control Unit

...Task 1 The Control Unit There are two types of control unit which are hardwired and micro program where hardwired are for fixed architecture and are typically RISC and cost more than micro program because of the time required to design the circuits , but they are faster. Micro program control units are slower than hardwired but are easier and cheaper to implement as the instructions are stored in special control memory. The control unit controls all data going in, out and inside the CPU. The control unit decodes the data from ram and turns it into an instruction depending on what instruction set the control unit is programed or hardwired to have. Then if the instruction involves any logic or mathamatical caluculations it gets sent to the alu where it gets calculated and outpeted to the accumulator. The ALU The ALU is an acronym for arithmetic and logic unit, this is one of the most important parts of the CPU as it does all of the calculations. The ALU is a big array of different logic gates that are interconnected to preform basic logical and mathematical operation such as putting adding numbers or xoring two values. How the ALU is designed makes a big difference in terms of how powerful the processor will be as the more complicated...

Words: 1323 - Pages: 6

Premium Essay

Nt1330 Unit 3 Assignment

...CS 2301- Unit 3 Learning Assignment Abebe Erena University of the people term 5 (2015-2016) July 6, 2016 An operating system (OS) is a program that manages the computer's resource and its CPU, primary storage, it's input/output device. so that the resources can be correctly and fairly used by one or more persons and /or computer programs. an operating system will initialize the various registers when started, something like buffers, and controllers used by the computer. *multi-programming has come to be a given in modern computing. a computer allows multiple programs to execute more than one program at a time. for example, say a word processor,...

Words: 643 - Pages: 3

Free Essay

Pharmacology Unit 3

...Determine the correct metric length: 1. 15 cm = ¬¬¬¬¬¬¬¬¬____150_____mm 2. 1800 cm = ¬¬¬¬¬¬¬¬¬_18________m 3. 0.4 m = ¬¬¬¬¬¬¬¬¬_______40__ cm Determine the correct metric volume: 4. 1300 mL = ¬¬¬¬¬¬¬¬¬_____1.3____ L 5. 8.01 L = ¬¬¬¬¬¬¬¬¬_______8010__ mL Determine the correct metric weight : 6. 0.6 mg = ¬¬¬¬¬¬¬¬¬___600______ mcg 7. 40 mg = ¬¬¬¬¬¬¬¬¬_______0.04__ g 8. 0.05 g = ¬¬¬¬¬¬¬¬¬___50______ mg 9. 320 g = ¬¬¬¬¬¬¬¬¬_____0.32____ kg 10. 100 mg = ¬¬¬¬¬¬¬¬¬_____0.1____ g 11. 7 g = ¬¬¬¬¬¬¬¬¬______7000___ mg 12. 1200 mg = ¬¬¬¬¬¬¬¬¬_1.2________ g Determine the correct household measurement: 13. 3 tbs = ______9____ tsp 14. 2 pt = _____32____ oz 15. 7 tsp = ¬¬¬¬¬¬¬¬¬____2.3_____ tbsp PART 2: PRACTICAL APPLICATIONS Each question is worth 3 points for a total of 15 points. 1. A medication comes in 0.5 g or 500 mg strengths. Explain which medication is weaker (smaller strength). Neither one they are the same strength. 2. An incision measured 55 mm. How many centimeters is this? It would be 5.5 centimeters 3. A patient drank 2250 mL of water. How many liters is this? 2.25 L 4. A syringe contains 0.5 mL of sterile water. How many cubic centimeters does the syringe contain? 0.5 cc 5. The directions on a cough syrup are “take two tablespoons.” How many teaspoons are equivalent to two tablespoons? 4tsps PART 3: PRACTICAL APPLICATIONS What is the difference between a prescription and a medication order? (5 points) A...

Words: 392 - Pages: 2

Premium Essay

Nt1330 Unit 3 Essay

...performance. Parallel computing is very much the same except the workload is divided among different processors on the one machine. Distributed computing is considered a sub set of parallel computing but it is slower due to the network interface that has to be set up between the different computers. 3) Is a supercomputer composed interconnected off the shelf standard PC’s. It is a cheaper way to construct a supercomputer which can perform large computations through parallel processing. 4) Is a volunteer project in which the public can participate by running a free program that analyzes radio data from space. It is a type of distributed computing which is connected via the internet. It is a cheaper way for companies to process large amounts of information and is also used as an education tool or as way to get the general public interested in science. Similar projects are run by other companies, for example, HTC’s power to give initiative. It does not affect the mobile users experience as it only uses a small percentage of the phone’s processing power but it effective at processing information because it uses such a large number of phones. Question 3 1) A Raspberry Pi is a small, cheap computer which is aimed at young people to teach computer literacy and to make computing more accessible around the world. It has however been taken on by many hobbyists who have used it to make an array of different projects. It has many functions; it is programmable (mainly...

Words: 818 - Pages: 4

Premium Essay

Nt1330 Unit 3 Assignment File Analysis

...For the unit 3 assignment, you must develop a program that reads the file icecream.dat. This file is supplied in the “Files for Unit 3 Assignment” directory in Unit 3. You must use TextIO methods to read the file. As you read the file, count the total number of ice cream cones that were sold. (This is the same as the number of lines that you read from the file.) Also count the total number of "Strawberry" cones that were sold. At the end of the program, print out the total number of cones, the number of Strawberry cones, and the percentage of cones that were Strawberry. Note: To do this program, you have to know when to stop reading from the file. TextIO has a function named TextIO.eof() to check whether the entire file has been read. The value of this function...

Words: 431 - Pages: 2

Premium Essay

Nt1310 Unit 3 Assignment 3 Tool Belt Equipment

...Whether you’re using the simple, lightweight utility belt or the padded tool belt, high-quality tool belts (e.g., Klein) offer comfort and durability for the hands-on professional handyman. But a belt is just a belt until it implemented with the right gear. In this article, we’ll look at three tool belt accessories that every contractor should have. Bosch Laser Distance Measurer Although they will never replace traditional tape measures altogether, laser distance measures are perfect for quick and easy evaluations without the need for a second person to hold one end of a measuring tape in place. Bosch makes incredibly high-quality laser distance measures that can come with their pouch that attaches conveniently to the tool belt. Ideally, you'll want one that measures up to 130 feet with extraordinary accuracy and allows you to quickly convert to the metric system if needs are. The bonus is that some models include a nifty, easy to use area and volume calculator for onsite calculations. All in all, a handy piece of equipment that offers ease and efficiency when gathering measurements at construction sites. Makita 18V BHP 454 Cordless Drill This top of the range cordless drill is a must for contractors and household handymen. The Makita BHP is one of the best cordless drills on the market: it’s compact, powerful and at only 5.3lbs, it’s also super lightweight. One of the most attractive features is the 18V lithium battery: it charges incredibly quickly, going from flat to full in...

Words: 506 - Pages: 3

Premium Essay

Nt1310 Unit 3 Assignment Analysis

...For the unit 3 assignment, there will be three tasks: First you must create a logic circuit using only basic gates such as AND, OR, NOR, NAND, NOT, etc. to implement an ADDER capable of adding two 4 bit binary numbers. Second you must create a logic circuit using only basic gates such as AND, OR, NOR, NAND, NOT, etc. to implement a Subtractor that is capable of subtracting the second number from the first, by converting the second number into its 2's complement form and then adding the resulting number to the first number. You do not need to worry about accomodating the addition or subtraction of negative numbers as part of your assignment. Finally, for the third part of the assignment you must create a limited ALU (Arithmetic logic unit) circuit using Logism that implements a Full...

Words: 945 - Pages: 4

Free Essay

Unit 5 Video Summary 3

...among AMD and Intel processors are the LGA 775 and 754 and ZIF locks hold the CPU into socket. Fans that are placed around or on the CPU are used to draw heat away from it and out of the case. * System bus carries info into and out of the CPU; controls the functioning speed of the computer * Frontside (uses 64 bit) bus is when the system bus enters the CPU * Controllers manage communications between motherboard, basic functions and other components * ALU – Arithmetic Logic Unit * ALU performs multiple calculations. These gave earlier Pentiums their multiprocessing capabilities * Internal bus is used to provide communication between the ALU and the Controller and uses a 32-bit wide data path * Backside is used to provide communication between the ALU and the Cache * Multiprocessors are two CPUs on one motherboard * Cache uses SRAM(static RAM) and is much faster and holds memory without being refreshed unlike DRAM(dynamic RAM) which must be refreshed * 3 types of cache: * L1 is on the processor chip * L2 is inside the processor housing, not on chip * L3 also in processor housing, further away from chip * Optimal temperature is around 90-110 F Almost all the information from this video I understood and noticed some things that I had no knowledge about and can be found by one looking at the motherboard. The buses are used to connect all these components to one another on the board. I also learned the difference between specific...

Words: 379 - Pages: 2

Premium Essay

Nt1310 Unit 3 Board Analysis

...It has following components on the board : Power: Arduino board can be powered either directly from wall power supply or using the USB cable.Two elements used for this purpose is labeled as 2 and 1 respectively.It is with the USB cable the code is loaded onto the board. There are several ground pins labeled as 3; supply or Vcc has also got options i.e Arduino works in either 5 V or 3.3 V(labeled as 4 and 5); 6pins (A0 to A5) are the analog In pins, which reads data of sensors nad convert them to digital values.Digital pins labeled as 7 ( 0 through 13) can be used as both input and output. Label 8 indicates PWM pins,i.e some pins are marked with symbol (~) act as normal pin as well as Pulse width modulation pin. Label 9 indicate the analog reference pin....

Words: 454 - Pages: 2

Premium Essay

Nt1330 Unit 3 Assignment 1

...It can be quite annoying if the PC is often unresponsive, especially if there is something really important to be done or the user requires instant access to data for someone who is sitting in front of them. The following guidelines could be helpful to make computer faster. Lessen the Number of Applications Installed One of the main causes that slow down the PC is having too many applications installed in it, regardless of the system being used. When games and applications are installed to a computer, some files are stored in the Windows directory structure and a lot of changes happen in the Windows Registry file. Majority of these changes are not promptly obvious to the Windows user. Programs that are redundant repeatedly ask the system to run a maintenance and occupy the hard disk drive, causing Windows to become unacceptably slow to respond. The appropriate removal of these programs needs uninstalling the application by going to the Control Panel – Programs and Features icon. Uninstalling an application or a software instantly after using it can speed up pc. There are also available third party programs that could help to remove applications that don’t have uninstall procedures or don’t completely remove themselves. Stop All Unnecessary Background Processes At the left hand corner of the computer screen, there is a group of small icons called the “system tray” or “notification area.” Every icon corresponds to a program that has been initiated or is just running in the background...

Words: 754 - Pages: 4

Premium Essay

Nt1310 Unit 3 Venn Diagrams

...watching/listening to a file. There are many types of video formats being used in Multimedia, some of these would be MPEG, GIF and AVI. MPEGs would be used for Motion Graphics that have been compressed, it would be known globally as the best compatible lossy format. GIFs would be used in Motion Graphics as it is basically a mini video clip that is being played in a loop, this can be used graphically and creating a nice motion graphic. AVIs would be the best Motion Graphic option because it has a number of codec options, it would be mainly used as a media container. Screen Ratios Ratios is relating on the display that would be found on screens like a TV, monitor or cinema. There are many different types of ratios like 21:9, 16:9 and 4:3. The screen resolution for 16:9 is 1920x1080, which is know the most commonly used. But what a rations does is that if the video is a different ratio than 16:9, it will resize it so it can fit onto that size. When creating Motion Graphics you would have to make sure that it is the manageable size so that it will be able to be played on all or most types of screens. Resolution Screen resolution is all about the size of the screen or the video itself. When the Motion Graphic is set to a size like 840 x 400 it will come out in a lower quality. But if the graphic were to come out in a size like 1920 x 1080 it would be a higher quality. If the motion graphic was being displayed on a bigger screen, it will show each pixel bigger, this is because...

Words: 1023 - Pages: 5

Premium Essay

Unit 3 P1 Research Paper

...Unit 2 assignment 1 Task 1 - Explain the function of computer hardware components (P1) Central processing unit CPU stands for central processing unit and is a piece of hardware in the computer, the role of a CPU is to carry out tasks in the computer. The CPU produces a fair bit of heat therefore it tends to be found under a heat sink and a fan. The heat sink and fan helps the processor to stay cool while it is running, this is to ensure that the processor doesn’t over heat. AGP AGP stands for Accelerated Graphics Port, the AGP is based on the PCI but is designed for graphics. The AGP uses point to point channels to communicate with the graphics cards improving both the look and the speed of the computer graphics. RAM RAM (random access...

Words: 2372 - Pages: 10

Premium Essay

Nt1330 Unit 3 Assignment 2.3.1

...A.3.1 Christo should purchase option 2 as it is cost effective and along with that has a high frequency distribution , due to which the tasks can be done effectively and with pace. Option 2 has Graphics card and a CUDA core workstation suitable for the graphics designer and the Primary hard drive has a greater Storage capacity, which allows Christo to have the accounts of all the tasks. A.3.2.1 Corei7 is of the 7th generation core microprocessors indicated by the suffix in the name. A.3.2.2 CPU performs the data processing task in real time.It also acts as a controlling unit by means of which Data a sequence of Data input and output is maintained through CPU’s busesSerial and Arthimetic. A.3.3 Integrated Intel HD Graphics NVIDIA Quadro M4000...

Words: 628 - Pages: 3

Premium Essay

Nt1310 Unit 3 Research Paper

...SET-UP OF HARDWARE The system will be built based around the Arduino Mega as the main board and the three main components for the circuit to be used are Wi-Fi, Bluetooth, and GSM modules. The Arduino Mega 2560 will serve as the main component of the system while the other modules will be responsible for the collection of data from the user. For the Wi-Fi connections, the Arduino Ethernet module will be connected to the Mega via its respective pins. On the other hand, the Arduino JY-MCU HC-06 will be responsible for the Bluetooth connections and will be connected to the Mega in pins 6 and 9. After those connections are set, the GSM module SM5100B will be attached to pins 1 and 4 into the main board and will be used for the GSM capabilities of the system. Once the main circuitry is set, the relay module can now be attached to the respective wirings of the appliances and will be responsible for receiving the output commands from the main board. The module will act as the receiver for the appliances and will be responsible for conveying the commands given by the main board from the user. SET-UP OF SOFTWARE C++ program language will be used as the main software language of the system. The code will be designed accordingly on the response of the circuit in the system. In order to set up the main program of the Arduino system, the mega will be connected into the PC/laptop via USB first and its code will be written next through the Windows application Arduino CC software. Once that is...

Words: 456 - Pages: 2