unix script command and echo command, Operating System

Assignment Help:

Objectives

1.    Login to UNIX system and logout

2.    Learn features of the vi editor and to use online help (main pages).  Gain experience using them to create a document

3.    Know a list of UNIX commands with one line description for each

4.   Learn redirecting standard output (stdout) to a file using the output redirection operator >instead of output going to the monitor, the default device for stdout.

5.   Learn more on UNIX file system such as file attributes (permissions), ownership, links, file size, modification date, and inode number of files, and system directories and files

6.    Gain experience using a set of UNIX commands covered in chapters 1, 2, 3, and 4

7.    Learn to transfer files between UNIX system and Windows system and print them

8.    Understand the output of various commands and answer questions

This homework has two parts.  You must complete both parts and submit them together on or before the due date using the UNIX server at the university. 

The answers must be obtained by issuing the necessary UNIX commands on the FSU UNIX server. To capture the output of a UNIX command use the script command as described below:

1. Using scriptcommand lets you record your login session in a file. To start script type the command script and to end the capture, type exit command. The script command creates a file called, "typescript" in your current working directory in your account, if you do not specify any filename with script command as argument. If you want the output to go to a specific filename of your choice, then specify the filename as the argument to script command, like script hw1q1output. Refer your textbook for more information on the use of script command. When you use script command, make sure you (1) type "Enter" key few times to get space between questions, (2) then, issue the echo command to display the question number, like echo hw1q1, (3) type "Enter" key few times to get space after the question number, and then (4) type the required UNIX command(s) for that question. An example is given below for question #1. In this example, $ is the prompt displayed by the Bourne Shell, which processes the UNIX commands you type.
$
$ echo Q1
$
$ uname

Caution:
Every time you type script command, it will erase the current content of the "typescript" file or the filename you specify in the script command. To avoid losing the answers you have obtained so far for one or more questions, you must copy the typescript file into another file using the cp command as shown below:
cp typescript hw1q1to5

wherehw1q1to5 is a filename.


Related Discussions:- unix script command and echo command

Define what is dispatcher, Define what is Dispatcher In the Worker Mode...

Define what is Dispatcher In the Worker Model, it is the task of the Dispatcher to spawn a thread for every client-to-server connection. The Dispatcher acts as the go-between o

Define an imperative statement, Determine an imperative statement Imper...

Determine an imperative statement Imperative statement points out an action to be carried out during execution of assembled program

What is the basic approach of page replacement, What is the basic approach ...

What is the basic approach of page replacement? If no frame is free is available, find one that is not presently being used and free it. A frame can be freed by writing its con

Explain single level directory structure, Single level directory: This ...

Single level directory: This is the easiest directory structure. All the files are controlled in the same directory, which is simple to support and understand. Few of the li

Define input - output operations, Q. Define Input - Output operations? ...

Q. Define Input - Output operations? Serial lines, Disks, tapes and other devices should be communicated with at a very low level. The user require only specify the device and

Define inter process communication (ipc), The term IPC (Inter-Process Commu...

The term IPC (Inter-Process Communication) defines several paths by which different process executing on some operating system interact between each other.

Major advantages of microkernel approach to system design, Q. What are the ...

Q. What are the major advantages of the microkernel approach to system design? Answer: Benefits usually include the following (a) Adding a new service doesn't require modify

Define file permission in unix, The permission function is used to calculat...

The permission function is used to calculate what, if any access each class or level of user has to each file on a Unix machine. The permission task is one of the data components s

What is the purpose of the virtual memory in windows xp, Question: a) T...

Question: a) The following refers to optimization under Windows XP: i) Give five steps which could undertake to enhance overall system performance in a default Windows XP in

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd