Suppose that I have a file called temp.txt.  Using the cat program, I would like to add the contents of this file to the end of myfile.txt -- creating myfile.txt if it does not exist and appending to it if it does.    I am considering these possibilities:  cat temp.txt &gt; myfile.txt   or  cat temp.txt &gt;&gt; myfile.txt   Both commands appear to work as I want.  So, my question is, what is the difference between &gt; and &gt;&gt;?  Thanks for your time.
I often see tutorials online that connect various commands with different symbols. For example:  command1 |  command2 command1 &amp;  command2 command1 || command2     command1 &amp;&amp; command2   Others seem to be connecting commands to files:  command1  &gt; file1 command1  &gt;&gt; file1   What are these things? What are they called? What do they do? Are there more of them?    .
How much swap should I take for 1GB to 8TB of RAM on 14.04 or higher? I'm going to install 64 bit 14.04 on a new machine with something like 1 to maybe 128GB RAM and even more RAM later. How much space should I allocate to the swap partition?   And especially: WHY those recommendations for these numbers?    (None of the existing answers  and  explain any of the why and are a bit dated if we look at 1GB or RAM and up) Array slices in C# How do you do it? Given a byte array:  byte[] foo = new byte[4096];   How would I get the first x bytes of the array as a separate array? (Specifically, I need it as an IEnumerable&lt;byte&gt;)  This is for working with Sockets. I figure the easiest way would be array slicing, similar to Perls syntax:  @bar = @foo[0..40];   Which would return the first 41 elements into the @bar array. Is there something in C# that I'm just missing, or is there some other thing I should be doing?  LINQ is an option for me (.NET 3.5), if that helps any. Can someone define what exactly 'POCO' means? I am encountering the term more and more often, and I'm wondering if it is only about plain classes or it means something more? Story about a future with races I hear so many terms involving the word "linear". Linear function, linear equation, linear system, linear operator, linear transformation, linear mapping, linear space, linear algebra, linear electrical circuits, linear filters, linear electrical elements, linear approximation, linear optimization.  I'm getting crazy trying to understand the application of the "linear concept" to all this aspects (function, equation, mapping, system, operator, transformation, algebra, etc.) and I wish to know the one essence that is to be linear. What something has to be to be linear? If I say something is linear, what do I know for sure about that something (no matter what the something is)?       I heard a definition of linearity is by homogeinity (scaling the input results in a scaled output) and addition (summing the inputs results in summing the outputs). Can I apply this simple definition to all the branches (operator, mapping, system, transformation, algebra, ...) I mentioned ? Do they all behave like a line ?  y = ax + b, for example, is a line but doesn't behave like a line because y is not linear. I have created a fishnet grid (3km x 3km) over a vector polygon.   I now want to clip the fishnet over the vector polygon retaining all grid squares within the boundary of the polygon.   Therefore I want all squares that would typically be clipped into partial squares to remain as whole squares.   Does anybody know how to do this? I have a vector space $V$ over a field of characteristic $0$. If $M_1,\dots,M_k$ are proper subspaces of $V$, and $N$ is a subspace of $V$ such that $N\subseteq M_1\cup\cdots\cup M_k$, how can you tell $N\subseteq M_i$ for some $i$?  I was first trying to show it just in the case $N\subseteq M_1\cup M_2$, and hoping to extend it to finitely many $M_i$. If either of the $M_i$ contains the other, the claim follows, so I suppose neither $M_i$ contains the other.   In hopes of a contradiction, I suppose $N\not\subseteq M_1$ and $N\not\subseteq M_2$, Picking $x_1\in N\setminus M_1$ and $x_2\in N\setminus M_2$, I'd have $x_1+x_2\in N\subseteq M_1\cup M_2$. The only thing I could conclude was that actually $x_1,x_2\notin M_1$ and $x_1,x_2\notin M_2$, which seems like a dead end. What's the right way to do this? I just noticed . Hey! I'm there! But that's beside the point.  The point is that Nick Craver is there too. Nick seems to like really long tag names, so his profile shows up like this:    Akk! Diamonds everywhere!  It seems that the page is optimized for only two lines of tags per user. One tag per line means three lines. Three lines means that Nick's reputation (tag) is cut in half.  Let's not cut Nick's rep (tag) in half on the Users page, no? Why can't Chromium suddenly access any partition except for /home? I just upgraded to Ubuntu 19.10 and to my horror I discovered that the default browser Chromium can no longer access other partitions than /home.  This means that my partitions containing music and videos (/multimedia) for instance are no longer accessible e.g. to upload into Google Drive. This includes USB partitions.   I found another description of this phenomenon here:  where it says  "Also, while we acknowledge that most users will only need to access their home folders, it’s worthy to mention that you no longer can access system files &amp; folders from inside Chromium (You can’t access anything except your home folder). This means that if you are to upload a file or an image for example into the Internet using an uploading website, then this file/image must be in your home folder, as you can not access directories such as /usr, /etc or other directories located in your root partition. In fact, you no longer can access any other partition at all, this includes USB sticks and other booted partitions:"  I wonder why this behaviour been introduced? it violates the whole idea of multiple disks, partitions and symlinks. Btw, this still works for Firefox.  My questions are   Are there any plans to fix this? I expect one reason for this behaviour is about security. If so, is it possible to explain why and how that makes for better security? The files on other partitions are legitimately accessible by the user anyway e.g. through symlinks. But with this change, I'll have to move them to /home before uploading so still accessing them although more slowly and cumbersome.  If this behaviour is now permanent, the question is how should we incorporate multiple disks in our filesystem?  Alternatively, can someone tell me how to find and install the debian package. I haven't been able to locate it?   This is not a duplicate of  because that is about a specific error during installation that I didn't get. My question is about the access chromium has in Ubuntu 19.10.  Anyway, I solved the problem via the following command by using the original debian package from Google:  sudo apt-get install google-chrome-stable   After that I can now access my other partitions again. I know this is hacky in the sense that the package isn't native to Ubuntu so I would really like to get some advice on how to incorporate multiple disks and partitions with this new restricted behaviour of Chromium.  Thank you very much How do I get a bigger static scrollbar (aka normal scrollbar)? Floor a date in SQL server In SQL Server, how do I "floor" a DATETIME to the second/minute/hour/day/year?  Let's say that I have a date of 2008-09-17 12:56:53.430, then the output of flooring should be:   Year:  2008-01-01 00:00:00.000 Month: 2008-09-01 00:00:00.000 Day: 2008-09-17 00:00:00.000 Hour: 2008-09-17 12:00:00.000 Minute: 2008-09-17 12:56:00.000 Second: 2008-09-17 12:56:53.000 I installed Ubuntu alongside Windows but I did not disable secure boot as someone told me it could cause problems with boot loader. So when installation finished and I rebooted, the system went straight into Windows. I went to Ubuntu IRC Support and they told me to turn off the secure boot and reinstall Ubuntu. I did that but my system still boot into windows.  This is a picture of partitions on my system:    This is my first Ubuntu install on my new laptop. I followed everdaylinux guide to install it and I used something else option. Why "hide" Luke from his father somewhere Anakin knows? In Episode II Anakin goes to the Lars homestead and meets his extended family. How would sending Luke there be "hidden" to Vader in any way? At least Leia had a random planet and family. Which Wifi Channel should I use? Very confused.  I'm using inSSiDer, WiFi Overview 360 and Wifi Analyzer apps to try to determine the best wifi channel to use. Assuming all channels are in use and there are about 20 different users in close proximity...  Q1: Signal Strength    If all channels are in equal use, do you select a channel where others that use it have the lowest signal strength?  I'm guessing that a higher signal strength means that it's from a router from your closest neighbour and you want to avoid that.  Is that the case?  Does lower signal strength mean the person using it is further away and therefore less likely to interfere with your signal? If 2 people are on channel 1 and have high signal strength and 2 people are on channel 11 and have low signal strength, do you choose channel 11?  Assume 6 cannot be used.    Q2: Signal Strength Weighted Against Number of People    What is the impact of signal strength compared to number of people using channel?  If 1 person is on channel 1 with very high signal strength and 2 people are on channel 11 with low signal strength, do you choose channel 11 over 1?  Assume 6 cannot be used?    Q3: Channel Overlap    If, for example, I had 11 routers sitting on top of each other, each set to a different channel, I'm guessing channel 1 and 11 would be the least interferred.  Is that right?  People go on about the fact that only channel 1, 6 or 11 should be used (in US) as they don't overlap but surely that statement is wrong.  Yes, if only 3 people were using Wifi, the best channels to use would be 1, 6 and 11 as they don't overlap but in practice, there are about 20 people using the channels in the same area.  What do you do in that scenerio.  Do you go for the shoulder channels if all channels are being used equally with equal strength?    Q4: Auto Channel Select    Do routers set to auto channel select only choose between 1, 6 and 11?  How do they make the choice?  Do they select by choosing channel with lowest other routers and do they factor in signal strengths.  My router auto chooses channel 1 but my closest neighbour is on that channel.  Is that correct.      Q5: Baby Monitors and Wireless Phones    What channels do 2.4 GHz baby monitors and wireless phones use?  No useful info on the internet for them.  Do inSSiDer, etc. pick them up?    Q6: I have access to channel 13.  All other things being equal, am I better to use this over channel 11 as it is further away from the other channels?    Those questions have puzzled me for a number of years and Google is not helping!!  Would really be grateful if someone could give sensible answers to one or all of them.  Thanks, Mike. Brown sugar instead of white sugar Is there a option to search within manpages? Acount suspension reason is only shown on the main site profile not meta I have come across numerous questions where I am given the picture such as the above one been asked "how many rectangles are there?". I have even come across some slightly different images that instead of rectangles you are supposed to find the number of triangles. Well, I was thinking whether there is any formula or strategy that is used to solve these problems without having to manually count every shape.  Help would be appreciated.  Thank you :) Finding package name of installed software Since I have not been able to open Dash Home in 12.04.4 see , I am hoping for a work-around. Is there another convenient way to open apps/programs without having to search through folders? Is this question clear enough? For example, I just installed Kile (publishing program) from the Software Center, but I can't find a link/tile/icon/shortcut to open it. Thanks, to whomever can help. Difference between @interface definition in .h and .m file