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,210 points
490 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,320 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 25, 2020 in Linux Administration by Pistle
• 300 points
4,359 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
3,104 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
8,112 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,150 points
1,717 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 13, 2019 in Linux Administration by DareDev
• 6,890 points
1,420 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,230 points
390 views
0 votes
2 answers

Install postgreSQL on Ubuntu

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

answered Nov 12, 2020 in Database by Prachi
• 140 points
323 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 10, 2020 in Linux Administration by MD
• 95,320 points
182 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,320 points
137 views