At the CentOS 6 command line, you want to find out which services are started at runlevel 5. Explain two ways that you could do this.
In CentOS 6 we have following utilities:
1) chkConfig: This is basically a utility that is being used in
centos to know about the services on any runlevel. With this
command we can also stop and start any
service on any run level.
2) ntsysv: Its easier to use than chkConfig as its provide the very interactive interface
At the CentOS 6 command line, you want to find out which services are started at...
(COMMAND LINE) I have a file, abc.csv and I am interested in a command line solution (not something like C coding) for the following: In which zip code was the highest number of narcotic/drug offenses. ZIP_CODE and ABC_CODE are the relevant headings but there are many headings and many records within the file. Within ABC_CODE, 35A and 35B are narcotic and drug offenses. So, I want to find out which zip code has the highest number of narcotic/drug offenses, which...
C Language program problem.
Suppose that I want to create a program by using command line.
User will type a name of file such as "test.data" to access the
content of the file.
Program should scan whole file and create a list with 30
position .
You should show the two situation, one is for when scanned
space, the other one is when it scanned new line.
Then the other task is printing them out.
You see there are spaces...
What command would you use to find out which libraries are linked to the /bin/znew executable program? When you ran this command what message did you receive on the console?
You want to use a command line utility that’s designed to view, update, and fix network settings from a host computer on the network, but you aren’t sure of the exact syntax options that can be used with this command. Of the following, what should you type at the command prompt to get help with this command? A. net /? B. netstat /? C. net use /? D. net view /?
You will be making a program that can take command like args. Using command line arguments, allow the program to do the following If the command is -i, print: Integer, and then print the integer after it. If the command is -f print: float, and then print the float after it if the command is -s print: string, and then print the string after it. If the command is -h print: all the commands, and the syntax If the command...
Command line input In C++ it is possible to accept command line arguments. Command-line arguments are given after the name of a program in command-line operating systems like Linux and are passed in to the program from the operating system. To use command line arguments in the program, it must first understand the full declaration of the main function, which until now has accepted no arguments. In fact, main can accept two arguments: one argument is number of command line...
You are working on an assembly line and you want to find out how confident by 90% that the project will be a good investment? The MARR is 12%. Optimistic Most Likely Pessimistic Initial Cost $40,000 $32,000 $49,000 Annual Cost $17,000 $24,000 $25,000 Annual Revenue $30,000 $37,000 $35,000 Salvage Value (PV) $8,000 $5,000 $5,000 Life Cycle 25 years 15 years 15 years Probablity 65% 75% 55%
Exploring Utilities in linux 1. Describe the steps and command that is required to translate all the characters in a file called May-2014 report from lowercase to uppercase. 2. Describe the steps and command that is required to translate all the blank characters to new line characters (new line character = ‘\n’) in a file called May-2014. 3. Describe the steps and command that are required to change all instances of the work “May” to the word “MAY” in the...
Given an array of numbers, you want to find out the three greatest numbers. Do you have to sort the array, or is there a faster way than applying a sorting algorithm? Explain why you use or not use sorting in terms of the worst-case running time. Give an example.
For our assignment we have to use four optional command line arguments through a makefile (which says args= ${ss} ${nn} ${mm} ${pp}). They can leave out any of those variables they want, but if there is more than one they have to be in a certain order. The command line would read something like "make run2 ss=0" or "make run2 ss=0 nn=16 mm=3 pp=src" How do I use these variables in my main method? Can I just somehow use the...