answersLogoWhite

0

Almost everything.

C:

if (expression) statement

else statement

Shell:

if COMMANDS

then COMMANDS

else COMMANDS

fi

Note: these parts can be separated with semicolon as well, eg:

if test x"$SHELL" = x"/bin/bash"; then echo 'Bash'; else echo 'Other'; fi

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

What is the difference between Windows Unix and Linux?

what are similarities and differences between linux and unix?


What is the mission statement of Red Hat Linux?

go to www.redhat.com and see..


What is the difference between shells in Linux?

There are many shells available for Linux; you need to be specific about the ones you want to compare.


What is difference between EL4 and EL5?

What is the difference between Redhat Linux EL4 and EL5.


What is the difference between Linux and OpenOffice?

Linux is an operating system kernel. OpenOffice is an office suite (collection of office programs).


What is the difference between apple OS and Linux?

Apple is more popular Linux is ok OS is Crap. There you go! You got an answer!


What is Root user in a Linux machine?

The root account is the administrative account on Linux; this account has control over everything in the system.


What is the difference between Linux and an operating system?

Linux is an operating system kernel. It is a portion of the software that makes up a complete operating system.


Where can you find the control panel in Linux?

There are several different graphical interfaces for Linux, each of which have their features in different locations. You must specify what interface you are using.


How do you control Virus?

I use Linux for internet surfing and all things in browser. For music I use Windows7, becouse music program for linux is junk.


What is the main difference in between redhat Linux and fedora Linux?

The term "main difference" is vague and subject to interpretation. I'll try to list a couple of what some folks consider "notable" differences. 1) Redhat Linux is normally purchased and various levels of support are also available for purchase. Fedora Linux is free (free as in beer as the saying goes). 2) Redhat Linux contains some features/enhancements not necessarily found in Fedora Linux or CentOS Linux - mostly these features are designed for enterprise environments. Hope this helps.


Is there anything like a Windows Interface Adaptor which would help us to execute a code written on Linux using remote windows server?

Your question isn't exactly clear on whether you are trying to run a program on Linux or Windows, using one to control the other from a distance. If you are trying to control a Linux server from Windows, you can use a program called PuTTY to log into it remotely. If you are using Linux, a few Remote Desktop Protocol programs to control Windows are available.