Greater than

Updated: 08/02/2019 by Computer Hope
Greater than

Alternatively called an angle bracket, the greater than symbol (>) is found on all computer keyboards. Usually, it's located on the same key as the period on U.S. keyboards. The greater than symbol resembles an arrow pointing to the right, and is commonly used in math and computer programming.

Tip

The wide edge of the greater than symbol always faces the larger number. For example, in "5 > 1" the large opening of the symbol is facing the 5, which is the bigger number.

Where is the greater than on the keyboard?

Below is an overview of a computer keyboard with the greater than key highlighted in blue.

Greater than key

How to create a greater than

Creating the > symbol on a U.S. keyboard

On English PC and Mac keyboards, the less than is on the same key as the period. Pressing and holding down the Shift key while pressing the greater than key creates the greater than symbol.

Creating the > symbol on a smartphone or tablet

On a mobile device, the OSK (on-screen keyboard) has a button to toggle between letters and symbols. Tap this button to reveal symbols including >. Tap the > symbol to insert it into your text.

What is a greater than used for on a computer?

With computers, the greater than is often seen on the command line prompt. Below are two examples of command line prompts using the greater than symbols.

MS-DOS prompt:
C:\Windows>

Linux and Unix prompt:
hope>

Below is an example of how the greater than could be used in math. In the example below, the statement is showing that 10 is greater than 2.

10 > 2

The next example below, is using the greater than as an append symbol to append text to a file in the Windows command line.

echo this is an example > test.txt

Finally, below is an example of how the greater than could be used in computer programming. In this example, the if statement is performed if the variable $myvalue is greater than 100. If the variable was less than 100, this section of code would be skipped.

if ($myvalue > 100) {
 print "More than 100.\n";
}

Greater than or equal to, GT, Keyboard terms, Less than, Redirect