shell


How to make “alt+f2” to reload PATH variable without rebooting


When I append new path like export PATH="$PATH:/opt/shortcuts" to /etc/profile, I must reboot for alt+f2 run application dialog to reload the PATH to make alt+f2 effective .
Is there a way to do that without rebooting?
EDIT:
Is there a way to do that without rebooting or re-loggining?
Yes. You can just source the /etc/profile (it is what reboot does).
source /etc/profile

Related Links

Shell script, directory is writable strange behavior
forward slash escape deleting files
Calculating a to power b (a^b) in shell script
for loop in UNIX Script is not working
sed replace patterns except when it matches some specific pattern
Shell Script, finding time difference and traversing a file
Portable shell solution to check if PID is zombied
Awk adding constant values
How to comment out particular lines in a shell script?
Unix shell / ssh - How to remove folder “backups\r\r”
how to verify unix wait and then run next command
Chain multiple awk commands and shell scripts in sequence
sml configuration on ubuntu, how to run sml on command instead of the full path?
Grep to extract the word matching the given pattern
Find all *.sh files in directory
What are the uses of the exec command in shell scripts?

Categories

HOME
sonarqube
django
google-app-engine
android-studio-2.2
interface
apiblueprint
vscode-extensions
alarm
access
tivoli
rom
simulink
pkcs#11
g++
github-enterprise
text-mining
activecollab
endpoint
renjin
docx
git-extensions
sigma.js
delphi-xe5
exploit
epsilon
pic32
pylons
appirater
android-things
comparable
browser-sync
zend-debugger
record
turfjs
jbutton
simplecv
papaparse
gnat-gps
joomla2.5
installscript
pdw-file-browser
playframework-2.1
node-mssql
demo
google-data-api
p4merge
news
tasm
dbnull
clang++
memory-mapping
lampp
magento-2.0.7
netbeans6.8
lightning
singleinstance
page-replacement
boxing
compiler-design
yii2-user
oracleclient
jqchart
arules
er-diagram
flac
android-instrumentation
pocketsphinx-android
change-tracking
docpad
cifilter
hadoop-partitioning
createprocess
zscript
dulwich
gamekit
pseudo-class
administration
jama
codeplex
xml-dsig
ios8-extension
git-repo
http-status-code-410
preload
bjyauthorize
panda3d
qtconcurrent
vfs
veracity
update-statement
tournament
squishit
load-time
skype4java
wordprocessingml
xpsdocument
fdf
appliance

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile