How to delete an exported environment variable?

0 votes

Hi Guys,

I have exported some variables in my system. Now I don't need these variables. How can I remove these exported variables?

Sep 22 in Linux Administration by akhtar
• 27,980 points
23 views

1 answer to this question.

0 votes

Hi@akhtar,

To set an environment we used export command. Now to remove the environment variable from the system, you can use the unset command as shown below.

$ unset variable_name
answered Sep 22 by MD
• 64,820 points

Related Questions In Linux Administration

0 votes
2 answers

How to change IP address of an Ubuntu VM?

The easiest method is through network manager: 1- ...READ MORE

answered Aug 24 in Linux Administration by Pistle
• 300 points
807 views
0 votes
1 answer

How to display a simple list of all disks, like this /dev/sda /dev/sdb ?

You can list all the disk in ...READ MORE

answered Jul 12, 2018 in Linux Administration by DearestOne
• 200 points
1,203 views
0 votes
1 answer

How to increase Swap Memory in CentOS 7?

Follow the below steps and procedures: Prerequisites Must have ...READ MORE

answered Oct 5, 2018 in Linux Administration by Frankie
• 9,810 points
5,454 views
–1 vote
1 answer

How to use help command for ls?

The help command is limited and it ...READ MORE

answered Jan 3, 2019 in Linux Administration by Omkar
• 69,030 points
1,170 views
0 votes
1 answer
0 votes
1 answer

Deleting an exported environment variable

Just use unset command: unset GNUPLOT_DRIVER_DIR READ MORE

answered Mar 12, 2019 in Linux Administration by DareDev
• 6,870 points
689 views
0 votes
1 answer

How do I set variable if a specific package version is installed in CFEngine?

Here is what you can do.Just use packagesmatching to ...READ MORE

answered Jul 12, 2018 in Other DevOps Questions by Atul
• 10,240 points
203 views
0 votes
1 answer

Install postgreSQL on Ubuntu

Installing PostgreSQL on Ubuntu is very simple, ...READ MORE

answered Mar 22, 2019 in Database by Nitesh
168 views
0 votes
1 answer

How to block an IP address to connect my webserver?

Hi@akhtar, You can block one IP address using ...READ MORE

answered Jun 9 in Linux Administration by MD
• 64,820 points
91 views
0 votes
1 answer

How to delete one user from CentOS system?

Hi@akhtar, You can use userdel command to delete ...READ MORE

answered Jun 19 in Linux Administration by MD
• 64,820 points
60 views