I need to display all the files with .c (C program files) in the terminal and having problems to do so. My ideas were using find and grep and maybe gcc But none of my attempts worked. I am working on Linux. I don't know the file names. I just want to list all the files. I tried the following: ls *.c find . -type f *.c
I want to search for all .conf files in /etc/. I tried grep -r *.conf /etc, but the result isn't right. What am I doing wrong?
How to determine function name from inside a function Is there any canon information in Harry Potter that proves one way or another whether a wizard always owns only one wand as a matter of routine?  What I am talking about is a wizard buying and owning one wand and also a second wand (for backup, or simultaneous use, or separate purpose, or ceremonial+work wand), akin to people buying more than one pair of boots, guns or hammers.  A proof would be either canon info showing someone owning 2 wands simultaneously; or a statement showing why that does not happen except in rare exceptions (see below).    NOTE: I am discounting special situations such as winning an extra wand in a duel ala Harry (e.g. the second wand's obtainment wasn't intended/planned), or someone winning a Death Stick from prior owner (in which case it was intended as a replacement wand and not an extra one); or taking another's wand for a time being, ala Voldemort and Lucius Malfoy (since it was more of a "temporary replacement because main wand was useless for the purpose due to paired cores" - far from a normal situation).  Also, I meant wands intended for use - e.g. if Malfoy would have a (imagined by me) collection of rare antique wands, that's as irrelevant as someone having flintlocks in a display case. What's the difference between eq, eql, equal and equalp, in Common Lisp? What's the difference between eq, eql, equal and equalp, in Common Lisp?  I understand that some of them check types, some of them check across types an all that, but which is which?  When is one better to use than the others? Simulate a uniform distribution on a disc I was attempting to simulate injection of random points within a circle, such that any part of the circle has the same probability of having a defect.  I expected the count per area of the resulting distribution to follow a Poisson distribution if I break up the circle into equal area rectangles.    Since it requires only placing points within a circular area, I injected two uniform random distributions in polar coordinates: $R$ (radius) and $\theta$ (polar angle).  But after doing this injection, I clearly get more points in the center of the circle compared to the edge.     What would be the correct way to perform this injection across the circle such that the points are randomly distributed across the cirlce? Where can I send feature requests? Both for Ubuntu as a whole and individual (supported) apps? Find the value of $\sum_{k=1}^{n}k\binom{n}{k}$? Parse PHP code to extract function names? Why do we need the trilogy instead of just one site? Installing QGIS with ECW support on Mac? Which is correct?     How much is the two fares?      How much are the two fares? Now this might be a very stupid question for many readers, but I am getting really confused.   I was reading about electricity and current, and I read this:  Suppose we connect a wire to the ends of a battery, and a bulb in the circuit, current flows and lights up the bulb. The battery is responsible for doing work on the positive charges to move them from negative terminal to positive terminal, that is moving against the field. Now, these energised positive charges move through the external circuit, and within the circuit they give some of their energy to light the bulb. I understood this very well.  Now, reading further, it was written that "Electrons are actually responsible for current flow". It was written that there is concentration of energised negative charges on the negative terminal, and these electrons then move through the external circuit from negative to positive terminal. This is really confusing.     So my question: What actually flows? The negative charge or the   positive charge?   Further reading, I also read that in semi-conductors, fluorescent light bulbs etc., both charges move through the circuit.     Now, one more doubt: If both charges move through the circuit in this   case, shouldn't the charges stop in the middle of the wire, because   opposite charges will attract each other, hence stopping their   movement? Will using 'var' affect performance? Earlier I asked a question about  and got the answer that while it is only necessary for anonymous types, that it is used nonetheless to make writing code 'quicker'/easier and 'just because'.  Following  I saw that var gets compiled down to the correct type in the IL (you will see it about midway down article).  My question is how much more, if any, IL code does using the var keyword take, and would it be even close to having a measurable level on the performance of the code if it was used everywhere? I am looking for a novel that I'd love to re-read it with my wife (my 13-year old self must be proud of me I guess). Key Plot points The plot was about humanity finding an alien station on an orbit of Earth. (I'm not sure if it wasn't Moon itself). On this station there were thousands of ships ready to travel so there rose a company that paid people to get on those ships and explore the galaxy. The problem was humans didn't understand how to steer those ships so they had to rely on preset targets. Of course there was no telling where particular ship was to go and fair amount of them never returned. Chronology and other relevant information I read it as an early teenager back in early 2000s. It was Polish translation of a foreign (possibly English) story. I think (not sure) that the book wasn't new at the time. It was just one of those books you dig out in a library and take to see if it's good. I don't recall cover either and even if I did it'd be of the Polish version. Additional information could be that the narration was led along the psychoanalytics of the main protagonists where he relives his memories from inside the station and his journeys. What is the difference between Affection and Friendship, if any? I've risen Pokemon Amie Affection to 5 hearts on my Riolo in the hopes that it will evolve as soon as it levels up, but I'm not certain that this is the same thing as friendship, and I'd like to not waste a level.  My question is this: What is the difference between Pokemon Amie Affection and the Friendship stat? I know I'm asking for the close-to-impossible -- as a real full-backup certainly requires root permissions. But still there are many folks around not wanting to root their devices -- afraid of voiding their warranties or bricking their devices, or just not having their devices supported by any rooting method.  I also know there were a lot of questions asked already on this topic, and I checked all of them having the backup tag -- none covers the entire topic, all just have pieces, and especially people new to Android (but other non-power-users as well) would have a hard time figuring out the best way.  So I want a detailed canonical answer to the question:  Not involving root-solutions, how to achieve a backup as close as possible to a full backup?  Please do not give simple one-liner answers like "Use app xyz [full-stop]." If mentioning an app (and I doubt a single app would be the answer here), include what parts are covered by it -- as well as ideas on how to fill the gaps it leaves. (And to make it absolutely clear: I know the first thing coming to mind is Titanium Backup -- I use it myself, but this does not apply here: This question is strictly about methods for non-rooted devices!) Moreover, the answer should be as generic as possible in terms of applying to a wide range of devices (i.e. it should not be restricted to one device or manufacturer).  I already mentioned having investigated all questions here tagged backup. These will certainly be helpful providing details for answers here, so I will list up the topmost ones concerning my question:            All these provide some details for my question (so feel free to get inspired by them) -- but I feel there are still details missing. Also it would be helpful to have a summary -- say, an answer including the full description of "the maximum possible".  A last criterium: While I'd consider cloud-based solutions legit, I'd favour local solutions. If you can provide both: all the better. But some people value privacy quite high (I'm one of them), and thus would not trust their data to some cloud service.    Thanks to Ryan, we now have a solution for a really complete backup of all apps and their data -- which I didn't dare to hope for! The only disadvantage: His solution only works for less than 10% of all Android users; namely those whose devices are running at least with Android 4.x.  So again, I ask the close-to-impossible: Any solutions applicable at least on Gingerbread (2.3.x) or, better, even Froyo (2.2.x) -- so they cover the majority of current devices? These solutions may involve multiple tools (try to keep it as simple as possible though; think of your mother to follow your instructions ;)  And keep in mind: NO ROOT!    To further motivate high-quality answers (and hopefully avoid low-quality ones), I will be a harsh one here: As I rarely do, I will down-vote answers not fitting the mentioned criteria on one end -- but on the other end, I will setup a bounty for the best answer (which cannot be done immediately, but earliest after 2 days). How to reset the Xorg / xserver? Xserver keeps crashing on my general user account both in Unity 3D and 2D. It doesn't do it on the guest account.  That's why I want to reset / rollback everything xserver related, hoping this is going to fix it.  Most answers on this involve sudo dpkg-reconfigure xserver-xorg. However, this does nothing for me (generates no output) and I read in other forums, that it's deprecated.  So, what's the current way to reset all xserver / xorg options; what's the alternative to sudo dpkg-reconfigure xserver-xorg? X crashes during work, not before login or so. And the effect of a crash is, that I get thrown out of the session, not a freeze or machine crash. What are exchanges like "How are you," "I'm fine," and "See you later" called? "Do you want to continue[Y/n]?" Why the upper case? I am new to Ubuntu and some little thing start to bug me. Such as when trying to install a program, Ubuntu asks,     Do you want to continue[Y/n]?   What is bugging me is why the letter "Y" is upper case and "n" is lower case. Do they have any significant reason why one is upper and the latter is lower? Whatever case I enter it doesn't change the outcome: it either continues or not. Are they trying to notify us that we can enter both and it won't change anything? Where did Hogwarts get money for salaries, food and other purchases? We know that you can't transfigure food, so you have to grow it or buy it. Ditto money.  I'm sure that aside from some medicinal plants Herbology Professor had there were no farmlands at Hogwarts. So they must have bought food (as well as potions ingredients for Snape etc...). And they needed to pay the teacher salaries.  Where did all that money come from according to canon?  Ministry funding?  Tuition?  Patent money on Dumbledore's inventions?  Philanthropic donations by Malfoys and co?  Other? Simple series convergence/divergence: $\sum_{k=1}^{\infty}\frac{2^{k}k!}{k^{k}}$