Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

environment-variables

How to run a program in a clean environment in bash?

August 10, 2022 by Magenaut

I want to run a program in an empty environment (i.e. with no envariables set). How to do this in bash?

Categories Q&A, Unix & Linux Tags bash, environment-variables Leave a comment

“not a valid identifier” when I do “export $PATH”

August 10, 2022 by Magenaut

When I run export $PATH in bash, I get the error not a valid identifier. Why?

Categories Q&A, Unix & Linux Tags bash, environment-variables, shell Leave a comment

Set environment variables for gnome on wayland and bash on virtual terminals (or ssh)

August 10, 2022 by Magenaut

Gnome 3.22 uses wayland by default. Gnome on wayland does not read ~/.profile (or ~/.bash_profile or /etc/profile). See https://bugzilla.gnome.org/show_bug.cgi?id=736660.

Categories Q&A, Unix & Linux Tags environment-variables, gnome, profile, wayland Leave a comment

What is the difference in usage between shell variables and environment variables?

August 10, 2022 by Magenaut

I actually did not know there are two different types of variables I can access from the command line. All I knew is, that I can declare variables like:

Categories Q&A, Unix & Linux Tags command-line, environment-variables, shell Leave a comment

Where have I set my bash PATH?

August 10, 2022 by Magenaut

I want to remove ~/bin from my PATH.  I set it up months ago when Linux (Ubuntu) was very new to me, but I don’t know how I added it…

Categories Q&A, Unix & Linux Tags bash, environment-variables, path Leave a comment

Env vars in /etc/environment not globally visible?

August 10, 2022 by Magenaut

I am trying to create a systemd service;

Categories Q&A, Unix & Linux Tags environment-variables, systemd Leave a comment

Is GNOME Terminal a type of non-login shell?

August 10, 2022 by Magenaut

According to the answer to What are login and non-login shells? on Ask Ubuntu, GNOME Terminal is a type of non-login shell.
As pointed out in the excellent book, A Practical Guide to Fedora and Red Hat Enterprise Linux, 6th Edition:

Categories Q&A, Unix & Linux Tags bash, environment-variables, login, shell Leave a comment

How to make unix service see environment variables?

August 9, 2022 by Magenaut

I have set my environment variable using /etc/profile:

Categories Q&A, Unix & Linux Tags environment-variables, init-script, services Leave a comment

What is the difference between ‘env’ and ‘printenv’?

August 9, 2022 by Magenaut

What is the difference between the two commands env and printenv? They both show the environment variables, and the output is exactly the same aside from _.

Categories Q&A, Unix & Linux Tags environment-variables Leave a comment

Removing a directory from PATH

August 9, 2022 by Magenaut

I’m trying to compile wxWidgets using MingW, and I have cygwin in my path, which seems to conflict. So I would like to remove /d/Programme/cygwin/bin from the PATH variable and I wonder if there is some elegant way to do this.

Categories Q&A, Unix & Linux Tags bash, environment-variables, path, shell Leave a comment
Older posts
Newer posts
← Previous Page1 … Page3 Page4 Page5 … Page7 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress