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 &...
- 129k
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
Related Tags
scripts × 6589bash × 3450
command-line × 2673
cron × 434
python × 231
startup × 186
permissions × 168
server × 161
ssh × 128
14.04 × 126
sudo × 118
networking × 111
environment-variables × 103
files × 94
text-processing × 94
sed × 94
automation × 94
gnome-terminal × 93
sh × 93
16.04 × 86
apt × 85
directory × 82
12.04 × 81
nautilus × 81
gnome × 79