I have some commands that take too long to execute so I need a bash script to execute them serially.  The commands:  cd ~/my_file  command 1  command 2 ... command n    This is on Ubuntu 18.04. How should I do it?
I was curious how I would go about running multiple commands via shell script.  For example, just to try it out, I'd like to be able to connect a .desktop to a .sh that will run all the update codes so I don't have to type it out. I know how to execute a single command via a .sh, not multiple.  Any way?
We have to prove that  "the product of two numbers ending in 6 also ends with 6" mathematically.  I have no clue how to start. I don't want you to prove it for me! but some hints would be very helpful as I'm totally stuck on how to start this prove. I want to  GRANT SELECT     ON ALL TABLES     TO foo;   But postgres tells me I have a syntax error at "TO". It expects a GRANT like:  GRANT SELECT     ON ALL TABLES     IN SCHEMA public     TO foo;   We have a handful of tables that have been sharded such that public, shard123, and shard124 all have a table my_table, and public.my_table is the parent of both shard123.my_table and shard124.my_table. I've GRANTed SELECT to foo for public schema, but foo doesn't have permission for any of the shard schemas.  I've also done:  ALTER DEFAULT PRIVILEGES     FOR ROLE dba     GRANT SELECT     ON TABLES     TO foo;   ...which should automatically grant for any new tables and schemas made from now on.  There are 1000 &lt; n &lt; 10000 shards/schemas, so GRANTing separately for each shard/schema is impractical.  How can I GRANT to a role for all existing tables across all existing schemas (all shards)?  Or even better, can I GRANT for all schemas LIKE 'shard%'? I'm trying to get a Schengen Visa from my first port of entry, France. I am trying to book an appointment with the French Consulate in SF, and the URL I am using is the following:   I've been checking this page periodically for the past few weeks, and I always see a dialog that that says "We are currently at full capacity. Please try again later." Their calendar provides no direct option for going to the next month. (Using the in-browser developer tools, I noticed that the button for next month is hidden. Un-hiding it and clicking on the Next Month button displays no available appointments either. I checked all the way until September 2016).  My guess is that there are absolutely no appointments for the next 6 months. Or, more likely, their page isn't functioning properly. I'll be traveling in July. Does anybody have any alternate suggestions to book an appointment? Stitch first and edit later or vice versa? I have a set of three images imported in Lightroom 3.6 which I want to stitch into one panorama using Photoshop's CS5.5 Merge to Panorama tool. As I see it I have two options in doing so.   Doing all modifications (colour, brightness, contrast, etc...) first, syncing the changes between the three photos and then stitch them together. Stitching the photos first and then use Lightroom to apply modification to the whole image.   Which of these two methods is considered to be best practice? Javascript && operator as if statement? In the new header could we please move the chat link back to where it was? (One click away)  As a daily frequent to the JavaScript room that's the one link I'd love to have visible 100% of the time.  Aside from that, I actually love the new header. (Maybe take it a step further an add a customizable header with (X) link spots for your most used links?)  Just my thoughts My motherboard currently supports both SATA II and III (3 Gb/s and 6Gb/s respectively), but after reading some online, it seems as though connecting a HDD to the 6 Gb/s is pretty much pointless. If this is the case I'm going to leave my two SATA III ports open for something that can actually use it (which at this point I'm not really sure what can).  This is part of an article I read:     In terms of everything else, we saw basically no difference from the same single drive being plugged into a SATA 6Gb/s or SATA 3Gb/s port. All of this is obviously due to the hard drive not being able to actually take advantage of the 6Gb/s bus.   from . Omitting the Milliseconds in a Date My question is how would I go about proving this?     Prove that $R$ is a local ring if and only if all elements of R that are not units form an ideal.   I understand that I need to prove both directions so:  $(\Rightarrow)$ Local ring means has a unique maximal ideal, so I want to show that this implies the elements are not units.  $(\Leftarrow)$ non unit elements of $R$ form an ideal, so if I show this is unique maximal ideal I can then conclude local ring?  Any hints would be appreciated. I know that VARIABLE=value creates an environment variable, and export VARIABLE=value makes it available to processes created by the current shell. env shows the current environment variables, but where do they live? What comprises an environment variable (or an environment, for that matter)? Set myself as owner of /etc with chown command now getting all kinds of errors I am trying to find out whether $A = \begin{bmatrix}     3 &amp; 1 \\     0 &amp; 2 \\ \end{bmatrix}$ and $B = \begin{bmatrix}     4 &amp; 1 \\     -2 &amp; 1 \\ \end{bmatrix}$ are similar. Both matrices have the same trace, same rank, same determinant and the same eigenvalues. So I think they are similar. The eigenvalues are $3, 2$. Now I'm not sure how to find if they are indeed similar.   I am trying to find if there is a basis for $\mathbb{R^2}$ that contains only eigenvectors but when trying to solve $(3 I - A)v = 0$ there is no solution... What should I do from here? Which answer do I accept if I have multiple correct answers? I need to show that $\sqrt{2}$, $\sqrt{2+\sqrt{2}}$, $\sqrt{2+\sqrt{2+\sqrt{2}}},\ldots$ converges and find the limit.   I started by defining the sequence by $x_1=\sqrt{2}$ and then $x_{n+1}=\sqrt{2+x_n}$. Then I proved by induction that the sequence is increasing and that it is bounded. Then I use the Monotone Convergence Theorem to prove that it converges.  Now, I claim that the limit of the sequence is $2$. So I need to show that for all $\epsilon&gt;0$, there exists $N$ such that for all $n\geq N$ we have $|x_n-2| &lt; \epsilon$. This is kind of where I'm stuck. I don't know how to proceed to prove the convergence to $2$. How can I securely format a solid-state drive? How does the human eye knows how far the object from which the photon was reflected? A photon is emitted from a source and reflected off an object (or objects) until it hits the human eye. The color of the object we see depends on the photon wavelength. If photon travels with constant speed how does the human eye know how far the object from which the photon was reflected? How to make a water vortex In Shakespeare's Macbeth, the Third Witch says to Banquo: "Thou shalt get kings, though thou be none" (1.3.65); if I want to quote that line and write it in the third person singular, how should I conjugate the verbs "shall" and "be" correctly? Right-hand sidebar covers the footer on the "ask question" page and markdown help page I have noticed that while asking questions and scrolling to the bottom of the page, the right sidebar containing recent questions covers the footer partially. Also, a part of it goes beyond the browser's boundary. It may not be a big problem but it still doesn't look good.    This also happens on the  page Just doing this for revision, seems much harder than it should be, should I use $x=\tan u$ ? Any help appreciated.