Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

1. I am now in $HOME/sales/east directory. I want to have my login shell display me today's date whenever I login every time by telnet.
For this, what steps I have to do?
A. $ vi .profile
Type one line : echo "Today's date is `date`"
$ chmod +x .profile
$ . .profile

B. $ cd ../..
$ vi .profile
Type one line : echo "Today's date is `date`"
$ export .profile
$ .profile

C. $ cd $HOME
$ vi .profile
Type one line : echo "Today's date is `date`"
$ . .profile

D. $ vi ~/.profile
Type one line : echo "Today's date is "date"
$ . .profile

2A. Why I am getting this error when I assign like this ?
$ FIRST-NAME=smith
ksh: FIRST-NAME=smith: not found.
 
2B. Under ksh or bash shell environments, what is the problem here ?
$ export PATH=/usr/bin /usr/local/bin /usr/ucb/bin

3. Executing cp temp/temp1 temp1.txt it will result in...

A. Error since the same filename is used
B. Error since an extension is used for the second temp1
C. It will move the contents of temp1 from directory temp to temp1 of current directory and when finished it will erase the contents of temp1 of temp directory
D. It will copy temp1 from directory temp to temp1.txt of current directory

4. What kind of files will be matched by the following when you list by ls command:
For Ex :
$ ls [a-z][0-9]

This matches any file with 2 characters, first being a lower case letter and the second being a number from 0 to 9

A. ls [0-9][a-z][0-9][A-Z] -- Note : there are no spaces anywhere.

B. ls [A-Z0-9_][A-Za-z_0-9] -- Note : there are no spaces anywhere.

C. ls [0-9]Z[0-9]

 

5. What is the command to list files in a directory:

A. Having only three alphabets:

B. Starting with a digit and ending with a digit

6. There are many C programs in my directory which have an extension of .c (ex : first.c, second.c etc).
How can I concatenate all C files into one file called "myC_files

7. How do you sort first 15 lines in a file called 'datafile" ? (You need to use a pipe)
 
8. How do you add a line to the end of an existing file "myfile" with date stamp.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91357312
  • Price:- $40

Guranteed 36 Hours Delivery, In Price:- $40

Have any Question?


Related Questions in Computer Engineering

A substring is a contiguous sequence of characters from a

A substring is a contiguous sequence of characters from a string. For example, "cde" is a substring of the string "abcdefg". We say that substring s1 is duplicated in string s if s1 shows us in s at least two times, with ...

Suppose i am designing a personnel database for a

Suppose I am designing a personnel database for a university. The university has three types of personnel: students, staff, and faculty. Here are the characteristics of the three groups: -All three groups have a name and ...

Question a sequential circuit with two d flip-flops a and b

Question : A sequential circuit with two D flip-flops A and B, one input X and one output Y is specified by the following equations: Da = X'(A+B), Db = A'B, Y = A'XB' (a) Draw the circuit diagram. (b) Derive the state ta ...

Technology certainly does play a large role in our lives

Technology certainly does play a large role in our lives and this has happened in a very short period of time. It has impacted the way we activities professionally, personally, and academically. For example, online educa ...

If a wooden car has 30 independent components that all must

If a wooden car has 30 independent components that all must function for the wooden car to operate successfully during a race, and the probability of successful operation for any single component is 0.999, what is the pr ...

A random sample ofnbsp87nbspeighth gradenbspstudents scores

A random sample of 87 eighth grade? students' scores on a national mathematics assessment test has a mean score of 279. This test result prompts a state school administrator to declare that the mean score for the? state' ...

Represent each of the following values in the ieee 754

Represent each of the following values in the IEEE 754 32-bit format, truncating inexact values. Indicate the percent error of the value stored compared to the exact value. This will require you to convert the 32 bit flo ...

Question suppose we are given a chain of n nodes as shown

Question : Suppose we are given a "chain" of n nodes as shown below. Each node i is "neighbors" with the node to its left and the node to its right (if they exist). An independent set of these nodes is a subset of the no ...

Explain that our ability to secure each computers stored

Explain that our ability to secure each computers stored information is now influenced by the security on each computer to which it is connected

Answer as thorough as possiblenbspinclude an explanation of

Answer as thorough as possible, Include an explanation of your recommendations or trading strategies. Should you early exercise the following American-style put option? If not always, under what situation would you early ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As