So what are they exactly?Ī command line, or terminal, is a text based interface to the system. As an example I will typically have 3 terminals open: 1 in which I do my working, another to bring up ancilliary data and a final one for viewing Manual pages (more on these later). Experiment until you find the setup that suits you best. We can also easily jump back to the GUI when it suits us. This is also to our advantage as we can have several command lines open and doing different tasks in each at the same time. While you can leave the GUI alltogether, most people open up a command line interface just as another window on their desktop (in fact you can have as many open as you like). Don't think of it as leaving the GUI behind so much as adding to it. Don't worry, with a bit of practice you'll soon come to see it as your friend. The command line is an interesting beast, and if you've not used one before, can be a bit daunting. This tutorial will focus instead on the command line (also known as a terminal) running Bash. This tutorial won't focus on these as I reckon you can probably figure that part out by yourself. The same is true (for a different reason) if you use bash' search history features - be very sure you find the same thing in all terminal sessions.Linux has a graphical user interface and it works pretty much like the GUI's on other systems that you are familiar with such as Windows and OSX. If you use this feature be very careful (or avoid) using vi - it has too many configuration possibilities concerning how it interprets some keystrokes to be sure it will do what you want. Copy Input To->None turns the feature off. Everything you type in THAT tab (in contrast to terminator's "any tab") will be replicated to all selected tabs. Next, select Edit->Copy Input To and pick how you want to copy. Double-click free space across the bottom to create multiple tabs. Broadcast Off turns the feature off.įor a variant, install KDE's konsole. Now anything typed in ANY tab will be replicated to all tabs. (Once in terminator) right-click in the terminal area and select Open Tab for however many tabs you wantĬlick the icon in the top right of the terminal area (not the title bar) and select Broadcast Allįor each tab, click this icon and select the group just createdĬlick this icon and select Broadcast Group.To write a script that I call for every tab is not an option, since I will have 5 terminals with 5-7 tabs in each in the end, and that means it would be 25 to 30 scripts to write (cost more than it helps in my problem). If I remove the exec gnome-terminal -geometry 125x49-0+81 –tab rows from the example and call a script from some other file, it works fine - I get logged in to the server and all commands executed. I have tried to do it this way instead and running this in the script below: gnome-terminal -geometry 125x18-0-26 -tab -t "some title" -e /home/ekido/Desktop/MyScripts/myScriptĮxec gnome-terminal -geometry 125x49-0+81 –tab Gnome-terminal -geometry=260x25-0+0 -tab -e "csh -c \"ct setview myViewName cal\"" –tab -tab -tab (works ok, view is set but no command executed after that) Third tab: shall only execute some commands Second tab: shall login into a server and execute some commands I want to run a set of commands (5 – 10 commands) in each tab automaticallyįirst tab: shall set clear-case view and after that execute one or more commands.I want to open a gnome terminal with five tabs in it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |