PRINTENV(1) BSD General Commands Manual PRINTENV(1)NAME
printenv -- print out the environment
SYNOPSIS
printenv [name]
DESCRIPTION
The printenv utility prints out the names and values of the variables in the environment, with one name/value pair per line. If name is
specified, only its value is printed.
Some shells may provide a builtin printenv command which is similar or identical to this utility. Consult the builtin(1) manual page.
EXIT STATUS
The printenv utility exits 0 on success, and >0 if an error occurs.
SEE ALSO csh(1), env(1), sh(1), environ(7)STANDARDS
The printenv utility is provided for compatibility with earlier BSD and FreeBSD releases and is not specified by any standards. The func-
tionality of printenv can be duplicated with the echo(1) and env(1) utilities.
HISTORY
The printenv command appeared in 3.0BSD.
BSD May 12, 2003 BSD
Check Out this Related Man Page
printenv(1B) SunOS/BSD Compatibility Package Commands printenv(1B)NAME
printenv - display environment variables currently set
SYNOPSIS
/usr/ucb/printenv [variable]
DESCRIPTION
printenv prints out the values of the variables in the environment. If a variable is specified, only its value is printed.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWscpu |
+-----------------------------+-----------------------------+
SEE ALSO csh(1), echo(1), sh(1), stty(1), tset(1B), attributes(5), environ(5)DIAGNOSTICS
If a variable is specified and it is not defined in the environment, printenv returns an exit status of 1.
SunOS 5.10 14 Sep 1992 printenv(1B)
When I type "printenv" I have some informations as LANG PATH PWD....
- Where is the file which contain this informations?
- When PWD is charged in the system...
Thanks... (1 Reply)
Hi want to know the syntax of printing something (value or variable) in GNU make utility. I give this in the Makefile:
echo "Hi"
OR
@echo "Hi"
But I only get error this when I run make (at the line where I have echo):
Makefile:9: *** missing separator. Stop.
Whats the problem? How can... (2 Replies)
1. The problem statement, all variables and given/known data:
saferm is a replacement for the rm utility. Rather than removing files, it move files in a sub directoy called".saferm" in the user's home directory. If "~/.saferm" doesn't exist, it is automatically created. The -l options lists the ... (3 Replies)
Hello,
I have the following variables set in my env
echo $MY_XSD_FILE
/home/jak/sample.xsd
echo $MY_INTERVAL_VALUE
4
I want to insert them between the xml tags in my xml file
cat sample.xml
:::::::::::::::
:::::::::::::::
<property name="FILE"></property>
:::::::::::::::::::::::... (2 Replies)
The 'env' command prints out all of the environment variables and their values.
Come up with a command that prints a list of environment variables whose names
end with either 'NAME', 'DIR' or 'PATH'.
What I've tried.
$ env | grep ''
Although it highlights the part of the variables... (8 Replies)