answersLogoWhite

0


Best Answer

It depends on which shell program you are using. The 'set' command may be used in some shells, and the 'env' command may also be used. Just be aware that some of the commands will only show you variables that have been exported to the environment, whereas other commands will show all variables in the environment, whether they were exported or not.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

11y ago

The command is "env." Be careful, though, you'll probably want to use a pager like "more" or "less" as you'll encounter a lot of them.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is a command for display all environment variables in Linux?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What does the sar command do in Linux?

SAR is a command in Linux that serves as a heads up display for the activity of your CPU. There are roughly 40 different syntax you can add to the command to display specific variables of interest.


What is the purpose of the export command in Linux?

export command used to export one or more variables to the environment. For Ex: $ scname=kugu $ export scname In the Korn shell( KSHELL),we can combine these commands into one command: $export scname=kugu Use the env (or printenv ) command to display all environment variables and their current values.


What is the command used to check the pid of all the processes current running in Linux environment?

Type top in a terminal to display Linux processes, which includes PID.


What is the Linux command to display your hostname?

hostname.


What linux command to display ip?

ifconfig


How do you start the display program in Linux from the command line?

the command "display" brings up the ImageMagick program.


What is the command used on a linux machine to display the mac address?

''ipconfig/all''


What command displays the time on most Linux and Unix computer?

The time command is used to time a command and not display the actual time. To display the time and date, the date command must be used.


How do you specify the display in Linux?

If you want to run something on an existing X display from a console the correct syntax is: DISPLAY=":0.0" (command) Of course, it might just be easier to go to your X display and run your command from there.


What is the command to display your current location in Linux?

pwdThis is short for "Print current directory."


What Linux command is used to compare the difference between two file display the difference?

The command is: diff file1.txt file2.txt


Ignou mca 2nd semester solved assignment?

write the Linux command for the following: 1) to display yhe information about Is command i need assignments