Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I want to put a command over SSH to my CentOS server;

Are the comands for CentOS same with Ubuntu? Are the following commands work for CentOS? https://help.ubuntu.com/8.04/basic-commands/C/index.html

if not where can I find the documentation of CentOS Comands?

share|improve this question

migrated from stackoverflow.com Aug 13 '11 at 10:45

This question came from our site for professional and enthusiast programmers.

closed as not a real question by womble, ewwhite, MadHatter, andol, MDMarra Nov 15 '11 at 19:34

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Both are Linux.... both will likely use bash as default shell....other commands depend on which software you have installed (obviously). The homepage is centos.org –  Felix Aug 13 '11 at 10:33
    
Are the following commands work for CentOS? help.ubuntu.com/8.04/basic-commands/C/index.html –  user163616 Aug 13 '11 at 10:42
    
Why don't you just try them? –  Felix Aug 13 '11 at 10:44

1 Answer 1

up vote 1 down vote accepted

Both are Linux distributions. The bash commands are the same for each distribution. There are eventually differences in shell script syntax depending on the shell version you are using (bash, ksh, zsh, ...).

For what concern SSH, it shouldn't have different syntax or options. The only thing you need eventually to check if the SSH version is the same on both machines. Very old version of SSH may have different options and feature, but this isn't dependend from the linux distribution.

share|improve this answer

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