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, 2020 in Linux Administration by akhtar
• 38,170 points
68 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, 2020 by MD
• 95,060 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, 2020 in Linux Administration by Pistle
• 300 points
2,019 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
2,127 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
6,608 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,090 points
1,385 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,890 points
1,046 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
257 views
0 votes
2 answers

Install postgreSQL on Ubuntu

Follow the below commands to install PostgreSQL (PSQL) ...READ MORE

answered Nov 11, 2020 in Database by Prachi
• 140 points
236 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, 2020 in Linux Administration by MD
• 95,060 points
116 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, 2020 in Linux Administration by MD
• 95,060 points
81 views