How to open a directory and save code in it Gerris in Linux?











up vote
1
down vote

favorite
1












I have to simulate. but I cannot open and type these codes below in vortivcity directory.I am using remote connection from mac to university machine.



[sbalta@dps11 bin]$ cd vorticity
[sbalta@dps11 vorticity]$ 1 2 GfsSimulation GfsBox GfsGEdge {} {
-bash: 1: command not found
[sbalta@dps11 vorticity]$ 1 2 GfsSimulation GfsBox GfsGEdge {} {
-bash: 1: command not found
[sbalta@dps11 vorticity]$ GfsTime { end = 0 }
-bash: GfsTime: command not found
[sbalta@dps11 vorticity]$ }
-bash: syntax error near unexpected token `}'
[sbalta@dps11 vorticity]$ GfsBox {}
-bash: GfsBox: command not found
[sbalta@dps11 vorticity]$ 1 1 right
-bash: 1: command not found
[sbalta@dps11 vorticity]$ 1 1 top
-bash: 1: command not found









share|improve this question




















  • 1




    You need to enter that code in a file, using a text editor, and save that file wherever you want.
    – Mat
    Jan 25 '14 at 14:24










  • thank you for reply. so how can run it? i am so new to this stuff
    – user57606
    Jan 25 '14 at 15:13










  • Please read the tutorial.
    – Mat
    Jan 25 '14 at 15:14










  • Of course I read. but the problem is text editor is saving the file as rtf format. Thanks
    – user57606
    Jan 25 '14 at 16:06










  • "using a text editor", don't use a fancy word processor.
    – Mat
    Jan 25 '14 at 16:09















up vote
1
down vote

favorite
1












I have to simulate. but I cannot open and type these codes below in vortivcity directory.I am using remote connection from mac to university machine.



[sbalta@dps11 bin]$ cd vorticity
[sbalta@dps11 vorticity]$ 1 2 GfsSimulation GfsBox GfsGEdge {} {
-bash: 1: command not found
[sbalta@dps11 vorticity]$ 1 2 GfsSimulation GfsBox GfsGEdge {} {
-bash: 1: command not found
[sbalta@dps11 vorticity]$ GfsTime { end = 0 }
-bash: GfsTime: command not found
[sbalta@dps11 vorticity]$ }
-bash: syntax error near unexpected token `}'
[sbalta@dps11 vorticity]$ GfsBox {}
-bash: GfsBox: command not found
[sbalta@dps11 vorticity]$ 1 1 right
-bash: 1: command not found
[sbalta@dps11 vorticity]$ 1 1 top
-bash: 1: command not found









share|improve this question




















  • 1




    You need to enter that code in a file, using a text editor, and save that file wherever you want.
    – Mat
    Jan 25 '14 at 14:24










  • thank you for reply. so how can run it? i am so new to this stuff
    – user57606
    Jan 25 '14 at 15:13










  • Please read the tutorial.
    – Mat
    Jan 25 '14 at 15:14










  • Of course I read. but the problem is text editor is saving the file as rtf format. Thanks
    – user57606
    Jan 25 '14 at 16:06










  • "using a text editor", don't use a fancy word processor.
    – Mat
    Jan 25 '14 at 16:09













up vote
1
down vote

favorite
1









up vote
1
down vote

favorite
1






1





I have to simulate. but I cannot open and type these codes below in vortivcity directory.I am using remote connection from mac to university machine.



[sbalta@dps11 bin]$ cd vorticity
[sbalta@dps11 vorticity]$ 1 2 GfsSimulation GfsBox GfsGEdge {} {
-bash: 1: command not found
[sbalta@dps11 vorticity]$ 1 2 GfsSimulation GfsBox GfsGEdge {} {
-bash: 1: command not found
[sbalta@dps11 vorticity]$ GfsTime { end = 0 }
-bash: GfsTime: command not found
[sbalta@dps11 vorticity]$ }
-bash: syntax error near unexpected token `}'
[sbalta@dps11 vorticity]$ GfsBox {}
-bash: GfsBox: command not found
[sbalta@dps11 vorticity]$ 1 1 right
-bash: 1: command not found
[sbalta@dps11 vorticity]$ 1 1 top
-bash: 1: command not found









share|improve this question















I have to simulate. but I cannot open and type these codes below in vortivcity directory.I am using remote connection from mac to university machine.



[sbalta@dps11 bin]$ cd vorticity
[sbalta@dps11 vorticity]$ 1 2 GfsSimulation GfsBox GfsGEdge {} {
-bash: 1: command not found
[sbalta@dps11 vorticity]$ 1 2 GfsSimulation GfsBox GfsGEdge {} {
-bash: 1: command not found
[sbalta@dps11 vorticity]$ GfsTime { end = 0 }
-bash: GfsTime: command not found
[sbalta@dps11 vorticity]$ }
-bash: syntax error near unexpected token `}'
[sbalta@dps11 vorticity]$ GfsBox {}
-bash: GfsBox: command not found
[sbalta@dps11 vorticity]$ 1 1 right
-bash: 1: command not found
[sbalta@dps11 vorticity]$ 1 1 top
-bash: 1: command not found






terminal directory






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 25 at 14:44









Rui F Ribeiro

38.3k1475126




38.3k1475126










asked Jan 25 '14 at 14:01









user57606

83




83








  • 1




    You need to enter that code in a file, using a text editor, and save that file wherever you want.
    – Mat
    Jan 25 '14 at 14:24










  • thank you for reply. so how can run it? i am so new to this stuff
    – user57606
    Jan 25 '14 at 15:13










  • Please read the tutorial.
    – Mat
    Jan 25 '14 at 15:14










  • Of course I read. but the problem is text editor is saving the file as rtf format. Thanks
    – user57606
    Jan 25 '14 at 16:06










  • "using a text editor", don't use a fancy word processor.
    – Mat
    Jan 25 '14 at 16:09














  • 1




    You need to enter that code in a file, using a text editor, and save that file wherever you want.
    – Mat
    Jan 25 '14 at 14:24










  • thank you for reply. so how can run it? i am so new to this stuff
    – user57606
    Jan 25 '14 at 15:13










  • Please read the tutorial.
    – Mat
    Jan 25 '14 at 15:14










  • Of course I read. but the problem is text editor is saving the file as rtf format. Thanks
    – user57606
    Jan 25 '14 at 16:06










  • "using a text editor", don't use a fancy word processor.
    – Mat
    Jan 25 '14 at 16:09








1




1




You need to enter that code in a file, using a text editor, and save that file wherever you want.
– Mat
Jan 25 '14 at 14:24




You need to enter that code in a file, using a text editor, and save that file wherever you want.
– Mat
Jan 25 '14 at 14:24












thank you for reply. so how can run it? i am so new to this stuff
– user57606
Jan 25 '14 at 15:13




thank you for reply. so how can run it? i am so new to this stuff
– user57606
Jan 25 '14 at 15:13












Please read the tutorial.
– Mat
Jan 25 '14 at 15:14




Please read the tutorial.
– Mat
Jan 25 '14 at 15:14












Of course I read. but the problem is text editor is saving the file as rtf format. Thanks
– user57606
Jan 25 '14 at 16:06




Of course I read. but the problem is text editor is saving the file as rtf format. Thanks
– user57606
Jan 25 '14 at 16:06












"using a text editor", don't use a fancy word processor.
– Mat
Jan 25 '14 at 16:09




"using a text editor", don't use a fancy word processor.
– Mat
Jan 25 '14 at 16:09










1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










A text editor is not a word processor. You need to save your code as a simple text file, you can do that either by choosing "save as text" or the equivalent option in whichever word processor you used that created an rtf file, or just use a simple text editor.



You have not told us what operating system the remote machine is but one (or more) of these should already be installed:




  • nano


  • vim <-- NOT easy to use if you don't know it


  • emacs <-- slightly easier to use (the first time) but still geeky

  • gedit

  • pluma

  • kate

  • nedit


Just try these commands, the first one is almost certain to work on prety much whatever system you are running. Paste your lines into a blank file, and save it as something (for example mycode.gfs).



Once you have saved the file, you will need to run it using Gerris. I have never used this program but according to it's wiki, you should be able to do something like:



gerris2D mycode.gfs





share|improve this answer





















  • @user57606 I was asking about the remote system, not your local one.
    – terdon
    Jan 25 '14 at 18:16










  • remote system is Linux - the university's system
    – user57606
    Jan 25 '14 at 18:20












  • @user57606 OK, in that case my nano should work. Did you manage it?
    – terdon
    Jan 25 '14 at 18:21










  • Yes nano works but Sorry I could not save that blank file
    – user57606
    Jan 25 '14 at 18:22










  • @user57606 use Ctrl+O (WriteOut) to save the file in nano.
    – terdon
    Jan 25 '14 at 18:23











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f110873%2fhow-to-open-a-directory-and-save-code-in-it-gerris-in-linux%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote



accepted










A text editor is not a word processor. You need to save your code as a simple text file, you can do that either by choosing "save as text" or the equivalent option in whichever word processor you used that created an rtf file, or just use a simple text editor.



You have not told us what operating system the remote machine is but one (or more) of these should already be installed:




  • nano


  • vim <-- NOT easy to use if you don't know it


  • emacs <-- slightly easier to use (the first time) but still geeky

  • gedit

  • pluma

  • kate

  • nedit


Just try these commands, the first one is almost certain to work on prety much whatever system you are running. Paste your lines into a blank file, and save it as something (for example mycode.gfs).



Once you have saved the file, you will need to run it using Gerris. I have never used this program but according to it's wiki, you should be able to do something like:



gerris2D mycode.gfs





share|improve this answer





















  • @user57606 I was asking about the remote system, not your local one.
    – terdon
    Jan 25 '14 at 18:16










  • remote system is Linux - the university's system
    – user57606
    Jan 25 '14 at 18:20












  • @user57606 OK, in that case my nano should work. Did you manage it?
    – terdon
    Jan 25 '14 at 18:21










  • Yes nano works but Sorry I could not save that blank file
    – user57606
    Jan 25 '14 at 18:22










  • @user57606 use Ctrl+O (WriteOut) to save the file in nano.
    – terdon
    Jan 25 '14 at 18:23















up vote
1
down vote



accepted










A text editor is not a word processor. You need to save your code as a simple text file, you can do that either by choosing "save as text" or the equivalent option in whichever word processor you used that created an rtf file, or just use a simple text editor.



You have not told us what operating system the remote machine is but one (or more) of these should already be installed:




  • nano


  • vim <-- NOT easy to use if you don't know it


  • emacs <-- slightly easier to use (the first time) but still geeky

  • gedit

  • pluma

  • kate

  • nedit


Just try these commands, the first one is almost certain to work on prety much whatever system you are running. Paste your lines into a blank file, and save it as something (for example mycode.gfs).



Once you have saved the file, you will need to run it using Gerris. I have never used this program but according to it's wiki, you should be able to do something like:



gerris2D mycode.gfs





share|improve this answer





















  • @user57606 I was asking about the remote system, not your local one.
    – terdon
    Jan 25 '14 at 18:16










  • remote system is Linux - the university's system
    – user57606
    Jan 25 '14 at 18:20












  • @user57606 OK, in that case my nano should work. Did you manage it?
    – terdon
    Jan 25 '14 at 18:21










  • Yes nano works but Sorry I could not save that blank file
    – user57606
    Jan 25 '14 at 18:22










  • @user57606 use Ctrl+O (WriteOut) to save the file in nano.
    – terdon
    Jan 25 '14 at 18:23













up vote
1
down vote



accepted







up vote
1
down vote



accepted






A text editor is not a word processor. You need to save your code as a simple text file, you can do that either by choosing "save as text" or the equivalent option in whichever word processor you used that created an rtf file, or just use a simple text editor.



You have not told us what operating system the remote machine is but one (or more) of these should already be installed:




  • nano


  • vim <-- NOT easy to use if you don't know it


  • emacs <-- slightly easier to use (the first time) but still geeky

  • gedit

  • pluma

  • kate

  • nedit


Just try these commands, the first one is almost certain to work on prety much whatever system you are running. Paste your lines into a blank file, and save it as something (for example mycode.gfs).



Once you have saved the file, you will need to run it using Gerris. I have never used this program but according to it's wiki, you should be able to do something like:



gerris2D mycode.gfs





share|improve this answer












A text editor is not a word processor. You need to save your code as a simple text file, you can do that either by choosing "save as text" or the equivalent option in whichever word processor you used that created an rtf file, or just use a simple text editor.



You have not told us what operating system the remote machine is but one (or more) of these should already be installed:




  • nano


  • vim <-- NOT easy to use if you don't know it


  • emacs <-- slightly easier to use (the first time) but still geeky

  • gedit

  • pluma

  • kate

  • nedit


Just try these commands, the first one is almost certain to work on prety much whatever system you are running. Paste your lines into a blank file, and save it as something (for example mycode.gfs).



Once you have saved the file, you will need to run it using Gerris. I have never used this program but according to it's wiki, you should be able to do something like:



gerris2D mycode.gfs






share|improve this answer












share|improve this answer



share|improve this answer










answered Jan 25 '14 at 17:52









terdon

126k31243419




126k31243419












  • @user57606 I was asking about the remote system, not your local one.
    – terdon
    Jan 25 '14 at 18:16










  • remote system is Linux - the university's system
    – user57606
    Jan 25 '14 at 18:20












  • @user57606 OK, in that case my nano should work. Did you manage it?
    – terdon
    Jan 25 '14 at 18:21










  • Yes nano works but Sorry I could not save that blank file
    – user57606
    Jan 25 '14 at 18:22










  • @user57606 use Ctrl+O (WriteOut) to save the file in nano.
    – terdon
    Jan 25 '14 at 18:23


















  • @user57606 I was asking about the remote system, not your local one.
    – terdon
    Jan 25 '14 at 18:16










  • remote system is Linux - the university's system
    – user57606
    Jan 25 '14 at 18:20












  • @user57606 OK, in that case my nano should work. Did you manage it?
    – terdon
    Jan 25 '14 at 18:21










  • Yes nano works but Sorry I could not save that blank file
    – user57606
    Jan 25 '14 at 18:22










  • @user57606 use Ctrl+O (WriteOut) to save the file in nano.
    – terdon
    Jan 25 '14 at 18:23
















@user57606 I was asking about the remote system, not your local one.
– terdon
Jan 25 '14 at 18:16




@user57606 I was asking about the remote system, not your local one.
– terdon
Jan 25 '14 at 18:16












remote system is Linux - the university's system
– user57606
Jan 25 '14 at 18:20






remote system is Linux - the university's system
– user57606
Jan 25 '14 at 18:20














@user57606 OK, in that case my nano should work. Did you manage it?
– terdon
Jan 25 '14 at 18:21




@user57606 OK, in that case my nano should work. Did you manage it?
– terdon
Jan 25 '14 at 18:21












Yes nano works but Sorry I could not save that blank file
– user57606
Jan 25 '14 at 18:22




Yes nano works but Sorry I could not save that blank file
– user57606
Jan 25 '14 at 18:22












@user57606 use Ctrl+O (WriteOut) to save the file in nano.
– terdon
Jan 25 '14 at 18:23




@user57606 use Ctrl+O (WriteOut) to save the file in nano.
– terdon
Jan 25 '14 at 18:23


















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f110873%2fhow-to-open-a-directory-and-save-code-in-it-gerris-in-linux%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

サソリ

広島県道265号伴広島線

Accessing regular linux commands in Huawei's Dopra Linux