A set of dynamic variables that can affect the running processes.
2
votes
1answer
31 views
sudo: allow one command to set one environment variable
On my Debian Stretch system, I have
Defaults env_reset
in my /etc/sudoers. I want to set up my system so that when running sshuttle, I don't have to enter my password for the call
sudo ...
1
vote
0answers
30 views
Allow user to run command as another user with their environment in sudoers
So, I have an entry that looks like this in my sudoers file:
user1 ALL=(user2) NOPASSWD: /scripts/dir/
This allows user1 to run all executables under /scripts/dir/ as user2 without entering their ...
0
votes
1answer
14 views
How can I pull an env variable into VIM key mapping?
I have the following [F3] key mapping defined in my .vimrc. This inserts a line of text into my file containing the current date such as 2012-01-20. It works in command or insert mode. How can I ...
1
vote
2answers
56 views
Can I have multiple directories set for $HOME?
I'm wondering if I can do something like:
export HOME=$HOME:$HOME/.configs
So that I can keep all my custom configs in ~/.configs.
I know it's possible to set it but I'm not sure if it will cause ...
7
votes
3answers
385 views
How to export variable for use with sudo?
On Slackware, using sbopkg permits one to build a package from source. Repos is not big as Debian, but it's nice.
Some software can use environment variables,
for example on the VICE c64 emulator, if ...
0
votes
1answer
46 views
How to correctly deal with locally built binaries
I tend to build binaries from sources.
My usual setup is the following
$HOME/build -> this gets the sources
$HOME/programs -> this is where the build happen, so where the binaries are
Once ...
0
votes
1answer
38 views
Why does the PATH variable include invalid directory paths in Fedora 25?
I am using fedora 25, my system in up to date to current date. Then type the command :
$ echo $PATH
/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/blackswan/....
1
vote
0answers
25 views
What is the standard approach for shared home directories for a user across multiple machines?
This is kind of a two-part question. In the case where there are multiple machines for which users get a single home directory - i.e. sshing into any of the machines, a user will find the same files ...
2
votes
2answers
144 views
Why does 'manpath' work and 'echo $MANPATH' does not?
I was just wondering why echo $MANPATH does not work (on my system (Debian Jessie x86_64 GNU/Linux 3.16.0-4-amd64)). The manpath command alone works well:
user@host:~$ manpath
/usr/local/man:/usr/...
3
votes
0answers
30 views
Raise 128KiB limit on environment variables in Linux
Linux seems to have a default limit of 128KiB (131072) on the length of any single environment variable -- any attempt to set an envvar longer than this and then run any program will result in an '...
2
votes
1answer
23 views
How can a script tell if Platform LSF is available in an environment?
We have some shell scripts that presently utilize Platform LSF to manage job execution.
These scripts will eventually be migrated to an environment that uses a different job scheduler.
During the ...
0
votes
1answer
66 views
How can I use ifuse command in a bash script? [duplicate]
When I enter this command in a terminal window, it works as expected:
ifuse "/home/sadi/mnt"
But it is ineffective when used in a bash script run via a .desktop file.
What can I do to use it like ...
0
votes
1answer
57 views
How to access environment variables from UNIX services dynamically?
I have a command-line program that is periodically run by services (either as a cronjob or by systemd) and it heavily depends on environment variables which are not static (that is, they might change) ...
1
vote
2answers
18 views
Variables configured in bashrc still been prompted to be exported
I've the this bash file that I need to export two variables SDK_PATH and BIN_PATH so to not worry exporting them anymore I added them in the ~/.bashrc file but when I run the bash it prompts me that I ...
22
votes
4answers
1k views
What is this Bash syntax: someVariable=someValue command
One of my coworkers has provided me with a Bash syntax that I am unfamiliar with. My Google foo has failed me on figuring out what it does and why/when I should use it.
The command that he sent me ...