Everytime I need to access ifconfig , I find using using /sbin/ifconfig. If I need to directly type ifconfig in bash and get the required output without calling the directory every time, what should I do?
Compare Debian (left) and Ubuntu (right):  $ ifconfig                                 $ ifconfig bash: ifconfig: command not found          eth0     Link encap ... $ which ifconfig                           $ which ifconfig $                                          /sbin/ifconfig   Then as superuser:  # ifconfig                                 # ifconfig eth0      Link encap ...                   eth0     Link encap ... # which ifconfig                           # which ifconfig /sbin/ifconfig                             /sbin/ifconfig   Furthermore:  # ls -l /sbin/ifconfig                     # ls -l /sbin/ifconfig -rwxr-xr-x 1 root root 68360 ...           -rwxr-xr-x 1 root root 68040 ...   It seems to me the only reason I cannot run ifconfig without superpowers on Debian is that it's not in my path. When I use /sbin/ifconfig it does work.   Is there any reason I should not add /usr/local/sbin:/usr/sbin:/sbin to my path on Debian? This is a personal computer, I am the only human user.    Versions used (uname -a): Ubuntu:   Linux ubuntu 3.13.0-51-generic #84-Ubuntu SMP Wed Apr 15 12:08:34 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux   Debian:  Linux debian 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u3 (2015-08-04) x86_64 GNU/Linux
When I define amsthm theorem environments with shared counters, autoref messes up the names of the references. For example, in the output below, we should have "Definition 2" instead of "Theorem 2".  \documentclass{article}  \usepackage{amsthm} \usepackage{hyperref}  \theoremstyle{theorem} \newtheorem{theorem}{Theorem} \theoremstyle{definition} \newtheorem{definition}[theorem]{Definition}  \begin{document}  \begin{theorem} \label{wonderful-theorem} This is a wonderful theorem. \end{theorem}  \begin{definition} \label{awesome-definition} This is an awesome definition. \end{definition}  Look at the wonderful \autoref{wonderful-theorem} and the awesome \autoref{awesome-definition}.  \end{document} While watching  I noticed a very characteristic camera shot. At a scene where the main character, Wendy, sits in her room at the computer (watching the supposedly foretelling fotos), her sister talks to her from the outside (asking if she can have the camera/fotos). There is a certain camera shot, where on the left side a frontal close-up of Wendy's face is shown, while on the right side you see her sister standing in full height inside the open door.    This shot immediately struck me as being somehow characteristic and out of place and infused feelings to me of some kind of older Hitchcock or Brian De Palma thriller or something the like. I also think to remember of having seen this kind of shot or something similar used in , where Jessica Lange is shown in front of the dresser talking to Nick Nolte who stands in the door or father away.  I would like to know if this technique has a certain name or theory behind it and where its origins lie, or if there is any particular director or movie who made this famous. It may be even that Final Destination 3 uses this especially in reference to some director or movie. How do I run specific sudo commands without a password? Can't format my usb drive. I have already tried with mkdosfs and gparted I have a MicroSD card in a USB adapter (which plugs into a USB port on my machine, and acts like a USB flash drive). I was using Unetbootin to make this a bootable USB flash drive with Kubuntu. But I needed to cancel while it was working. So I killed the Unetbootin process from the console.  Since then, I can't format the MicroSD or delete the folder that Kubuntu made. I have also tried mkdosfs, with no success. I can't mount the drive anymore either? What can I do to make this drive usable again?  Trying to create a new partition table in GParted, as described in Eliah Kagan's answer, does not work. It fails with the error message "imposible crear tabla de particiones" ("unable to create a partition table"). Converting from DMS to DD using Python in Field Calculator? How do I check if an object has a specific property in JavaScript? I'm trying to prove whether or not the Laurent polynomials $\mathbb{Z}[x, x^{-1}]$ with coefficients in $\mathbb{Z}$ form a principal ideal domain.    I know that $\mathbb{F}[x, x^{-1}]$ is a PID when $\mathbb{F}$ is a field, but clearly $\mathbb{Z}$ is not a field so I cannot appeal to this result. And my intuitions are not serving me very well at the moment. Can anyone provide a hint or direction to take? CLI path to ftp network connection I've setup a connectio to an FTP server in Nautilus / Nemo / Caja, the file manager. Now I can browse the contents via this file manager.  How can I browse these files via the command line? What is the path to this network connection? Is this possible, is this a system connection, or specific to the file manager, and do I have to setup a separate FTP connection to do that? If I open this connection in Caja, I see it in Nemo as well, so it seems like a system connection. Variance of the future value of a cash flow I want to compute the variance of $FV =A\sum_{k=1}^n(1+r)^k=:g(r)$, assuming interest rate $r\sim\mathrm{N}(\mu,\sigma^2)$ and constant equal payments $A$. As discussed in the comments, the Delta Method gives an approximation $\mathrm{Var}[FV]≈\sigma^2\times(g′(\mu))^2$. Is there a way to get an exact answer? TZInfo::DataSourceNotFound error starting Rails v4.1.0 server on Windows Can new wall go over tile floor? Looking at moving my laundry upstairs, and the right answer is to combine two adjacent closets to get the width and move one of their walls a foot or two into the kitchen to get the depth.  The kitchen floor is 10-inch-square tiles. It would be sort of nice if that continued on into the laundry closet. I do have a full bundle of spare tiles in the basement.   Question: Could/should I plan on the new wall coming in on top of the existing tiles (presumably having to drill to secure the footer without shattering them), or should I plan on removing the ones under the footer and fitting cut pieces back in afterward? How can i restrict /admin login page to a particular IP only? With regard to the theory that each time a wave function collapses the universe  so that each possible outcome really exists - where does all the energy required to create all the new universes come from? There is a button in the "basic math assistant" which wraps highlighted text in chosen brackets. Is there no keyboard command for this? What is appropriate to use here, who or which?       There are around 50 companies who/which deliver scanning services to private and business consumers. Number of factors of a big number How to find the number of factors of $884466000$ without using a calculator? When do I clear US customs and immigration if connecting at a US airport to my final destination elsewhere in the US? Continuously differentiable map from $\mathbb{R}^{m+n}$ to $\mathbb{R}^n$ Suppose $m,n&gt;0$, $U$ an open subset of $\mathbb{R}^{m+n}$ and let $f: U \to \mathbb{R}^n$ be continuously differentiable.  Is it possible for $f$ to be injective?    My thinking is that continuous differentiability+injectivity suggests that this is sort of getting at a converse to the Inverse Function Theorem.  We know the Jacobian is not invertible at any point in $U$, and the question is asking if this implies that $f$ cannot be invertible in any neighborhood contained in $U$. Keyword for the outer class from an anonymous inner class In the following snippet:  public class a {     public void otherMethod(){}     public void doStuff(String str, InnerClass b){}     public void method(a){         doStuff("asd",             new InnerClass(){                 public void innerMethod(){                     otherMethod();                 }             }         );     } }   Is there a keyword to refer to the outer class from the inner class?  Basically what I want to do is outer.otherMethod(), or something of the like, but can't seem to find anything. Execution order of event receivers and workflow on a list