Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2 . Follow the Textbook Appendix B and the Unix Tutorial PPT given in the homework folder to complete the following tasks on the ASU

2. Follow the Textbook Appendix B and the Unix Tutorial PPT given in the homework folder to complete the following tasks on the ASU General server:
2.1 Create a new directory called CSE240. Use cd CSE240 to enter the new directory. Use pwd command to find the path from the Unix root directory to your current directory.
2.2 Create three new subdirectories inside CSE240. Name the directories d1, d2, and d3 respectively.
2.3 Enter the directory d1 and use nano or vim to create a new program called hello.c and enter the following code into the program. You must use your name to replace the name John Doe. Save the file.
Use gcc hello.c -o hello to compile the program. Fix any compilation errors if any.
2.4 Use ls, ls -l, and ls -al respectively to list files in d1 directory. Use command ./hello to execute the compiled code. .[3 points]
Take screenshots of each command in this question. You may take one screenshot with all commands in it.

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

Information Modeling And Relational Databases

Authors: Terry Halpin, Tony Morgan

2nd Edition

0123735688, 978-0123735683

More Books

Students also viewed these Databases questions