1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
sertanlavr [38]
3 years ago
7

Which of the following is not a command for determining if MySQL is running on Linux (Ubuntu)?

Computers and Technology
1 answer:
laila [671]3 years ago
6 0

Answer:

(c) sudo check status mysql

Explanation:

The commands service<em>, </em>ps<em> </em>and<em> </em>systemctl<em>, </em>are different ways to find out <em>if MySQL is running on Linux (Ubuntu), </em>but there is not such a command called <em>check</em> to do so in Linux.

Different programs in Linux operating system are organized in <em>processes</em>, and they are all created for a specific purpose: running an application, starting a web browser, and so on.

Some other programs like the <em>init program</em> start and stop essential service processes and there are currently two major implementations in Linux distributions:

  • <em>System V init</em> (traditional implementation)
  • <em>systemd</em> (emerging standard for <em>init</em>).

The commands service and systemctl are related to <em>System V init</em> and <em>systemd</em>, respectively, and can list the status of a program.

Thus, the command service can list if MySQL is running on Linux using the piece of code in the question: <em>sudo service mysql status</em>.

Likewise, the command systemctl can activate and deactivate services, and, among many other functionalities, list the status of a program (like the one in the question: <em>systemctl status mysql</em>).

The command ps (process status) "displays information about a selection of the active processes" [<em>ps</em> man page]. The command has many options, and some are -e (select all processes) and -f (full-format listing). In this case, the command output is <em>piped </em>to grep (global regular expression print) command to find those processes mainly related to 'mysql'.

It is important to remember that command <em>sudo</em> (superuser do) permits a user to "execute a command as the superuser or another user" [<em>sudo</em> man page], since commands <em>service</em> and <em>systemctl</em> require privileges to be run, for security reasons.

You might be interested in
Write a calculator program that will allow only addition, subtraction, multiplication &amp; division. Have the
sveta [45]

num1 = float(input("Enter the first number: "))

num2 = float(input("Enter the second number: "))

operation = input("Which operation are you performing? (a/s/m/d) ")

if operation == "a":

   print("{} + {} = {}".format(num1, num2, num1+num2))

elif operation == "s":

   print("{} - {} = {}".format(num1, num2, num1-num2))

elif operation == "m":

   print("{} * {} = {}".format(num1, num2, num1*num2))

elif operation == "d":

   print("{} / {} = {}".format(num1, num2, num1/num2))

I hope this helps!

5 0
3 years ago
Files exist on ____ storage devices, such as hard disks, dvds, usb drives, and reels of magnetic tape.
Verdich [7]
<span>Files exist on data storage devices, such as hard disks, DVDs, USB drives, and reels of magnetic tape.
</span>Data storage<span> is the recording (storing) of information (data) and </span><span>these data storage devices use</span> a technology consisting of computer components and recording media used to retain digital data.DVDs, USBs and hard disks are examples for external data storage devices.
8 0
3 years ago
Um?<br><br> i went to check my questions and i found this-
asambeis [7]

Answer:

just go ahead and refresh the page

Explanation:

5 0
2 years ago
Do you think I should ask out myrandaduro2005
HACTEHA [7]

Answer:

If you want, your choice

3 0
3 years ago
Read 2 more answers
Anyone have Minecraft dungeons I need help with it
steposvetlana [31]

Answer:

for sure add me upppp its mypplong

5 0
3 years ago
Read 2 more answers
Other questions:
  • _____________ is the characteristic of a resource that ensures that access is restricted to only permitted users, applications,
    14·1 answer
  • Will an email sent from a phone say it was sent from your phone
    5·2 answers
  • An automated service that consolidates and distributes information from newsgroups, blogs, forums and news websites is called
    11·1 answer
  • PLEASE HELP!!!!! (Environmental Science Semester 1)
    7·2 answers
  • Write a program that:
    13·1 answer
  • What are specific and relevant terms that will help you locate information using an internet search engine?
    10·1 answer
  • Define Agricultural Era
    14·2 answers
  • Running away from home
    11·2 answers
  • This question involves the creation and use of a spinner to generate random numbers in a game. a gamespinner object represents a
    8·1 answer
  • Consumers affect which goods and services are produced because they _____.
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!