I want to find files in the /tmp directory. I use -path and -prune to exclude the subdirectory sgid from the results.  So I do something like this:  [root@ tmp]# find ./ -path ./sgid -prune -o -name 'foo*' ./sgid ./foo1 ./dir1/foo2 ./sgid0/foo1 ./sgid0/foo ./sgid0/foo2   However the output still contains the sgid subdirectory, which is not what I expect.  But when i do like the following：  [root@ tmp]# find ./ -path ./sgid -prune -o -name 'foo*' -print ./foo1 ./dir1/foo2 ./sgid0/foo1 ./sgid0/foo ./sgid0/foo2   The output matches my expectation. Why does the command have to include the -print option?
I need to exclude .git from my find search. To achive that, I am using the -path ./.git -prune switch:  $ find . -path ./.git -prune -o \( -type f -o -type l -o -type d \) | grep '.git' ./.git   However, even though this skips the contents of the .git directory, it lists the directory itself. It works when I add -path ./.git -prune -o -print -a  find . -path ./.git -prune -o -print -a \( -type f -o -type l -o -type d \) | grep '.git'   Why is this necessary. I thought that both commands should have same output. The second syntax is quite ugly.
Bottom of tool shelf grayed out Flow to get all site collections in a tenant Created a Flow by using the below REST call and stored the title and Urls in another list  /_api/web/lists/getbytitle('DO_NOT_DELETE_SPLIST_TENANTADMIN_ALL_ SITES_AGGREGATED_SITECOLLECTIONS')/items?$select=Title,SiteUrl   Here the problem is it is returning only 100 items but I have 360 site sollections.   Not sure what I am doing wrong Absolute path & Relative Path What's the difference between absolute path &amp; relative path when using any web server or Tomcat? Changing the resistor to be in front or behind an LED doesn't affect brightness? Note: I am very new to the more advanced side of electricity. I do not have a firm grasp on the exact mechanics.  Lets say I have an example circuit:  5V Power Supply -&gt; LED -&gt; Resistor -&gt; Ground  Now the LED is receiving 20ma and 5V. If I were to switch the LED and the resistor however, the LED should receive less voltage but the same current, so wouldn't it be dimmer? Or would it receive the same voltage?  I've looked at these two threads and their answer doesn't help. How do I remove Ubuntu's password requirement? UnboundLocalError: local variable 'url_request' referenced before assignment List of ways to tell if degree sequence is impossible for a simple graph I'm trying to make a list of ways to tell if a given degree sequence is impossible. For example $3,1,1$  is not possible because there are only 3 vertices in total so one can't have degree 3.  The list so far   vertices has degree equal to or larger than number of vertices sum of degrees is odd for n vertices if one has degree n-1 and another has degree 0 for n vertices the sum of the degrees cannot be greater than $n(n-1)$ because this would be have more edges than a complete graph If I have a double (234.004223), etc., I would like to round this to x significant digits in C#.  So far I can only find ways to round to x decimal places, but this simply removes the precision if there are any 0s in the number.  For example, 0.086 to one decimal place becomes 0.1, but I would like it to stay at 0.08. I am running out of storage, I usually have bought a lot of my games on disk but if I buy a game on the store then delete it, and want to redownload it do I have to buy it again Can't update drupal core to 7.27 Buying shares when the price goes down 2% and selling shares when it goes up 2% How to echo output of a top into a text file? I want to write batch or something, that will write output of top into a file on login.  I did top &gt;&gt; output-file, but it contains some strange character!  Can somebody give a simple tutorial about how to write batch file in Linux? I have two areas of my house which are cantilevered. One is a bay area which extends about 2'. The other is the bottom of a fireplace box (gas fireplace). I have placed two layers of R-13 (I think) insulation in this area, but inside the house it's like a heat sink where all of the heat is sucked out ... very cold to the touch in the winter time. Obviously there must be a better way to insulate this area.  My question is, what is the best way to insulate a cantilevered area so as to allow the inside area of the house to not be so cold in the winter time? How to pluralize an acronym which ends in 'S' correctly? When using the acronym package, how can you  an acronym which ends on 'S'?  Take the acronym: OS - operating system  It should be pluralized as OS's, but is pluralized as OSs when using \acp. Can you play a Progress Card even when you get nothing from it? If I have a Progress Card for which initial preconditions do not hold, will I still be able to use it in order to discard it back to the pile? The goal is to prevent a spy from stealing it.  A few examples:   I am leading in victory points but I want to use Wedding card. I have Irrigation but I don't have any wheat hexagons. I have Blacksmith but I don't have any ore hexagons. This question exists because it has historical significance, but it is not considered a good, on-topic question for this site, so please do not use it as evidence that you can ask similar questions here.  While you are encouraged to help maintain its answers, please understand that "big list" questions are not generally allowed on Ask Ubuntu and will be closed per the .   Backup is incredibly important. Obviously there's no best backup tool, but a comparison of the options would be very interesting.   Graphical Interface? Command line? Incremental backups? Automatic backups? Install method: In standard repositories? PPA? I am wondering, given the minimal polynomial of $A$, what can we say about the minimal polynomial of $A^n$?  I know that if we were looking at the roots of the characteristic polynomial ie eigenvalues then the roots of the characteristic polynomial of $A^n$ would be $nth$ powers of the eigenvalues so again these are roots of the minimal polynomial also. Is it possible to use a MacBook Pro as a second monitor for my iMac? Both of them have a Thunderbolt port.  If not, is there any other way? Prove that the additive groups of $\Bbb Z$ and $\Bbb Q$ are not isomorphic.    It is hard to create a map that will show homomorphism. My specific question is with the ASUS M3N78-VM motherboard that my home server uses. I currently have 4x2GB installed for a total of 8GB but I was hoping to upgrade to say 16GB (4x4GB). The official specifications of that motherboard says it only supports up to 8GB but it was released back when only 2GB sticks were available. What, if any, would prevent it from working with 4GB sticks now that 4GB sticks are available?  My general question is with motherboards in general... what would prevent a motherboard from working with bigger sticks if its all just the same type (DDR2 for example and same speeds) of memory?