Every time I run audacious from terminal, I have to type this: audacious my_song.mp3 &gt;&amp; /dev/null &amp;  Is there an alias for this, so that if I only type audacious my_song.mp3 it will become audacious my_song.mp3 &gt;&amp; /dev/null &amp;.  P/S: &amp; is to make audacious run in background and &gt;&amp; /dev/null is to ignore some infomation from stdout and stderr.    My short answer:  $ cd # to go to home directory $ # make directory where you save your aliases $ mkdir alias.d &amp;&amp; cd alias.d $ cat &lt;&lt; EOF &gt; audacious.sh #!/bin/bash audacious "$@" &gt; /dev/null 2&gt;&amp;1 &amp; EOF $ chmod u+x audacious.sh $ cd # to go to home directory $ echo "alias audacious='~/alias.d/audacious.sh'" &gt;&gt; .bash_aliases $ source .bash_aliases # make sure your .bashrc source .bash_aliases
I want to know if I can pass an argument with an alias command.  for example:  alias d="dmesg|grep -iw usb|tail -5"    Now d will print the last 5 lines. If I want to use d to print a different number of lines, I have to make change in the alias command declaration of d again.  Is there any way I can modify the declaration of an alias so that I don't have to retype the declaration to change the number of lines. Like incorporating passing the number of lines as an argument while declaring alias for d? Or is there some other method to solve this?
The Wikipedia  has a derivation of the Klein-Gordon equation.  It gets to this step:  $$\sqrt{\textbf{p}^2 c^2 + m^2 c^4} = E$$  and inserts the QM operators to get  $$\left( \sqrt{ (-i \hbar \nabla)^2 c^2 + m^2 c^4 } \right) \psi = i\hbar\frac{\partial}{\partial t} \psi$$  The article then says     This, however, is a cumbersome expression to work with because the differential operator cannot be evaluated while under the square root sign. In addition, this equation, as it stands, is nonlocal.   To fix this, the first equation is squared instead to get  $$\textbf{p}^2 c^2 + m^2 c^4 = E^2$$  after which the QM operators are inserted and the expression is simplified to get  $$-\hbar^2 c^2 \nabla^2 \psi + m^2 c^4 \psi = -\hbar^2 \frac{\partial^2}{\partial t^2} \psi$$  A couple things I don't understand.  First, are the solutions to this differential equation not exactly the same as the solutions to the first differential equation?  Both sides of the starting equation were squared, so it seems to me that regardless of the particular form of the resulting differential equation, both of them should have the exact same set of solutions.  Secondly, why is the first differential equation cumbersome to work with?  It seems like it would in fact be easier to work with, since the operator under the square root could be expanded in terms of a Taylor series and then you have an equation that is first order in time.  And finally, can someone elaborate on what nonlocal means? The linked article on the Wikipedia page didn't entirely help me understand it. Centos recently updated to 7.3 and there's been problems with sshd sftp group permissions. I have one user that is chrooted to it's home directory, and that user is in group sftponly. Then i have the /var/www directory, which has 775 permissions and owner is apache and owner group is sftponly. I have a bind link pointing from /home/user/files/web --> /var/www, so the user can access /var/www even though being chrooted to it's home directory. I can view files in /var/www with that user, but impossible to edit or add anything. This worked fine before the big Centos 7.3 update, and now it's stopped working. Any ideas? Hi I make this class A amplifier but how to replace R5 (10 ohm/10 W) with transistor because its getting really hot and how to achieve up to 10 Watt with +/- supply. I have +/-25v with 4A please help Shrink exFAT partition Is there any way to shrink an exFAT partition?   The windows disk manager has the "Shrink" option greyed out. I just noticed that the  user edited a ~1 year old  of mine. As you can see, the method call was changed from getSfGuardUser to getGuardUser:    Now I checked the documentation and it seems that the edit is correct.  But how did Community know about that? As far as I know, it is an automated process. Does it have a reference of all possible APIs of languages/frameworks (which seems very unlikely) or is there a routine admins can trigger, for replacing content? Or is it a secret? Did this character even qualify for being Azor Ahai or The One Who Was Promised? In the books and to some degree in the show as well there is a prophesy about the legendary figure Azor Ahai. But in the latest Game of Thrones episode (S08E03) we see Arya      killing the Night King.   However in a  we discussed​ all possible candidates but nobody thought about Arya. Does she even fulfill the prophecy? If she does, how? Solve $x\equiv 1\pmod2$, $x\equiv 2\pmod3$, $x\equiv 3\pmod4$, $x\equiv 4\pmod5$, $x\equiv 5\pmod6$ and $x\equiv 0\pmod7$ $$\begin{align*} x&amp;\equiv 1\pmod2\\ x&amp;\equiv 2\pmod3\\ x&amp;\equiv 3\pmod4\\ x&amp; \equiv 4\pmod5\\ x&amp;\equiv 5\pmod6\\ x&amp;\equiv 0\pmod7\\ \end{align*}$$  So the solution says we can eliminate $x\equiv 5(\bmod6)$ because the first two cases cover it, but I don't really know how it does. How do we solve it in cases like this where the moduli are not mutually relatively prime. C structure initialization? How is MSE divided by $\sigma^2$ always a chi-square distribution? I have a loop that is doing some error checking in my PHP code. Originally it looked something like this...  foreach($results as $result) {     if (!$condition) {         $halt = true;         ErrorHandler::addErrorToStack('Unexpected result.');     }      doSomething();  }  if (!$halt) {     // do what I want cos I know there was no error }   This works all well and good, but it is still looping through despite after one error it needn't. Is there a way to escape the loop? How to run xrandr commands at startup in Ubuntu How can I run the following xrandrcommand on startup?  xrandr   cvt 1368 768  xrandr --newmode "1368x768_60.00"   85.25  1368 1440 1576 1784  768 771 781 798 -hsync +vsync xrandr --addmode VGA1 1368x768_60.00 xrandr --output VGA1 --mode 1368x768_60.00 Will fruit/seed of a bonsai yield another bonsai plant/tree? With practice one can create a bonsai; no complicated modification of the DNA in a high-end lab required. The bonsai will even beget bonsai fruit.   What I am curious about is - if such bonsai fruit is planted again, will it give rise to a normal, or a bonsai tree? Simple PHP Pagination script Classify all groups with order $pq$, $p$ is not equal to $q$ I am reading the following material:  . At page 5, there is a proof classifying all groups with order $pq$(they are all primes and $p$ is not equal to $q$). I am lost in the last two sentence, which claims the semidirect product are all isomorphic. Could someone help me to understand it? Thanks! Before I start, YES, I have done my own research - I know how annoying a repeat question is. Yet each answer is so specific to others...  When I tried the beta 2.8 64 bit, it says "Blender requires a driver with at least OpenGL 3.3 support. The program will now close."    The question: I know that it is true that 2.8 requires OpenGL 3.3. But does my PC not have it, doesn't support it, or do I have it and blender won't detect it? I'm not sure what info to include or what to look for, so here's my PC's specs:  Windows 10 (64 bit) Core -        Intel Core i5-2400 CPU @ 3.10GHz RAM -         8GB (7.89GB usable) System type - 64-bit Operating System, x64-based processor  Thanks!  EDIT: Graphics properties: save as a video as .mp4 How do you teleport a certain player to spawn after they win a 1v1 I managed a KitPvP server in Minecraft and everything works fine except when players wants to duel each other. They get sent to a room where they will be dueling. The main problem is when the winner wins, I have no idea how to teleport them back to spawn. Why do these page numbers get partially cut off at bottom of page? Is it lenses which make your photographs, not camera bodies? I was reading a book and this sentence seemed a little odd to me:     At approximately 19.45 hours the two men rose, stretched and yawned. They picked up their gear and stood at the door, ...   What does the first part mean? If it's the exact time, shouldn't it be 19:45? And if it's duration, shouldn't it be "After 19.45 hours"?  (The story here happens at an airbase, if it's of any relevance)    Edit: The book I've quoted is this:   by John Creed.   The author is Irish and the text is set in northern England/Ireland.