I am trying to throw command output to file plus console also. This is because i want to keep record of output in file. I am doing following and it appending to file but not printing ls output on terminal.   $ls 2&gt;&amp;1 &gt; /tmp/ls.txt
In bash, calling foo would display any output from that command on the stdout.  Calling foo &gt; output would redirect any output from that command to the file specified (in this case 'output').  Is there a way to redirect output to a file and have it display on stdout?
Why constructors will always have same name as of class and how they are invoked implicitly? pm-hibernate freezes and/or fails to resume on Dell XPS 13, 14.04, 3.19 kernel I'm running 14.04 on a new XPS 13. In order to support the newer hardware, I'm running a mainline 3.19 kernel.   Hibernate resume has been iffy with the entire 3.19 kernel line, but recently (3.19.5) pm-hibernate no longer works at all. The screen will either a) switch off momentarily, then back on with all inputs frozen or b) switch off entirely, and fail to resume upon power on (despite displaying the correct resume-from-uuid message).  I have enough swap space (and it has worked in the past), I have checked that the uuid is being correctly referenced, and nothing seems particularly amiss in /var/log/pm-suspend.log (last 200 lines here: )  Thanks for your help. Which nvidia driver from additional drivers option should I choose? I have NVIDIA Geforece 7025 / nForce 630a integrated gfx card on my UBUNTU 12.04.And I have 4 options in Additional drivers:    NVIDIA accelerated graphics driver (version 173)   NVIDIA accelerated graphics driver (post-release updates)(version current updates)  NVIDIA accelerated graphics driver (version current)[Recommended]  NVIDIA accelerated graphics driver (post-release updates)(version 173 updates)   I am currently using the First option.  My Problem is there I can't update the version 173 to the latest version of drivers using xswat PPA. Whenever I do it and reboot but the NVIDIA xserver sttings always shows me the same version.  Which option would allow me to update my drivers to the current version? How does the "this" keyword work? Canonical vs. non-canonical terminal input I am studying for an exam and I am confused as to how canonical vs. non-canonical input/output works in Unix (e.g., curses).  I understand that there is a buffer to which "line disciplines" are applied for canonical input.  Does this mean that the buffer is bypassed for non-canonical input, or does it simply mean that no line disciplines are applied?  How does this process differ for input and output operations?  In the curses programs I have worked with that demonstrate canonical input, the input typed by a user is automatically entered either after a certain number of characters have been typed or a certain amount of time has passed.  Are either of these things considered "line disciplines" or is this something else entirely? I've found conflicting sources over who initiated the idea of Marvel's Multiverse having numbered universes.  Some say Alan Moore's Captain Britain was the first to use Earth-616, whereas others indicate it was fan-created from Fanzines: with Mark Gruenwald's Omniverse being the frontrunner.  Who is responsible for creating the universe designations? Is there any credible information on their development? Debian : Verify disk encryption password for already mounted system How can I make a camera the active one? I have multiple cameras in a scene. What I want to do is to change which one is active. This way I can view the scene from different angles. How would I do this? Could a Homorphus Charm Change a Werewolf Back Into a Human Before the Moon Cycle Ends? ‘Nice loud howl, Harry – exactly – and then, if you’ll believe it, I pounced – like this – slammed [the werewolf] to the floor – thus – with one hand, I managed to hold him down – with my other, I put my wand to his throat – I then screwed up my remaining strength and performed the immensely complex Homorphus Charm – he let out a piteous moan – go on, Harry – higher than that – good – the fur vanished – the fangs shrank – and he turned back into a man. Simple, yet effective – and another village will remember me forever as the hero who delivered them from the monthly terror of werewolf attacks.’   Gilderoy Lockhart - Chamber of Secrets - chapter 10 - The Rogue Bludger   Yeah, yeah. I know: consider the source! We all know Gilderoy Lockhart is a fake and a fraud in that he took credit for other heroic wizards' work. However, it occurred to me that in order to sell his books, he would have had to have written accurate and real spells and charms and potions, etc, into the books, or else everyone would have known right away that he was a turkey.   So is it possible there's an actual Homorphus Charm that will change a werewolf back into a human before the werewolf's moon cycle is over? If so, why on earth would they not have used it on Remus Lupin (for Lupin's safety) or Fenrir Greyback (for the community's safety)? What do I need in order to create an application for ubantu? 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? What levels-up Psi-abilities? Shutdown and User button missing in panel I faced with a problem after update,   I missed 2 buttons from above panel, System menu (including shutdown, suspend &amp; …) and User (including log out &amp; …)  how can I restore them !?... How can I limit the headphone max volume on OS X? So I hurt my ears from excessively loud music last week at work. I'm well aware of the volume down key of course, but I tend to crank it up too much throughout the day without noticing it.    I need a limiter and it needs to be system-wide, since I listen to various other sound sources aside from iTunes. This isn't really an issue on my phone, since I can set a volume limit in the iOS settings.  Is there an equivalent built-in or third-party fix for OS X Lion? I'm building a child theme and it currently has a very simple &lt;head&gt; section in header.php:  &lt;head&gt;   &lt;meta charset="&lt;?php bloginfo( 'charset' ); ?&gt;"&gt;   &lt;meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"&gt;   &lt;title&gt;&lt;?php wp_title( '|', true, 'right' ); ?&gt;&lt;/title&gt;   &lt;link rel="profile" href="http://gmpg.org/xfn/11"&gt;   &lt;link rel="pingback" href="&lt;?php bloginfo( 'pingback_url' ); ?&gt;"&gt;   &lt;!--[if lt IE 9]&gt;   &lt;script type="text/javascript" src="&lt;?php echo get_template_directory_uri(); ?&gt;/js/html5shiv.min.js"&gt;&lt;/script&gt;   &lt;![endif]--&gt;    &lt;?php wp_head(); ?&gt; &lt;/head&gt;   I'm guessing wp_head() is responsible for the second &lt;title&gt; element (it appears just there in the final HTML), but other things I've read say this is impossible.  Should I be removing the &lt;title&gt; from my header.php, or should I be adding something to my functions to remove the title from wp_head() (eg. remove_action('wp_head', 'title') ?  Or should I be doing something else altogether? Rendered image is just grey I'm a Sri Lankan passport holder. I'm planning to travel to China in January and have to transit in Malaysia. I wonder whether I can obtain a Malaysian transit visa in KLIA 2 when I'm flying back to Sri Lanka. Is 2h 45m enough for a layover in Newark Liberty International transferring from an international to a domestic flight (Terminal B → Terminal C)? Forcing decimal numbers to use comma in ArcGIS Field Calculator? How do I calculate the voltage needed to heat up a wire to a certain temperature? The wire I am using is standard temp. nitinol wire which needs to be heated up to 45 degrees Celsius in order to be effective (move). What voltage do I need to achieve this?