1. The _____________ command can be used to create empty files with a one line command. 2. The _____________ command is used to
broadcast messages to everyone currently logged onto the system. 3. What is apt-get used for? 4. Write the command line you would use to give the owner of the file mydata full rights and read only permission to everyone else. 5. What command allows you to log in under another user id? 6. What command do you use to get input from the user? 7. What command would allow you to determine what programs were eating up the most CPU time? 8. A user on your network has received an error message stating that another user has the same IP address as they do. You need to have the users tell you what their IP address is. What command should they use? 9. What command do you use to print the environmental variables to the screen? 10. Give an example of how to run a script or command in the background.
3.apt-get is the command-line tool for handling packages, and may be considered the user's "back-end" to other tools using the APT library
4. -rwxrw-r-
5. sudo command
6. read command is used for getting user input in a Linux shell script.
7. top command
8. ask them to use dig command.
9. Type echo $PATH at the command prompt and press ↵ Enter
10. If a process is already in execution, such as the tar command example below, simply press Ctrl+Z to stop it then enter the command bg to continue with its execution in the background as a job. You can view all your background jobs by typing jobs.
"int result= doubleIt(15);" is the correct answer for the above question
Explanation:
The function in a c++ programming is used to perform some specific tasks for the user. If a user wants to use any function, Then there is needs to do three things, which are as follows:-
Firstly, there is needs to give the prototype for any function,
Then there is a needs to define the function body.
Then there is needs to call the function
The function can be called by the help of " data_type variable_name = function_name (argument_list);" syntax in c++.