How to Enter UNIX Commands | Basic Teradata Query - Entering UNIX Commands - Basic Teradata Query

Basic Teradata® Query Reference - 20.00

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
Lake
VMware
Product
Basic Teradata Query
Release Number
20.00
Published
October 2023
ft:locale
en-US
ft:lastEdition
2025-06-12
dita:mapPath
gxl1691484661681.ditamap
dita:ditavalPath
obe1474387269547.ditaval
dita:id
psp1479308573013
Product Category
Teradata Tools and Utilities

For workstation-attached systems on UNIX, use the UNIX EXECUTE SHELL command with the BTEQ OS command to display the UNIX command prompt. Then, after entering UNIX commands, press and hold the Ctrl+D keys to return to BTEQ.

Example – UNIX Command

.OS [exec sh | sh]
$ pg myfile.one
$ cp oldfile.txt newfile.txt
$ cd draft
$ [<cntrl>/<d> or exit] 
BTEQ -- Enter your logon or BTEQ command: