Question

In: Computer Science

Run the commands used for following tasks and paste the screen shots here: a) Search/find a...

Run the commands used for following tasks and paste the screen shots here:

a) Search/find a specified word in a file and display all the lines containing that word.

b) List all the files and directories in the current directory (including the hidden files).

c) Change to the root directory / and show a complete long listing of it.

d) Append the output of file1 to file2. [1 Mark] e) Count how many lines, words and characters in file1.

f) Create, copy, append and display the content of a file.

Solutions

Expert Solution

I created two files named file1.txt and file2.txt.

The contents of file1.txt are:

The contents of file2.txt are:

a) grep -i "word" file name will print  the lines that the word contains in a file

b)List all files and directories in a current directory including hidden files.

command : ls -a

c)change to root directory / and show a complete long listing of it.

commands used :

To change to root directory : cd /

For long listing: ls -al

d) Append the output of file1 to file2:

command used: cat file1.txt>>file2.txt

I HOPE THIS WILL HELP YOU.......


Related Solutions

Run the following ANOVA analysis in excel and interpret your findings. Upload your screen shots of...
Run the following ANOVA analysis in excel and interpret your findings. Upload your screen shots of the steps you took in running the analysis in excel. Treatment 1 Treatment 2 Treatment 3 0 1 6 1 4 5 0 1 8 3 2 5
Run the following ANOVA analysis in excel and interpret your findings. Upload your screen shots of...
Run the following ANOVA analysis in excel and interpret your findings. Upload your screen shots of the steps you took in running the analysis in excel. Treatment 1 Treatment 2 Treatment 3 0 1 6 1 4 5 0 1 8 3 2 5
Run Python code  List as Stack  and verify the following calculations; submit screen shots in a single file....
Run Python code  List as Stack  and verify the following calculations; submit screen shots in a single file. Postfix Expression                Result 4 5 7 2 + - * = -16 3 4 + 2  * 7 / = 2 5 7 + 6 2 -  * = 48 4 2 3 5 1 - + * + = 18    List as Stack """ File: pyStackPostfix.py Author: JD """ # 5 7 + 6 2 -  * = 48 print("Postfix Calculator\n") stack = []              # Empty stack...
Solve problems using Minitab. Show evidence that they used the program by putting screen shots of...
Solve problems using Minitab. Show evidence that they used the program by putting screen shots of the results. Will give good rating. Exercises: 1. Among the 120 applicants for a job, only 80 are qualified. If 5 of these applicants are selected at random for an interview, answer the following: to. Identify the random process b. Define a variable c. Associate the random variable with a distribution and its parameters Solve the following questions using Minitab: d. Find the probability...
Solve problems using Minitab. Show evidence that they used the program by putting screen shots of...
Solve problems using Minitab. Show evidence that they used the program by putting screen shots of the results. Will give good rating 2. On a certain cruise, there are, on average, 3 traffic accidents each month. Answer the following: to. Identify the random process b. Define a variable c. Associate the random variable with a distribution and its parameters Solve the following questions using Minitab: d. Find the probability that in a period of 2 months exactly 4 accidents will...
USING EXCEL!! FOR BOTH PROBLEMS SCREEN SHOTS OF WORK PLEASE 19. Write the following primal problem...
USING EXCEL!! FOR BOTH PROBLEMS SCREEN SHOTS OF WORK PLEASE 19. Write the following primal problem in canonical form, and find its dual. Max 3x1+1x2+5x3+3x4 s.t. 3x1+1x2+2x3 = 30 2x1+1x2+3x3+1x4 >= 15 2x2+3x4<= 25 x1,x2,x3,x4 >= 0 20. Photo Chemicals produces two types of photograph-developing fluids at a cost of $1.00 per gallon. Let x1 = gallons of product 1 x2 = gallons of product 2 Photo Chemicals management requires that at least 30 gallons of product 1 and at...
Using your Virtual machine, do the following tasks. Put the commands you executed in this document....
Using your Virtual machine, do the following tasks. Put the commands you executed in this document. PART1:             You will be required to add 3 users to your system. For the sake of simplicity, use the following information for your user accounts: USER1 Full Name / Comment: George Jetson Username: jetsong Password: jetsong USER2             Full Name / Comment: Fred Flintstone             Username: flintstonef             Password: flintstonef USER3             Full Name / Comment: Johnny Bravo             Username: bravoj             Password:...
a.)Which of the following commands can be used to change the stateof a process,...
a.)Which of the following commands can be used to change the state of a process, including to stop a process?endkillstophaltb.)Responding to ping requests can leave a system vulnerable to which of the following?TCP wrappersDoS attacksMan-in-the-middle attacksAll of the abovec.)Which of the following is the de facto standard name resolution solution for the majority of systems connected to the Internet?DHCPLDAPDNSNISd.)DHCP stands for which of the following?Dynamic Host Configuration ProtocolDomain Host Configuration ProtocolDomain Host Configuration ProcessDynamic Host Configuration Processe.)After installing the correct...
Given a minimum unimodal array of integers, run the binary search algorithm to find the minimum...
Given a minimum unimodal array of integers, run the binary search algorithm to find the minimum element. You need to show the initial and the iteration-level values of the left index, right index and middle index as well as your decisions to reduce the search space in each iteration. 42 39 2 6 9 16 20 28 31 34
Write and run SQL statements to complete the following tasks Show the details of the employees...
Write and run SQL statements to complete the following tasks Show the details of the employees who are located in area code 901 and their manager employee number is 108. Show the details of the employees who are also mangers. Show the details of the customers whose balance is greater than 220 but less than 500. Show the details of the customers whose balance is highest. Show customer 10014’s name and the product’s descriptions which he/she purchased and the number...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT