Very straight forward way to start a command terminal on Ubuntu, Linux Mint and other similar supported Linux operating systems. This is the most common method and I always prefer to use this one. And in that command box type- gnome-terminal and then press the Enter key to run the terminal.ģ: Use the shortcut key: Ctrl+Alt+T to open the terminal It will get started right there with your current directory.ĭo you know on Gnome Desktop, we can instantly run the various command without opening the command terminal? If not then press Alt+F2 keys, this shortcut will open a Run command box, just like we have on Microsoft Windows systems. Anywhere, whether you are on Desktop, inside some folder, just right-click and select “Open in Terminal”. One of the easiest ways to start a command terminal in Ubuntu or any other Linux is the shortcut given in the right-click context menu. activate & sleep 2h & chia plots create -k 32 -b 4000 -r 4 -u 128 -n 16 -t /mnt/ssd/temp3 -2 /mnt/ssd -d /mnt/hdd |tee /home/user/chialogs/chia3_1_.log'Ĭan the mate-terminal open a full fetched new tab that would work as a full terminal tab? Or what would be an alternative? Thanks a lot.5: Add terminal to favorite list on Ubuntu launcher Different ways to run command line terminal in Ubuntu 1: Run the terminal directly via the context menu Screen -d -m -S chia3 bash -c 'cd /home/user/chia-blockchain &. activate & sleep 1h & chia plots create -k 32 -b 4000 -r 4 -u 128 -n 16 -t /mnt/ssd/temp2 -2 /mnt/ssd -d /mnt/hdd |tee /home/user/chialogs/chia2_1_.log' Screen -d -m -S chia2 bash -c 'cd /home/user/chia-blockchain &. activate & sleep 0h & chia plots create -k 32 -b 4000 -r 4 -u 128 -n 16 -t /mnt/ssd/temp1 -2 /mnt/ssd -d /mnt/hdd |tee /home/user/chialogs/chia1_1_.log' Screen -d -m -S chia1 bash -c 'cd /home/user/chia-blockchain &. activate & sleep 1h & chia plots create -k 32 -b 3600 -r 2 -u 128 -n 999 -t /home/thomas/nvme3.2 -d /home/thomas/6-16-WD/plots | tee /home/thomas/plotlogs/3.log'" Mate-terminal -tab -title="3" -e "bash -c 'cd /home/thomas/chia-blockchain &. activate & sleep 0.5h & chia plots create -k 32 -b 3600 -r 2 -u 128 -n 999 -t /home/thomas/nvme3.2 -d /home/thomas/6-16-WD/plots | tee /home/thomas/plotlogs/2.log'" Mate-terminal -tab -title="2" -e "bash -c 'cd /home/thomas/chia-blockchain &. activate & sleep 0h & chia plots create -k 32 -b 3600 -r 2 -u 128 -n 999 -t /home/thomas/nvme3.2 -d /home/thomas/6-16-WD/plots | tee /home/thomas/plotlogs/1.log'" Mate-terminal -tab -title="1" -e "bash -c 'cd /home/thomas/chia-blockchain &. This is what ultimately I'm trying to do. It can be done with screen but I don't want to use screen. Instead of opening tabs manually I wanted the terminal to do it for me. I'm trying to run multiple instances of chia plotter that would be staggered by half an hour. It doesn't do cd and it doesn't work as a full terminal. It doesn't open a full terminal that would work the same way as if I opened it manually. It works for that limited example that I presented at the beginning but apparently doesn't work for what I'm trying to get to. If you type that as presented, that should work. Mate-terminal -tab -title="Third tab" -e "bash -c 'command 1 & command 2 command 3'" Mate-terminal -tab -title="Second tab" -e "bash -c 'command 1 & command 2 command 3'" & Mate-terminal -tab -title="First tab" -e "bash -c 'command 1 & command 2 command 3'" & To sum it up, your script should look like: #!/bin/bash That will put the first two commands in the background, allowing the shell to launch the other commands in parallel.įurthermore, if you're going to run multiple commands in a chain in each terminal tab, you should run the bash shell on each command line the terminal program itself is not a shell, so you need a shell to parse the double ampersand and stuff. Also each of those three lines should start with the command mate-terminal, and if you want them all to launch all at once, you need not semicolons at the end of each line, but single ampersands. Well, for starters the option is -title, not -tittle.
0 Comments
Leave a Reply. |