Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Question # 1: Practice the following commands in the given sequence and write th

ID: 3610000 • Letter: Q

Question

Question # 1:
Practice the following commands in the given sequence and write theresult against each given command. You can assume that in thebeginning you are present in the home directory.
• $ mkdir ~/Desktop/CS604
• $ cp ~/Desktop/program.c ~/Desktop/CS604 (before runningthis command you have to create a file yourself with the nameprogram.c on your desktop)
• cd Desktop
• $ rmdir CS604
• $rm –r CS604

Question # 2:
You have to give commands for each of the followingfunctionality.

1. Change your current directory from home to Desktop. (providecomplete command)
2. Create a directory with the name CS604 on your desktop. (providecomplete command)
3. If you have developed a C program with the name FirstProgram.cthen provide the command that can compile this program.
4. After compilation, run the FirstProgram.c program.



Explanation / Answer

Well, from what I can see you do the following: Make a Desktop folder entitled CS614 Copy a '.c' program from your desktop into the folder Change current directory to Desktop Remove CS604 Remove CS604 without confirming Please note you may need to be root in order to perform any/most ofthese commands so the command line will probably throw errorsthere. If CS604 doesn't already exist, it will also throw anerror saying that the folder doesn't exist. Even if you DIDmake it, the second remove (without confirming) would error becausethe file had already been removed. Question #2: ok, to the best of my knowledge, this should work: 1. change directory command is "cd"     Command: cd /home/(your username)/Desktop 2. make directory command is "mkdir"     Command (if current directory is NOT Desktop):mkdir /home/(your username)/Desktop/CS604     Command (if you have already "cd"d to DesktopDirectory): mkdir CS604 3. To compile a program (I think this should work but i'm notsure):     Command: sudo make (program directory) 4. I'm not sure how exactly to do this last part, but try checkingout: http://ubuntuforums.org/archive/index.php/t-29698.html Hope this helps, Kevin