List a sequence of Linux commands you would execute after you
successfully log on to your VM machine, make a directory called
midterm in your home directory, create a simple C program called
display.c in the newly created directory, compile the code using
gcc compiler, and run the program, and finally, save the output to
a text file called display.txt. Remember to briefly explain each
command.
PLEASE GIVE IT A THUMBS UP, I SERIOUSLY NEED ONE, IF YOU NEED ANY MODIFICATION THEN LET ME KNOW, I WILL DO IT FOR YOU
1. mkdir // This command creates a new directory named 'midterm' inside the home directory
2. cd // To move into the newly created 'midterm directory, use command cd(change directory)
3. gedit display.c //creates a C file inside the 'midterm 'directory
4.gcc display.c //compiles the C file display.c
5../a.out > display.txt // run the program and output is redirected to the file display.txt using output redirection operator(>)
6. cat display.txt // displays the contents of file display.txt
Get Answers For Free
Most questions answered within 1 hours.