Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm new to the Linux world. I'm curious to know if the command line syntax is the same between Linux and Ubuntu?

share|improve this question
    
Yes. Ubuntu is a Linux dsitribution, it uses the Linux Kernel.Commands only differ between distros using different package managers. –  Uri Herrera Aug 1 '11 at 20:24
1  
It is not at all true that the only difference between distros is the package manager. –  Jo-Erlend Schinstad Aug 1 '11 at 21:39
    
Of course not i explicitly stated that Commands vary between distros,one example of this is using different package managers, that is you can't use apt-get on Pardus. –  Uri Herrera Aug 2 '11 at 3:31
add comment

3 Answers

Just to clarify:

  • Linux is the kernel that Ubuntu and many other distributions use.
  • Linux is not an operating system.
  • A Linux distribution is a set of software that includes an operating system as well as other utilities that make the operating system useful. (ie gnome)
  • Because they are different things, a distribution and a kernel are not comparable items.

Ubuntu is a Linux distribution that uses the Linux kernel, the standard GNU toolkit and a whole lot of other free software stacked on top.

The command-line utilities are not provided by Linux. Most core utilities are provided by the GNU project. Some are specific to the distribution (eg apt-get is specific to Debian-based distros). The rest come from any number of other independent sources.

Depending on your definition of 'command-line structure', every GNU distribution uses the same 'command-link structure'. I would consider android, for instance, a Linux distribution but not an GNU distribution. Most Linux distributions adhere to the Linux Standard Base. This sets out the rules for where files go, and how things are structured (amongst other things).

On the other hand, you could also say that 'command-line structure' changes based on the shell that you use.

share|improve this answer
add comment

In Ubuntu the command line is managed by bash, the Bourne Again SHell, unless you change the default.

Its syntax is the same on every linux box, apart from version differences.

It is different if we talk about the system tools, that can have some little or big differences, for example in the field of package management.

share|improve this answer
1  
This is true as far as it goes, but a lot of the "command line structure" is provided by the actual command executables, not by bash itself. –  poolie Aug 1 '11 at 22:51
    
use scsh and tell me you still believe that. 'command line structure' is too vague of a term to conclude that. scsh.net/about/what.html –  user606723 Aug 3 '11 at 18:56
add comment

The simple answer is yes, the command line structure of Linux is the same as the command line structure of Ubuntu. "Linux" is often used, loosely, to refer to operating systems as a whole which are built around the Linux kernel; more accurate descriptions are more wordy.

Currently, Ubuntu is the most popular Linux distribution for personal computers. A default installation of Ubuntu includes all the commonly used command line tools for Linux-based operating systems, including the BASH shell and the full suite of GNU tools. If someone says, "Do this in Linux", it will almost certainly be something you can do in Ubuntu, and there's a good chance that Ubuntu was what they had in mind when they said "Linux".

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.