I have cmd1 and cmd2.  cmd1 &amp;&amp; cmd2 will not run cmd2 if cmd1 fails.  cmd1 || cmd2 will run cmd2 if cmd1 fails  How do I run cmd2 regardless of whether cmd1 succeeds or not?
Currently I have a script.sh file with the following content:  #!/bin/bash wget -q http://exemple.com/page1.php; wget -q http://exemple.com/page2.php; wget -q http://exemple.com/page3.php;   I want to execute the commands one by one, when the previous finishes. Am I doing it in the right way? I've never worked with Linux before and tried to search for it but found no solutions.
For example:  javac Foo.java Note: Foo.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. Hello and I'm quite new to Math SE.  I am trying to find the largest consecutive sequence of composite numbers. The largest I know is:  $$90, 91, 92, 93, 94, 95, 96$$  I can't make this series any longer because $97$ is prime unfortunately.  I can however, see a certain relation, if suppose we take the numbers like (let $a_1, a_2, a_3,...,a_n$denote digits and not multiplication):  $$a_1a_2a_3...a_n1,\ a_1a_2a_3...a_n2,\ a_1a_2a_3...a_n3,\ a_1a_2a_3...a_n4,\ a_1a_2a_3...a_n5,\ a_1a_2a_3...a_n6,\ a_1a_2a_3...a_n7,\ a_1a_2a_3...a_n8,\ a_1a_2a_3...a_n9,\ a_1a_2a_3...(a_n+1)0$$  The entire list of consecutive natural numbers I showed above can be made composite if:   The number formed by digits $a_1a_2a_3...a_n$ should be a multiple of 3 The numbers $a_1a_2a_3...a_n1$ and $a_1a_2a_3...a_n7$ should be composite numbers   If I didn't clearly convey what I'm trying to say, I mean like, say I want the two numbers (eg: ($121$, $127$) or ($151$, $157$) or ($181$, $187$)) to be both composite.  I'm still quite not equipped with enough knowledge to identify if a random large number is prime or not, so I believe you guys at Math SE can help me out. Halo particles don't render in Cycles When should I start the DLC? I'm late to the Borderlands 2 party, but I picked up the Season Pass for a steal.  I'm still only in the teens as far as my level is concerned.  However, there are now 3 DLC packs out and I've got them all installed.  Sometimes it's tempting to go away from the main quest and just jump into something new and potentially interesting.  In BL1, I played through the DLC between playthroughs of the game, treating the add-ons like continuations of the game post-final-boss.  I'm not sure if this is a good idea in BL2 (or even if it was smart in BL1, honestly...)  Is there a recommended level for starting the DLCs?  Will I encounter enemies that are too hard if I go early, or too easy if I go late?  Are there some weapons or quest rewards that I really can't get the most of until after I'm a certain level? Chrome: remove URL from autocomplete which doesn't show up in history? I accidentally visited gist.gihub.com (note the missing t), and now that URL auto completes each time I start typing gist.…. How can I remove this URL?  I've tried removing it from my history, but that doesn't help:     (note the empty search results) How to run some code only when the rails console starts, kind of like an rc file? Using custom tables in nft I have a Fedora 31 system on which I am using iptables-nft. I need this because there is still a bunch of software that expects the legacy iptables command line tools.  This means that my nftables configuration has the corresponding set of tables to match the legacy configuration:  table ip filter table ip nat table ip6 filter table ip mangle table ip6 nat table ip6 mangle   I use a containerized VPN service that, prior to nftables, would enable masquerading on my primary ethernet interface by running something like this when the vpn comes up:  iptables -t nat -A POSTROUTING -s 172.16.254.0/24 -o eth0 -j MASQUERADE   Since upgrading to Fedora 31 and iptables-nft, this no longer works. The container (running alpine) does not have the iptables-nft compatability wrapper, but it does have the nft command itself.  I can't use the nft cli to add rules to the existing tables, because this will break iptables-nft. But I can create new tables. I was hoping I could just apply a configuration like this:  table ip vpn {     chain postrouting {         type nat hook postrouting priority filter; policy accept;         ip saddr 172.16.254.0/24 oifname "eth0" counter masquerade     }      chain forward {         type filter hook forward priority filter; policy accept;         ip saddr 172.16.254.0/24 counter accept     } }   ...but this doesn't appear to have any impact. By setting the chains in this table to priority 0 I was hoping they would match before the legacy nat table, but that doesn't appear to be the case.  Is there a way to make this work? How do I install applications in Ubuntu? How can I install applications like Google Chrome on Ubuntu?  Are there any commands to install an application?    Index of answers: I am using \tableofcontents to create TOC in my document. however it is appearing as shown in the image. As the numbers increase the gap between the number and text is reducing.   Thanks for your help Aku Where can I find out when the next kernel version will be released for my distro version? I checked the , , and  wiki pages but still cannot seem to find a complete answer to this.  When using an LTS release like 18.04, is there somewhere public that can be checked to determine what kernel versions are being tested and when they are anticipated to be released for it? I would like to use 4.19, for example, but would like to know how to check this for any anticipated kernel release.  I know I could potentially just install the 4.19 kernel myself but I would rather know when it (and future kernel releases) were in the release pipeline. Is there somewhere on Launchpad that I could check? Somewhere else? Where are the Ubuntu kernel package maintainers doing their work? adding labels to points in ListPlot If for two suitable matrices $B$ and $C$, $AA^TB=AA^TC$ can we conclude that $A^TB=A^TC$? Let $A$ be a $m\times n$ real matrix. If for two suitable matrices $B$ and $C$, $$AA^TB=AA^TC$$ can we conclude that $A^TB=A^TC$?  I know $AA^T$ is a symmetric matrix. Every real symmetric matrix is diagonalizable. But I am not sure how to use this information. Thanks for reading and helping me out with hints. "There IS/ARE rice, meat and tomatoes on my plate" Cross platform Hard Disk encryption? Why is the time limit for editing comments 5 minutes? What is the reasoning behind this? Why doesn't hydrogen gas exist in Earth's atmosphere? The root mean square velocity of hydrogen gas at room temperature is: Gas constant: $R=8.31\ \mathrm{J\ K^{-1}\ mol^{-1}}$ Molar mass of hydrogen gas: $M=2.02\times10^{-3}\ \mathrm{kg/mol}$ $$\begin{align} v &amp;= \left(\frac{3\times8.31\ \mathrm{J\ K^{-1}\ mol^{-1}}\times300}{2.02\times10^{-3}\ \mathrm{kg/mol}}\right)^{\frac12}\\ &amp;= 3356.8377\ \mathrm{m/s}\\ &amp;= 3.356\ \mathrm{km/s} \end{align}$$ The escape speed of Earth is $11.2\ \mathrm{km/s}$, which is larger than the root mean square velocity of hydrogen gas. But still, hydrogen gas doesn't exist in Earth's atmosphere. Why? Have I made any mistakes in my calculations? Is $\{\emptyset\}$ a subset of $\{\{\emptyset\}\}$? Why can `root` run any command as any user without providing password? My /etc/sudoershas content:  Defaults        env_reset Defaults        mail_badpass Defaults        secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"  # Host alias specification  # User alias specification  # Cmnd alias specification  # User privilege specification root    ALL=(ALL:ALL) ALL  # Members of the admin group may gain root privileges %admin ALL=(ALL) ALL  # Allow members of group sudo to execute any command %sudo   ALL=(ALL:ALL) ALL  # See sudoers(5) for more information on "#include" directives:  #includedir /etc/sudoers.d   There is no rule above specifying NOPASSWD. I was wondering  why user root seem to be able to execute any command as any user without providing password?  Thanks. Surjectivity implies injectivity and conversely Let S be a finite set.Let F be a surjective function from S to S.  How do I prove that it is injective? Usage in sentence:  Person A: Ooh - look at that crow!  Person B: Well, actually, as someone who is a scientist who studies crows, I am telling you, specifically, in science, no one calls jackdaws crows. They're not the same thing. If you're saying "crow family" you're referring to the taxonomic grouping of Corvidae, which includes things from nutcrackers to blue jays to ravens. It's not one or the other, that's not how taxonomy works.  Person A: Are you always such an XXX?   "Pedant" is close, but not quite.  It would be a mix of "know-it-all", "condescending" and "arrogant".