Tag Info

Hot answers tagged


Yes, there is. man bash will lead you to OLDPWD The previous working directory as set by the cd command.


It is mentioned in the man page, you just need to look at the right one. From man 5 crontab: By default, cron will send mail using the mail "Content-Type:" header of "text/plain" with the "charset=" parameter set to the charmap / codeset of the locale in which crond(8) is started up - ie. either the default system locale, if no LC_* environment ...


No, there is nothing wrong with copying the rc file somewhere else. That said, while you can indeed change your $HOME by adding HOME=/foo to one of the files read on startup (~/.profile, for example), that is really not a good idea. HOME is used by many things, not just your scripts and there's no reason to change it since that can have unintended ...


Since your path has spaces in it you need to enclose both the path AND the variable in "". Try this from the command line. export week4="/home/Justin/Week 4/assignment/" Now you should be able to navigate to that directory by typing cd $week4 If you want to make this permanent then add the same line to your .bashrc file.


The main problem is with the value of system variable PATH which contains relative folders in it, so for security reasons find command won't allow you to execute binaries, because potentially it can execute wrong programs. So for example, if you have your current dir in your PATH as per warning which you get: The current directory is included in the ...


The problem is that your java is not jdk but only jre. And it is installed a weird way. Install java a normal way by sudo apt-get install openjdk-7-jdk and set JAVA_HOME=/usr/lib/jvm/openjdk-7-jdk-amd64/


"Get unset randomly"? No. The PYTHONPATH environment variable is set by a process (probably running bash). If PYTHONPATH is exported, a copy of PYTHONPATH is passed to any processes started by this one (or any they start). If some child process destroys PYTHONPATH via: unset PYTHONPATH or PYTHONPATH= then the bad PYTHONPATH is visible only to ...


You can use -E sudo option to preserve current environment (if you have rights to do that) $ man sudo -E, --preserve-env Indicates to the security policy that the user wishes to preserve their existing environment variables. The security policy may return an error if the user does not have permission to preserve ...


As described in the PPA description: i386 and amd64 packages for Trusty Ubuntu release. Each package contains one Qt module and installs under the /opt/qt55 prefix. Source /opt/qt55/bin/qt55-env.sh to set the correct environment. therefore source /opt/qt55/bin/qt55-env.sh

Only top voted, non community-wiki answers of a minimum length are eligible