PRINTENV(1) BSD General Commands Manual PRINTENV(1)NAME
printenv -- print out the environment
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.
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.
The printenv command appeared in 3.0BSD.
BSD May 12, 2003 BSD
Check Out this Related Man Page
PRINTENV(1) User Commands PRINTENV(1)NAME
printenv - print all or part of environment
Print the values of the specified environment VARIABLE(s). If no VARIABLE is specified, print name and value pairs for them all.
--help display this help and exit
output version information and exit
NOTE: your shell may have its own version of printenv, which usually supersedes the version described here. Please refer to your shell's
documentation for details about the options it supports.
Written by David MacKenzie and Richard Mlynarik.
Report printenv bugs to email@example.com
GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
General help using GNU software: <http://www.gnu.org/gethelp/>
Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
The full documentation for printenv is maintained as a Texinfo manual. If the info and printenv programs are properly installed at your
site, the command
info coreutils 'printenv invocation'
should give you access to the complete manual.
GNU coreutils 7.1 July 2010 PRINTENV(1)
Hi want to know the syntax of printing something (value or variable) in GNU make utility. I give this in the Makefile:
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)
I have the following variables set in my env
I want to insert them between the xml tags in my xml file
:::::::::::::::::::::::... (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)