LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   utility vs command (https://www.linuxquestions.org/questions/linux-newbie-8/utility-vs-command-4175533502/)

Upendra Pratap Singh 02-09-2015 09:57 AM

utility vs command
 
Can anyone tell me the difference between a command and a utility in a Linux system?

How are they each related to a program? Is there any formal definition for them that distinguishes them?

TB0ne 02-09-2015 10:16 AM

Quote:

Originally Posted by Upendra Pratap Singh (Post 5314433)
Can anyone tell me the difference between a command and a utility in a Linux system?

There isn't one, really. A 'command' may be considered a utility, really...such as "ls" is a command to do a directory listing, and can also be considered the UTILITY that you run to find out what files are in a directory. That's like asking, "what's the difference between a car and an vehicle?"
Quote:

How are they each related to a program?
Depends on what program you're talking about, in what context.
Quote:

Is there any formal definition for them that distinguishes them?
No.

Also, you've been using Linux for four years now....and this sounds very much like a homework question.

pan64 02-09-2015 10:42 AM

you may say program, utility and command are more or less the same thing (or synonyms).


All times are GMT -5. The time now is 11:25 AM.