CSCI_3232_Systems Software_A1_Summer_2018.docx

CSCI_3232_Systems Software_A1_Summer_2018.docx - Assignment...

This preview shows 1 out of 2 pages.

Assignment 1: Familiarization with Linux, System Tools and C Compiler Due: Monday, May 21, 11:30pm Learn and understand the functionality of all practiced commands in the following! Start your Ubuntu VM or physical Ubuntu machine and login. Select Accessory/Terminal to open a window running the Bash shell. Type “ echo $SHELL ” to find out what shell is running. Type " help " to learn about a list of shell commands defined internally. Put all your answers to the following questions in the table at the end of this document. 1. Three of the text editors available in Ubuntu are nano , gedit and vi . Of these gedit is a GUI program. Type the following program in an editor of your choice, then save in a file named hello.c . If ProgramA is not installed, type sudo apt-get install ProgramA to install it. Note: You may google "Linux vi tutorial" for the commands to navigate the vi editor. You can also search online tutorials for nano and gedit . Get familiar with at least one of these editors. What is your favorite among these three editors? _______________________(as noted above: Put all your answers in the table at the end of this document.) #include <stdio.h> int main(int argc, char *argv[]) { fprintf(stdout, "hello world\n"); return 0; } 2. Use pwd to print the current working directory. What is the output and what is the meaning of this output? ______________________ 3. Type man mkdir . Type q to quit manual and return to shell command prompt. (Note vi is used for display. The man [1-8] command can be used to get manual for any command. ) What is displayed on the first line of the output? What is the meaning of the whole output? ___________________ 4. Type clear and then type mkdir . What is displayed on the first line of the output? What is the functionality of this mkdir command? _____________________________ 5. Type mkdir --help . What is displayed on the first line of the displayed output? What is the meaning of the whole output? ________________________ (From 3 & 5, notice there might be multiple ways to get help about how to use a command.) 6. Create a directory named test using the mkdir command.
Image of page 1

Subscribe to view the full document.

Image of page 2
You've reached the end of this preview.
  • Spring '14
  • Greca,Ardian
  • Working directory

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern