1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Kobotan [32]
3 years ago
11

Demonstrate your grasp of the Unix file system by constructing a directory structure as follows: In your home ( ~ ) directory, c

reate a directory named "UnixCourse".This directory will be used in the remaining assignments of this course, as well as this one.Several of the commands that you will issue in this course will examine files in this directory and, in some cases, send me a listing of those files or even copies of those files for grading and diagnostic purposes. So you should not store anything unrelated to the course assignments in this ~/UnixCourse area. Within your UnixCourse directory, create a directory named "fileAsst". Within that fileAsst directory, create two directories, named "TweedleDee" and "TweedleDum".
Use the ls and/or tree command to check your work. Within the TweedleDee directory, you should place a copy of the file ~cs252/Assignments/fileAsst/hatter.txt

Use the ls and/or tree command to check your work. Within the TweedleDum directory, you should place a copy of the file ~cs252/Assignments/fileAsst/dormouse.txt Use the ls and/or tree command to check your work.

When you have completed this much, execute the command ~cs252/bin/fileAsst-1 (Take note of the difference between the numeric digit 1 and the lower-case letter l in the command above.

If you can’t tell the difference between these, check your web browser settings to see if you can get it to use some better fonts.) This will check to see if you have built the desired directory structure so far. You should repeat the above steps as necessary until this command reports success.

If you have been successful so far, the fileAsst-1 command will have placed a new file somewhere in the directory structure you have built.

Find it, and move it into the TweedleDee directory, renaming the file to "rabbit.dat". Execute the command ~cs252/bin/fileAsst-2
Computers and Technology
1 answer:
s2008m [1.1K]3 years ago
7 0

Answer:

The steps to follow in executing the command are listed in the Explanation section

Explanation:

Open the terminal using Ctrl + Alt + T

To go to home directory, type: cd ~ OR just cd

To create a directory named UnixCourse, type: mkdir UnixCourse

To change directory to UnixCourse, type: cd UnixCourse

To create a fileAsst directory, type: mkdir fileAsst

To change directory into fileAsst, type: cd fileAsst

To create TweedleDee directory, type: mkdir TweedleDee

To create TweedleDum direectory, type: mkdir TweedleDum

To view the directory, type: ls

To copy from one directory to another:

cp ~/cs252/Assignments/fileAsst/hatter.txt  ~/UnixCourse/fileAsst/TweedleDee

To change to TweedleDee directory and list to view:

cd TweedleDee

ls

cd .. (this is to go back to the fileAsst directory)

To copy from one directory to another:

cp ~/cs252/Assignments/fileAsst/dormouse.txt  ~/UnixCourse/fileAsst/TweedleDum

To change to TweedleDum directory and list to view:

cd TweedleDum

ls

cd .. (this is to go back to the fileAsst directory)

The command below is executed as required:

~/cs252/bin/fileAsst-1

We check the directory for new file:

ls (to display entire file/folder)

then move the new file to TweedleDee directory

mv ~/UnixCourse/fileAsst/'name of file' ~/UnixCourse/fileAsst/TweedleDee

we then rename the file to rabbit.dat

mv ~/UnixCourse/fileAsst/TweedleDee/'name of file' ~/UnixCourse/fileAsst/TweedleDee/rabbit.dat

cd .. (this is to go back to the fileAsst directory)

The command below is executed as required:

~/cs252/bin/fileAsst-2

You might be interested in
Write the percentage 5 1/4 as a decimal​
Alborosie

Answer:

The answer is 5.25.

Explanation:

Out of 100% 1/4 is always 25.

7 0
3 years ago
Create a function that will perform linear interpolation from a set of measured data stored in a list or array. The function sho
wel

Answer:

This question is incomplete, here is the complete question:

Python

a) You should create a function that will perform linear interpolation from a set of measured data. The function should take as input a list of values at which samples were taken, and then another list giving the measurements (you can assume each measurement is a single value) at those values. It should also take in a query value, and should give the best estimate it can of the value at that query. Be sure to handle values that are outside of the range, by extrapolating. You should write a program that allows you to test your function by reading the lists from a file where each line of the file is a pair of numbers separated by spaces: the value where the sample was taken, and the measurement at that value. Your program should ask the user for the name of the file and for a query value. Important: The two lists will correspond to each other: i.e. for the i-th value in the first list, the measurement will be the i-th element of the second list (these are called parallel lists or arrays). But, you should not assume that the input values are in increasing/decreasing order. That is, the values in the first list can be in any random ordering, not necessarily from smallest to largest or largest to smallest. You will have to account for this in your program, and there is more than one way to do so. You should discuss what options you can think of to handle the data arriving in any order like that, and decide what you think the best option for handling it is.

Explanation:

from __future__ import division

from cStringIO import StringIO

import numpy as np

from scipy.interpolate import RectBivariateSpline

np.set_printoptions( 1, threshold=100, edgeitems=10, suppress=True )

   # a file inline, for testing --

myfile = StringIO( """

# T P1 P2 P3 P4

0,   80,100,150,200

75, 400,405,415,430

100, 450,456,467,483

150, 500,507,519,536

200, 550,558,571,589

""" )

   # file -> numpy array --

   # (all rows must have the same number of columns)

TPU = np.loadtxt( myfile, delimiter="," )

P = TPU[0,1:] # top row

T = TPU[ 1:,0] # left col

U = TPU[1:,1:] # 4 x 4, 400 .. 589

print "T:", T

print "P:", P

print "U:", U

interpolator = RectBivariateSpline( T, P, U, kx=1, ky=1 ) # 1 bilinear, 3 spline

   # try some t, p --

for t, p in (

   (75, 80),

   (75, 200),

   (87.5, 90),

   (200, 80),

   (200, 90),

   ):

   u = interpolator( t, p )

   print "t %5.1f p %5.1f -> u %5.1f" % (t, p, u)

8 0
3 years ago
Write a program that takes in an integer in the range 20-98 as input. The output is a countdown starting from the integer, and s
S_A_V [24]

Answer:

// program in C++.

#include <bits/stdc++.h>

using namespace std;

int main() {

//  variable  

int num;

cout<<"Enter the number between 20 and 98: ";

// read number

cin >> num;

while(num<20||num>98)

{

   cout<<"Wrong input!!enter number between 20-98 only:";

   cin>>num;

}

cout<<"The output is: ";

while(num % 10 != num /10)

{

// print numbers.  

cout<<num<<" ";

// update num.

num--;

}

// display the number.

cout<<num<<endl;;

return 0;

}

Explanation:

Read a number from user and assign it to variable "num".Check if entered number  is in between 20-98 or not.If input number is less than 20 or greater than 98 then  ask again to enter a number between 20-98 until user enter a valid input.Then print  the countdown from input number till both the digit of number are same.

Output:

Enter the number between 20 and 98: 99                                                                                    

Wrong input!!enter number between 20-98 only:12                                                                            

Wrong input!!enter number between 20-98 only:93                                                                            

The output is: 93 92 91 90 89 88

Enter the number between 20 and 98: 77                                                                                    

The output is: 77

7 0
3 years ago
Different computer applications and their uses.
sukhopar [10]

Answer:

Application Software Type Examples

Word processing software MS Word, WordPad and Notepad

Database software Oracle, MS Access etc

Spreadsheet software Apple Numbers, Microsoft Excel

Multimedia software Real Player, Media Player

Presentation Software Microsoft Power Point, Keynotes

Explanation:

5 0
3 years ago
Is used to process certificates and private/public key information?
Luda [366]
<span>SSL is used to process certificates and private/public key information. </span>SSL stands for Secure Sockets Layer. It is cryptographic protocols <span> that creates a trusted environment and </span>provides communications security over a computer network. The SSL protocol is used for establishing encrypted links between a web server and a browser.
4 0
3 years ago
Other questions:
  • Which of the following correctly describes the function of an IP address?
    7·1 answer
  • What is a way to Procter your social security number and other sensitive information from identity theft
    9·1 answer
  • You use different office apps to accomplish specific tasks, such a creating a newsletter or producing a sales presentation, yet
    8·1 answer
  • Your boss is very skeptical about the idea of storing his files up in the cloud rather
    8·1 answer
  • What is the value of variable num after the following code segment is executed?
    5·1 answer
  • Consider a binary-search method in an array that reports whether an object is in the array. The documentation indicates that the
    11·1 answer
  • When designing your navigation, your primary objective should be to include keywords for search engines.
    6·1 answer
  • What are the advantages of using digital signals over analog signals? Scientist have found advantages when they convert digital
    5·2 answers
  • Can an SQL function return multiple values? No answer needed, take the points.
    12·1 answer
  • Which storage device is not recommended as a permanent storage solution?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!