---
name: "gmtget"
section: "1gmt"
platform: "linux"
package: "gmt-common"
version: "5.4.5+dfsg-2"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/gmtget"
---

# gmtget(1gmt)

Get individual GMT default parameters

## NAME

gmtget - Get individual GMT default parameters

## SYNOPSIS

**gmtget** \[  **-G***defaultsfile* \] \[  **-L** \] *PARAMETER1* \[ *PARAMETER2* *PARAMETER3* ... \]

**Note:** No space is allowed between the option flag and the associated arguments.

## DESCRIPTION

**gmtget** will list the value of one or more GMT default parameters.

## REQUIRED ARGUMENTS

- **PARAMETER**

  Provide one or several parameters of interest. The current value of those parameters will be written to *stdout*. For a complete listing of available parameters and their meaning, see the gmt.conf man page.

## OPTIONAL ARGUMENTS

- **-G***defaultsfile*

  Name of specific gmt.conf file to read \[Default looks first in current directory, then in your home directory, then in ~/.gmt and finally in the system defaults\].

- **-L**

  Return the values of the parameters on separate lines \[Default returns all selected parameter values on one line separated by spaces\]

## EXAMPLE

To list the value of the parameter PS\_COMMENTS:

```
gmt get PS_COMMENTS
```

To get both the values of the parameter MAP\_GRID\_CROSS\_SIZE\_PRIMARY and MAP\_GRID\_CROSS\_SIZE\_SECONDARY on one line, try

```
gmt get MAP_GRID_CROSS_SIZE_PRIMARY MAP_GRID_CROSS_SIZE_SECONDARY
```

## SEE ALSO

gmt, gmt.conf, gmtdefaults, gmtset

## COPYRIGHT

2019, P. Wessel, W. H. F. Smith, R. Scharroo, J. Luis, and F. Wobbe
