Questions Tagged With terminalhttp://linuxexchange.org/tags/terminal/?type=rssquestions tagged <span class="tag">terminal</span>enThu, 23 Apr 2015 17:12:38 -0400how to define variable in sshhttp://linuxexchange.org/questions/3525/how-to-define-variable-in-ssh<p>I need to use <code>ssh</code> to send command to different computers to run programs. Can I define a variable of <code>Directory</code> and <code>program</code> in front of this shell script? Then, I do not need to write them every time?</p> <p><code>host_list=("c15-0330-10.ad.mtu.edu" "c15-0330-11.ad.mtu.edu" "c15-0330-12.ad.mtu.edu")</code> <code># I have multiple programs</code> <code># program=c("L_1","L_2","L_3")</code> <code>ssh -f "${host_list[0]}" 'set Directory="/home/campus27/zwang10/Desktop/AWRR/program/power/vmodel_1/nprot/K_10"; cd $Directory &amp;&amp; nohup Rscript L_1.R&gt; L_1_sh.txt;echo "The job L_1 is finished" |mutt "zwang10@mtu.edu" -s "The job L_1 is finished"'; ssh -f "${host_list[1]}" 'set Directory="/home/campus27/zwang10/Desktop/AWRR/program/power/vmodel_1/nprot/K_10"; cd $Directory &amp;&amp; nohup Rscript L_2.R&gt; L_2_sh.txt;echo "The job L_2 is finished" |mutt "zwang10@mtu.edu" -s "The job L_2 is finished"'; ssh -f "${host_list[2]}" 'set Directory="/home/campus27/zwang10/Desktop/AWRR/program/power/vmodel_1/nprot/K_10"; cd $Directory &amp;&amp; nohup Rscript L_3.R&gt; L_3_sh.txt;echo "The job L_3 is finished" |mutt "zwang10@mtu.edu" -s "The job L_3 is finished"';</code></p>zwang10Thu, 23 Apr 2015 17:12:38 -0400http://linuxexchange.org/questions/3525/how-to-define-variable-in-sshterminalshell-scriptsshHow re-map the shortcut key about gnome-terminalhttp://linuxexchange.org/questions/3001/how-re-map-the-shortcut-key-about-gnome-terminal<p>According to the <a href="http://library.gnome.org/users/gnome-terminal/stable/gnome-terminal-usage.html.en#gnome-terminal-contents">Gnome-Termianl Usage</a>, I found that <strong>ctrl+shift+up/down</strong> can <strong>scroll up/down</strong> a line in the terminal.</p> <p>Now, I want to re-map the shortcut key, just like: <strong>alt+j/k</strong> to <strong>scroll up/down</strong> a line, that's the old habit of vimer. :) I tried searching the settings in <strong>Edit</strong> -&gt; <strong>Keyboard Shortcuts</strong> of Terminal, but found nothing. Can anyone help me? Thanks in advance.</p> <hr> <p>The information of my computer is :</p> <pre><code>$ cat /etc/issue Ubuntu 12.10 \n \l </code></pre>MarsloSun, 23 Dec 2012 03:09:30 -0500http://linuxexchange.org/questions/3001/how-re-map-the-shortcut-key-about-gnome-terminalterminalubuntuHow can I detach process from a terminal I don't have access to?http://linuxexchange.org/questions/1357/how-can-i-detach-process-from-a-terminal-i-dont-have-access-to<p>I have a server process running in a gnome-terminal at home. I am at work, and I want to detach the process from that terminal and move it to screen without restarting it. Also, I can't use VNC.</p> <p>Is there a way to do this?</p>JoehillenSat, 18 Sep 2010 00:22:08 -0400http://linuxexchange.org/questions/1357/how-can-i-detach-process-from-a-terminal-i-dont-have-access-toterminalscreenprocessJobs Control: bg keeps it going?http://linuxexchange.org/questions/1155/jobs-control-bg-keeps-it-going<p>If I send a task to the background with <code>ctrl+z</code>, is it stopped?</p> <p>If I type <code>bg 1</code>, will it keep going?</p> <p>I'm just a little confused as to how background processes work. <code>jobs</code> and <code>bg</code> and <code>fg</code> don't have man pages.</p> <p>If I have a <code>jobs</code> output that looks like this:</p> <pre><code>kevin@orangebox:~$ jobs [1]- Stopped htop [2]+ Stopped top </code></pre> <p>What do the pluses and minuses mean?</p>Klink-a-dink-dinkTue, 27 Jul 2010 23:51:43 -0400http://linuxexchange.org/questions/1155/jobs-control-bg-keeps-it-goingcliconsoleterminalZSH / Configuration filehttp://linuxexchange.org/questions/438/zsh-configuration-file<p>I like the configurablity of the ZSH terminial but I cannot seem to make my login default to the ZSH. Also where is the config file for the ZSH interface?</p>The DocTue, 11 May 2010 01:27:09 -0400http://linuxexchange.org/questions/438/zsh-configuration-filezshzshellterminalconsole