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
katrin2010 [14]
3 years ago
5

How would you move the file report7 in the current directory to the parent directory? 12) How can you copy all files from the cu

rrent directory to the parent? 13) Given that you are located in your home directory, what are three different ways you can create a directory named Junkyard in a subdirectory called Location that is in your home directory? i) ii) iii) 14) You are in your home directory, using the vi editor to edit a file called client-list that is under Proposals/Contracts/. You end the (vi) session. Which directory are you in now?
Computers and Technology
1 answer:
Andreyy893 years ago
5 0

Answer:

See explaination

Explanation:

Ans(11) mv report7 ../

Here ../ represents parent directory.

Ans(12) cp -r . ../

here r represent recursion. So this command recursively copies from the current folder to parent folder.

Ans(13) Three diffrent ways possible

1. mkdir Location/Junkyard

2. cd Location

mkdir Junkyard

3. Simplest ways to create a directory is without command : just go into Location directory and create a new folder Junkyard by right clicking with mouse.

Ans(14) After ending the v i session . I will be in home directory.

In simple terms, you will come back to the directory where you have started.

Ans(4) We have to copy that file to subdirectory Projects.

cp users_on /Projects

Now when we list the home directory and Projects directory we can see the users_on file.

You might be interested in
Explain word count <br>in ms word Processing​
Mamont248 [21]

Answer:

A word count is a numerical count of how many words a document contains.

Explanation:

Most word processors today can count how many words are in a document for the user.

When you type in a document, Word automatically counts the number of pages and words in your document  and displays them on the status bar at the bottom of the workspace.

Word also counts pages, paragraphs, lines, and characters.

3 0
3 years ago
Givе thе dеclaration for a function calculatеAvеragе() that takеs an array of doublеs and an int namеd count
Kisachek [45]

Answer:

void calculatеAvеragе(double array1[],int count);//function declaration

Explanation:

Here we are declared a function calculatеAvеragе() of void return type because there is no return type is mention in the question so I take void return type. The calculatеAvеragе() function takes two parameters one is an array of type double and other is a variable count of int types.

To declared any function we used following syntax

return_type functionname(parameter 1,parameter 2 .....parameter n)

So void calculatеAvеragе(double array1[],int count);

4 0
3 years ago
Implement a Breadth-First Search of the people in the network who are reachable from person id 3980. You can implement BFS with
Gnoma [55]

Answer:

Check the explanation

Explanation:

import java.io.File;

import java.io.FileNotFoundException;

import java.util.LinkedList;

import java.util.Scanner;

import static org.junit.Assert.assertEquals;

/**

* CS146 Assignment 3 Node class This class is used for undirected graphs

* represented as adjacency lists The areFriends() method checks if two people

* are friends by checking if an edge exists between the two

*

*/

public class NetworkAdjList {

   // Initialize array with max number of vertices taken from SNAP

   static int max_num_vertices = 88234;

   static LinkedList<Integer>[] adjacencyList = new LinkedList[max_num_vertices];

   public static void createAdjacencyList() {

       // Initialize array elements

       for (int j = 0; j < max_num_vertices; j++) {

           adjacencyList[j] = new LinkedList<Integer>();

       }

       // Get file path of the 3980.edges file

       String filePath = "C:\\Users\\shahd\\Documents\\CS146\\Assignment 3\\Question 3\\Question3\\src\\a3\\3980.edges";

       File f = new File(filePath);

       // Use Scanner to read edges from the file and put it into adjacency list

       int a;

       int b;

       try {

           Scanner fileIn = new Scanner(f);

           while (fileIn.hasNext()) {

               a = fileIn.nextInt();

               b = fileIn.nextInt();

               adjacencyList[a].add(b);

               adjacencyList[b].add(a); // We need to add the edges both ways

           }

       } catch (FileNotFoundException e) {

           e.printStackTrace();

       }

   }

   public static boolean areFriends(int A, int B) {

       // If the adjacency list contains (A, B) edge, then return true, else false

       if (adjacencyList[A].contains(B)) {

           return true;

       } else {

           return false;

       }

   }

  private static void bfsHelper(boolean visited[], int currentNode, int dis, int sourceNode) {

       dis++;

       if(!visited[currentNode]) {

           visited[currentNode] = true;

           

           for(int neighbor: adjacencyList[currentNode]) {

               System.out.println(neighbor + " is at a distance of " + dis + " from " + sourceNode);

               bfsHelper(visited, neighbor, dis++, sourceNode);

           }

       }

   }

   public static void BFStraversal(int start) {

       boolean visited[] = new boolean[max_num_vertices];

       bfsHelper(visited, start, 0, start);

   }

   public static void main(String[] args) {

       /**

        * These test cases assume the file 3980.edges was used

        */

       createAdjacencyList();

       System.out.println("Testing...");

       assertEquals(areFriends(4038, 4014), true);

       System.out.println("1 of 7");

       System.out.println("Testing...");

       assertEquals(areFriends(3982, 4037), true);

       System.out.println("2 of 7");

       System.out.println("Testing...");

       assertEquals(areFriends(4030, 4017), true);

       System.out.println("3 of 7");

       System.out.println("Testing...");

       assertEquals(areFriends(4030, 1), false);

       System.out.println("4 of 7");

       System.out.println("Testing...");

       assertEquals(areFriends(1, 4030), false);

       System.out.println("5 of 7");

       System.out.println("Testing...");

       assertEquals(areFriends(4003, 3980), true);

       System.out.println("6 of 7");

       System.out.println("Testing...");

       assertEquals(areFriends(3985, 4038), false);

       System.out.println("7 of 7");

       System.out.println("Success!");

   }

}

**************************************************

8 0
3 years ago
With which network connection type does the vm obtain ip addressing information from its host?
Alex73 [517]
<span>With which network connection type does the VM obtain ip addressing information from its host? Answer: Bridged Mode</span>
5 0
4 years ago
Which of the following is not a good technique for managing used oil
miv72 [106K]
What are the following choices
5 0
3 years ago
Read 2 more answers
Other questions:
  • Drag the tiles to the correct boxes to complete the pairs.
    7·2 answers
  • Consolidating a system's physical and time resources is known as ________________.
    13·1 answer
  • Microsoft acknowledged that if you type a res:// url (a microsoft-devised type of url) which is longer than ____ characters in i
    9·1 answer
  • 4. A computer architect boasted that they were able to design a computer in which every instruction occupied exactly thirty-two
    8·1 answer
  • How to build a 5*32 decoder by using 3*8 and 2*4 decoders? (digital design)
    15·1 answer
  • Create a datafile called superheroes.dat using any text-based editor, and enter at least three records storing superheroes’ name
    9·1 answer
  • . What is a destructor and what is its purpose?
    5·1 answer
  • Python
    5·1 answer
  • What does the digital living network alliance standardize
    12·1 answer
  • How to print something nad input on same line python
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!