Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please Help With Unix/Linux Questions 1. In Windows Command Processor to display the content of a file named: file.txt we enter: type file.txt. What command

Please Help With Unix/Linux Questions

1. In Windows Command Processor to display the content of a file named: file.txt we enter: type file.txt. What command we enter in Unix? a) show file.txt b) type file.txt c) cat file.txt d) dog file.txt Answer Below:

2. To display the full path of the current working directory in UNIX we enter: pwd. What command we enter in Windows Command Processor? a) dir b) cd c) more d) None of the above Answer Below:

3. In UNIX wed like to have a command named show that works exactly like ls. Which of the following configuration line is correct? a) same show ls b) alias show=ls c) show=ls d) None of the above Answer Below:

4. To download the file: a.txt with URL named: http://csis.pace.edu/badii/a.txt to our UNIX account we enter: a) download http://csis.pace.edu/badii/a.txt b) wget http://csis.pace.edu/badii/a.txt c) move http://csis.pace.edu/badii/a.txt d) find http://csis.pace.edu/badii/a.txt Answer Below:

5. The content of the file: a.txt is: wxyz. What is the output of the following command? cat a.txt | cut -c 3 a) 3 b) wxy c) y d) z Answer Below:

6. To display help information for Windows commands in the DOS windows, we enter help. What command we enter in Unix? a) help b) inform c) man d) aid Answer Below:

7. To sort the contents of the file a.txt and save the results in a new file b.txt we write: a) sort a.txtb.txt d) sort a.txt | b.txt Answer Below:

8. What is the purpose of the following operator? >> a) It is used to send the output of one command so it becomes the input of a second command. b) It is used to send both input and output to the same file. c) It is used to overwrite the contents of a file. d) It appends data to a file without overwriting it. Answer Below:

9. What command is used to count the total number of lines, words, and characters contained in a file? a) countw b) wcount c) wc d) count p Answer Below:

10. What command is used with vi editor to delete a single character? a) x b) y c) a d) z Answer Below:

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Demystifying Databases A Hands On Guide For Database Management

Authors: Shiva Sukula

1st Edition

8170005345, 978-8170005346

More Books

Students also viewed these Databases questions

Question

KEY QUESTION Refer to the table in question

Answered: 1 week ago