Question

Can I get help with this problem? List, in order, on separate lines the commands you...

Can I get help with this problem?

List, in order, on separate lines the commands you would use to navigate to the /home/student directory in Centos Linux, list the contents, open a c++ file called test.cpp, edit it, then compile it using a c++11 standard

0 0
Add a comment Improve this question Transcribed image text
Answer #1

The sequence of commands are:

To change directory: cd /home/student

To list the contents: ls

To edit test.cpp: vi test.cpp

To compile test.cpp: g++ --std=c++11 test.cpp

-----------------------------------------------------------------------------------------

In case of any doubts or queries, please write in comments.:)

Add a comment
Know the answer?
Add Answer to:
Can I get help with this problem? List, in order, on separate lines the commands you...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • I'm stuck, if you can provide the code I can put it into the BASH environment...

    I'm stuck, if you can provide the code I can put it into the BASH environment Executing tasks: In this section of the project, you will demonstrate your ability to execute Linux commands to create files and create and organize the Linux directory structure. At the end of this section, you will create a log file that will include a list of all the commands you used to complete these steps. VII. In the workspace directory, create new directories titled...

  • i.) If the commands below will be executed in order, determine the output of the 4...

    i.) If the commands below will be executed in order, determine the output of the 4 echo commands (labeled as A-D): ( 2 Marks ) export z=3 e=10 echo $e - A bash echo $z -B k=4 sh Z=7 echo $k -C exit exit echo $z -D ii.) Given the contents of file (filename: /home/user5/research) below, write the single command line needed to perform the following tasks. SUMMARY GLOSSARY CHAPTER 1 Introduction and Research Approach Reach Obiective REFERENCES APPENDIX A...

  • Unix questions, i need help on Hint: Commands to study to answer this question: predefined shell...

    Unix questions, i need help on Hint: Commands to study to answer this question: predefined shell variables, and .profile script file, echo SHELL, HOME, PATH, MAIL and TERM are predefined shell variables. You can use the value of a shell variable in a shell command putting $ in front of it. For example, to display the value of the HOME directory of the user, specify $HOME in the echo command like echo $HOME. Do not give just the value of...

  • Some multiple choice questions of Computer Science: Linux command; Actually I can google it but the...

    Some multiple choice questions of Computer Science: Linux command; Actually I can google it but the choice here is a little..unclear. So I can't make sure..Thank you! 1:What does the Linux command “cat” do? a. copy the contents of a file to the screen b. count the number of characters in a file c. create a Linux catalog d. open up an edit session allowing you to modify a file 2:Which of the following Linux commands is best for getting...

  • LINUX QUESTIONS (dont have to display output, I will be running these commands myself to check...

    LINUX QUESTIONS (dont have to display output, I will be running these commands myself to check the output) Display the command(s) used to do the following: create an empty file called history by using just a redirection operator. Verify and show. Show/verify all results (i.e., all commands and their corresponding outputs). Wait 1 minute or more and then display the command(s) used to do the following: change the timestamp on the history file you just created. Verify/display the change. Show/verify...

  • Could you help me do the commands from nmber 16 to 21 For this assignment, you...

    Could you help me do the commands from nmber 16 to 21 For this assignment, you will: Unpack a tar archive. Change the unpacked files. Repack the files into a new tar archive. Turn in your new tar archive. Details Do not use an editor unless it specifically states to edit the file. By "editor" I mean vim, gedit, pico, etc. Despite its name, we don't consider sed to be an editor in this assignment, so you may use it...

  • Using Kali Linux, the Windows Linux Sub-System, or another Debian based Linux distribution, perform the following...

    Using Kali Linux, the Windows Linux Sub-System, or another Debian based Linux distribution, perform the following tasks based on the Linux Fundamentals lecture. For this lab, take screenshots for all major steps completed to illustrate that each task was successfully completed the same method as would be used for other labs). Tasks: 1. Create a new user named Billy Bob using the command linter face 2. Add Billy Bob to the sudoers group 3. Update and upgrade your Linux distribution...

  • I need help with this. 22. Show a command that will create a file named "etc.tar"...

    I need help with this. 22. Show a command that will create a file named "etc.tar" in your home directory from recursively going through all of the files in the "/etc" directory. In other words, the "etc.tar" file will include the files in the "/etc" directory as well as all of its subdirectories. IMPORTANT: This command must work for any user as well as work from any directory. 23. In bash, multiple commands can appear on a single command line...

  • 1.) If the commands below will be executed in order, determine the output of the 4...

    1.) If the commands below will be executed in order, determine the output of the 4 echo commands (labeled as A-D): (2 Marks) ra7 export b=9 echo $r 9=3 echo $b -B be8 bash echo $g exit echo $b -D exit ii.) Given the contents of file (filename: /home/user5/table) below, write the single command line needed to perform the following tasks. 7 2 Services 1 Executive Summary 1.1 Olives 12 6 Financial Plan Important Assumption Startup Funding Requirements Other Current...

  • linux help Create a file called trees, containing the following individual lines: Oak tree Pine Tree...

    linux help Create a file called trees, containing the following individual lines: Oak tree Pine Tree Spruce tree Cottonwood Maple tree Pine Tree Copy in the contents of the trees to more_trees file. Next, add the following trees at the end of the list. Redwood Willow tree Use a command to compare the trees and more_trees files and show the differences in terms of individual lines that differ. Determine the number of bytes in both the trees and more trees...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT