Hot answers tagged

10 votes
Accepted

How to create multiple files (with different names) in a specific directory all at once in a Linux terminal

Yes, you can create multiple files with different names in a single command using terminal. Here's an example command that does exactly what you want: mkdir -p src/components && touch src/...
  • 301
5 votes
Accepted

Shell-Check failure

At a guess - because you really haven't included enough information about the problem - you are doing something like PACKAGES='foo bar baz' and then when you double-quote the variable like apt-get &...
4 votes
Accepted

Command dependent on background job finishing

... and should run independent of the Shell it was started in It can't run independent of the Shell it was started in ... It needs the shell to interpret its commands all the way through until its ...
  • 20.2k
1 vote

Shell-Check failure

bash handles the expansion of a quoted parameter as a single token regardless of spaces, tabs, or newlines separating the words originally held in that parameter and therefore it will be wholly passed ...
  • 20.2k
1 vote
Accepted

Error: Failed to execute child process Failed to execve: No such file or directory

If you don't want to use gnome-terminal, you can modify your script to use the cd command to change to the desired directory and then execute the script. Here's what your modified script might look ...
  • 301

Only top scored, non community-wiki answers of a minimum length are eligible