Code: Select all
A process in this terminal is still running. Closing the terminal will interrupt the process
What's the matter?
thanx
s
Code: Select all
A process in this terminal is still running. Closing the terminal will interrupt the process
Code: Select all
samiel@darkstar:~$ su -
Password:
root@darkstar:~# tlmgr update --self --all --reinstall-forcibly-removed --repository http://mirror.ctan.org/systems/texlive/tlnet
tlmgr: package repository http://ctan.mirror.garr.it/mirrors/CTAN/systems/texlive/tlnet (verified)
tlmgr: saving backups to /usr/local/texlive/2018/tlpkg/backups
[1/4, ??:??/??:??] update: pxjahyper [105k] (46440 -> 48207) ... done
[2/4, 00:00/00:00] update: texlive-docindex [237k] (48194 -> 48205) ... done
[3/4, 00:01/00:02] update: texlive-scripts [118k] (48162 -> 48205) ... done
[4/4, 00:02/00:03] update: todonotes [439k] (48181 -> 48208) ... done
running mktexlsr ...
done running mktexlsr.
running mtxrun --generate ...
done running mtxrun --generate.
tlmgr: package log updated: /usr/local/texlive/2018/texmf-var/web2c/tlmgr.log
su
is running until you explicitly end it using exit.When a process finishes your prompt will reappearBut updating LaTeX is already finished,...
As smurphos said, you launched su, until you exit that it remains running. That's why it's preferable to use the
sudo
prefix to launch a command that you need to run with elevated privileges.Nope - sudo temporarily gives your user root privileges but does not change the user. su switches to the root user.
Code: Select all
source
Code: Select all
su
Code: Select all
su -
env PATH="/TEMPPATH:$PATH" program
.sudo -i program
will handle your current way of doing things but without having to open a root shell.Code: Select all
PATH=/usr/local/texlive/2018/bin/x86_64-linux:$PATH; export PATH
MANPATH=/usr/local/texlive/2018/texmf-dist/doc/man:$MANPATH; export MANPATH
INFOPATH=/usr/local/texlive/2018/texmf-dist/doc/info:$INFOPATH; export INFOPATH