Close terminal for multiple users Let's suppose I run the terminal as &lt;username&gt;. Then I switch to root:  su - root   and then back to the &lt;username&gt;.  So I was wondering if there's some option (or some other command) for exit to close the console for all these sessions, 'cause when i run exit at that point, it takes me back to root and then to my &lt;username&gt; again.
Exit from both root and user with one command I know about "not using sudo su -" etc. But let's be honest, almost all of us do it.   So, here is the issue. We can't have root logins enabled, so we have to ssh in as our user then su to root.  Here is the process tree:       1  7897  7826  7826 ?           -1 S     1000   0:00 sshd: josh@pts/0  7897  7898  7898  7898 pts/0     8182 Ss    1000   0:00  \_ -bash  7898  7990  7990  7898 pts/0     8182 S        0   0:00      \_ sudo su -  7990  7991  7990  7898 pts/0     8182 S        0   0:00          \_ su -  7991  7992  7992  7898 pts/0     8182 S        0   0:00              \_  -su  7992  8182  8182  7898 pts/0     8182 R+       0   0:00                  \_ ps axjf   I would like to exit from root, then from my user with one command. Is there a way to do this?  BTW exit &amp;&amp; exit does not work because it exits the shell and doesnt process the rest of the command  josh@ubuntu:~$ sudo su - root@ubuntu:~# exit &amp;&amp; exit logout josh@ubuntu:~$
How do I install the Firefox Developer Edition? How do I get Pokémon Go to detect my phone's orientation? When initiating a battle it starts off in AR mode, but then warns me saying my phone's orientation is not detected. I am then forced to turn off AR mode. Has anybody experienced this? If so, what are the solutions?    Per comments, I am unsure this is a permissions issue. I have everything turned on. Topology induced by seminorms and initial topology Let's say we have a family of seminorms $(\rho_\alpha)_{\alpha \in A}$ on a vector space $V$.  There are two ways to topologize $V$ using those seminorms:   We define topology $\mathcal S$ by a subbasis consisting of sets of the form $$ B_{x, \alpha, \epsilon} =\{v \in V : \rho_\alpha(v - x) &lt; \epsilon \} $$ for some $\epsilon &gt; 0, x \in V, \alpha \in A$. We define topology $\mathcal I$ as the smallest topology in which the seminorms are continuous.   I've showed that the seminorms are continuous in $\mathcal S$, and that  implies $\mathcal I \subseteq \mathcal S$. I'm having trouble with the other direction. It is clear to me that $B_{0, \alpha, \epsilon} = \rho_\alpha^{-1}  ((-\epsilon, \epsilon ))$, so it's enough to show that vector addition is continuous in respect to $\mathcal I$, but I don't know how to do that. What is a good word for “best example”? What is a good word for “best example”? I would like to describe a film as the greatest example of its features. How to create this curved shadow in Photoshop? How to create the shadow effect like the URL/image below? Specifically, the rounded/curved shadow at the bottom: Resolve $\lim_{x \to 0} \frac {\tan 3x}{\tan 5x}$ I started resolving this limit:  $$\lim_{x \to 0} \dfrac{\tan 3x}{\tan 5x}$$  so:  $$\begin{align}\lim_{x \to 0} \dfrac{\tan 3x}{ \tan 5x} &amp; = \lim_{x \to 0} \dfrac{\frac{\sin 3x}{\cos 3x }}{\frac{\sin 5x}{\cos 5x}} \\ \\ &amp; = \lim_{x \to 0} \dfrac{ \sin (3x) \cdot \cos (5x)}{ \sin(5x) \cdot \cos (3x)}\\ \\ &amp; = \quad?\end{align}$$  Could someone help me please Install MS Truetype Fonts system-wide for all users I would like to install the MS Truetype Fonts that come through the package ttf-mscorefonts-installer, so I did:  sudo apt-get install ttf-mscorefonts-installer   Accepting the license, the process completes without any errors. The fonts end up in     /usr/share/fonts/truetype/msttcorefonts   as expected. Just to be sure, I also did a  sudo fc-cache -f -s -v   which among other things says in its output:     /usr/share/fonts/truetype/msttcorefonts: caching, new cache contents: 60 fonts, 0 dirs   So far, so good (and inline with question ) However, when I then open any font dialog (e.g. in OpenOffice or the font dialog of the terminal) I don't see all of the new fonts. For Arial, the standard form is missing, but bold and italic are there. Times New Roman is missing altogether.  I can use nautilus to browse to the font directory, double click the Arial.ttf file and see the font in all its beauty. I can even click the install button then and the font is copied over to my personal ./fonts directory and from there on visible to my apps. But it is not picked up from the system directory.  How do I get these fonts available system-wide for all users? Unable to correctly install pip3 using apt-get I am using Ubuntu 16.04, and was experiencing issues with my pip3. Specifically, when I attempted to uninstall a package via  sudo pip3 uninstall   I encountered   Traceback (most recent call last):   File "/usr/bin/pip3", line 9, in &lt;module&gt;     from pip import main ImportError: cannot import name 'main'   I attempted to resolve this issue by reinstalling pip3, specifically   sudo python3 -m pip uninstall pip &amp;&amp; sudo apt install python3-pip --reinstall   which succeeded. However, I no longer have a local version of pip3 at all  bash: /home/kurt/.local/bin/pip3: No such file or directory   Using which pip3 in a new terminal I find,  $ which pip3 /usr/bin/pip3   and attempting to use pip3 at all brings me  $ pip3 Traceback (most recent call last): File "/usr/lib/python3/dist-packages/pip/_vendor/__init__.py", line 33, in vendored     __import__(vendored_name, globals(), locals(), level=0) ImportError: No module named 'pip._vendor.pkg_resources'  During handling of the above exception, another exception occurred:  Traceback (most recent call last): File "/usr/bin/pip3", line 9, in &lt;module&gt;     from pip import main File "/usr/lib/python3/dist-packages/pip/__init__.py", line 13, in &lt;module&gt;     from pip.exceptions import InstallationError, CommandError, PipError File "/usr/lib/python3/dist-packages/pip/exceptions.py", line 6, in &lt;module&gt;     from pip._vendor.six import iteritems File "/usr/lib/python3/dist-packages/pip/_vendor/__init__.py", line 75, in &lt;module&gt;     vendored("pkg_resources") File "/usr/lib/python3/dist-packages/pip/_vendor/__init__.py", line 36, in vendored     __import__(modulename, globals(), locals(), level=0) File "&lt;frozen importlib._bootstrap&gt;", line 969, in _find_and_load File "&lt;frozen importlib._bootstrap&gt;", line 958, in _find_and_load_unlocked File "&lt;frozen importlib._bootstrap&gt;", line 664, in _load_unlocked File "&lt;frozen importlib._bootstrap&gt;", line 634, in _load_backward_compatible File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/__init__.py", line 2927, in &lt;module&gt; File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/__init__.py", line 2913, in _call_aside File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/__init__.py", line 2952, in _initialize_master_working_set File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/__init__.py", line 956, in subscribe File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/__init__.py", line 2952, in &lt;lambda&gt; File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/__init__.py", line 2515, in activate File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/__init__.py", line 2097, in declare_namespace File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/__init__.py", line 2047, in _handle_ns File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/__init__.py", line 2066, in _rebuild_mod_path AttributeError: '_NamespacePath' object has no attribute 'sort'   However, I am able to execute without incident when typing sudo -H pip3 -v. Reinstalling pip3 from apt, e.g.  sudo apt-get install python3-pip --reinstall   has no effect. If anyone has any insight, or has encountered a similar problem, I would greatly appreciate any input on how to approach this problem. Unit testing is, roughly speaking, testing bits of your code in isolation with test code. The immediate advantages that come to mind are:  Running the tests becomes automate-able and repeatable You can test at a much more granular level than point-and-click testing via a GUI    My question is, what are the current &quot;best practices&quot; in terms of tools as well as when and where to use unit testing as part of your daily coding? Lets try to be somewhat language agnostic and cover all the bases. Uncaught ReferenceError: $ is not defined? I have Ubuntu 12.04 LTS. I need the correct output because I edited it because it wasn't working but it has only made it worse. Nautilus context menu for current directory when there's lots of files / "Open in Terminal" C++ deleting line of text in a file Is the following just a matter of showing the 3 properties that make up a metric??  Define d on $\Bbb R\times\Bbb R$ by $d(x,y)=\min \{1,|x-y|\}$. Show that $d$ is a metric on $\Bbb R$     $d(x,y)=0$ if $x=y$   $d(x,y)=d(y,x)$ for every $x,y \in X$   $d(x,y)\le d(x,z)+d(z,y)$ for every $x,y,z \in X$ How many 5-cards poker hands are there containing at least 3 of the 4 suits?  I don't how know how to properly handle this question.  There 13 ranks of each card, and 4 suits  My Attempt:  Begin with the first 3: C(13,3) X 4 ways to choose suits  Then pick last 3 cards of anything:  C(49,2)  My solution: 1,345,344  Thanks, Is it possible to detect a virus with taskmanager? If I would have a running virus on my system, would I be able to see the process in taskmanager? I mean, would it be possible for a running virus to circumvent the taskmanager so the process doesn't appear in the tasklist of windows7?  Or in other words. If I really now all the processes in taskmanager to be secure, I also know that my PC is clean? What level are spells cast at if a warlock multiclasses as another caster? How do I find the caller of a method using stacktrace or reflection? Receiving Stack Overflow's Chat Notification This is regarding the feature where we can chat regarding a question on SO. There is an automated process for creating the room from comments. It's a very useful feature in case the OP is not able to understand an answer and needs more clarification.  What I don't see is a notification system for chats where there has been an extended period of time between communication.   Let's say someone replied to my chat after a few days, in that case I do not receive any notification.   This happened to me only a few hours ago, where in I had replied to one question but the OP was not available at that point and he replied to me after some days. As I didn't check that chat I had no way of noticing if someone replied to my message and the 48h window after my last activity in that chat, during which I would have received the @ convention ping notification, had already expired.  We receive notification on posts, upvotes that we receive, so why not the chat rooms?   Should there be a notification center like the one for posts (or may be include this in the same center as posts)? Is there some guide I can use for cooking soft boiled ostrich eggs?