O Exercise: 1- Explain the difference between the following commands: echo Hello and echo -n Hello. 2- Display A B C with two spaces between B and C. pg. 6 Exp.1/ Prepared by Dr. Fatemah Al Ass

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Transcribed Image Text

1- Explain the difference between the following commands: echo Hello and echo -n Hello. 2- Display A BC with two spaces between B and C. g. 6 Exp.1/ Prepared by Dr. Fatemah Al Assfor & Dr. Atheel Kadhum 3- Complete the following command (do not use spaces) to display exactly the following output: 4+4 =8 10+14=24

O Exercise:
1- Explain the difference between the following commands:
echo Hello
and
echo -n Hello.
2- Display A BC with two spaces between B and C.
pg. 6
Exp.1/ Prepared by Dr. Fatemah Al Assfor & Dr. Atheel Kadhum
3- Complete the following command (do not use spaces) to display exactly the following
output:
4+4 =8
10+14=24
4- Use echo to display the following exactly:
??\\
5- When you type passwd, which file is executed?
6- Echo it worked when touch test42 works, and echo it failed when the touch
failed. All on one command line as a normal user (not root). Test this line in your home
directory and in /bin/
7- Write a command line that executes rm file55. Your command line should print 'success' if
file55 is removed, and print 'failed' if there was a problem.
8- Use echo to display Hello followed by your username. (use a bash variable!)
echo Hello $USER.
Transcribed Image Text:O Exercise: 1- Explain the difference between the following commands: echo Hello and echo -n Hello. 2- Display A BC with two spaces between B and C. pg. 6 Exp.1/ Prepared by Dr. Fatemah Al Assfor & Dr. Atheel Kadhum 3- Complete the following command (do not use spaces) to display exactly the following output: 4+4 =8 10+14=24 4- Use echo to display the following exactly: ??\\ 5- When you type passwd, which file is executed? 6- Echo it worked when touch test42 works, and echo it failed when the touch failed. All on one command line as a normal user (not root). Test this line in your home directory and in /bin/ 7- Write a command line that executes rm file55. Your command line should print 'success' if file55 is removed, and print 'failed' if there was a problem. 8- Use echo to display Hello followed by your username. (use a bash variable!) echo Hello $USER.
Expert Solution
steps

Step by step

Solved in 9 steps with 3 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY