How to start our bash shell?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How to start our bash shell?
# 1  
Old 12-04-2014
How to start our bash shell?

Hey Guys,

I am new in unix and no idea to executing command and bash shell and others shell.

Suppose we want to run bash shell then how to do it, witch editor we use in my linux operating system.
# 2  
Old 12-04-2014
bash is default shell on linux, and vim is what would recommend for its a clone of vi and vi you find on all UNIX platforms...
# 3  
Old 12-04-2014
Thank you vbe, please let me know that how to open editor where we will run unix command.

---------- Post updated at 05:57 AM ---------- Previous update was at 05:07 AM ----------

I am asking very basic question and waiting for great soul.
# 4  
Old 12-04-2014
You run the commands in the shell. The command for the editor is vi and/or vim.

---------- Post updated at 01:46 PM ---------- Previous update was at 01:36 PM ----------

https://en.wikipedia.org/wiki/Shell_%28computing%29

https://en.wikipedia.org/wiki/Unix_shell

https://en.wikipedia.org/wiki/Vi

https://en.wikipedia.org/wiki/Vim_%28text_editor%29
# 5  
Old 12-04-2014
Thank you so much junior-helper.

---------- Post updated at 07:42 AM ---------- Previous update was at 06:58 AM ----------

We couldn't understand from reference link, please give hint how to open any editor where we can run unix command. I need help like, suppose we have open to command prompt in window then we open like:
Go Start > All Program > Accessories > command prompt

Please share above type example.
# 6  
Old 12-04-2014
Well since you are in a shell ( no?) there is no GUI... and you are in a mode called "command line" by some... You find yourself at a prompt just like you would when under windows you execute cmd.exe ( which is a shell uquivalent...).So at the prompt you type vi, and ... your in vi! ( most linux have links vi -> vim )
# 7  
Old 12-04-2014
If you are in a GUI, press "ALT+F2" (Equivalent to "WinBtn + R") and open a GUI-Editor, like, but depending on your system: Gedit, Kedit or leafpad.
If you are on CLI/prompt, well just type it, as already suggested.

Last edited by sea; 12-04-2014 at 10:24 AM..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

In Bash shell - the ps -ef shows only the /bin/bash but the script name is not displayed

In Bash shell - the ps -ef shows only the /bin/bash but the script name is not displayed ? Is there any way to get the script names for the process command ? --- Post updated at 08:39 AM --- in KSH (Korn Shell), my command output shows the script names but when run in the Bash Shell... (3 Replies)
Discussion started by: i4ismail
3 Replies

2. Shell Programming and Scripting

Different behavior between bash shell and bash script for cmd

So I'm trying to pass certain json elements as env vars and use them later on in a script. Sample json: JSON='{ "Element1": "file-123456", "Element2": "Name, of, company written in, a very weird way", "Element3": "path/to/some/file.txt", }' (part of the) script: for s... (5 Replies)
Discussion started by: da1
5 Replies

3. Shell Programming and Scripting

Bash to goto specific line/function and start processing if user response is yes

In the bash below I am trying to run the script entire script including the ....(which is a bunch of code) and then in the run function if the user response is y (line in bold). then start processing from execute function. Basically, goto the # extract folder for variable filename line and start... (4 Replies)
Discussion started by: cmccabe
4 Replies

4. Shell Programming and Scripting

Find between lines start and end: awk with bash variables

I have a file as follows: 0 1056 85540 414329 774485 1208487 1657519 2102753 2561259 3037737 3458144 3993019 4417959 4809964 5261890 5798778 6254146 I want to find all lines between a specified start and end tag. (6 Replies)
Discussion started by: jamie_123
6 Replies

5. Shell Programming and Scripting

How to start powershell with shebang from windows/cygwin/bash?

I would like to the the windws8/cygwin/bash shebang feature to start a powershell script. I do a "chmod +x set-sound.ps1" and then at a bash prompt I do ./set-sound.ps1 The first line of ./set-sound.ps1 #!powershell.exe -ExecutionPolicy unrestricted The result is the result: ... (5 Replies)
Discussion started by: siegfried
5 Replies

6. Shell Programming and Scripting

Bash script to start program and answer prompts?

I'm trying to write a script the simplifies the execution of a program: After starting the program (sh ~/.mfix/model/make_mfix) I am prompted four times for options: Do you need SMP version? (y/n) Do you need DMP version? (y/n) Do you need debug version? (y/n) Force re-compilation of... (2 Replies)
Discussion started by: lanew
2 Replies

7. UNIX for Dummies Questions & Answers

unable to start shell script

Hi, Pleasse could someone advise why i'm getting this error below - No such file or directory dev6:$ ls -ltr ReleaseManagement.sh -rwxr-xr-x 1 dev fix 4830 Aug 22 11:13 ReleaseManagement.sh dev6:$ ./ReleaseManagement.sh : No such file or directory dev6:$ thank you (2 Replies)
Discussion started by: venhart
2 Replies

8. Solaris

How to start in a bash shell everytime I logon to SunOS?

Hi I logon to sunos boxes at work that starts in a ksh shell. I would like to login to a bash shell whenever I logon to the sunos boxes instead of having to login and type bash . I tried editing the .profile and added SHELL= usr/bin/bash however when I login I am still in the ksh shell. I... (4 Replies)
Discussion started by: Esa
4 Replies

9. Shell Programming and Scripting

want to start shell scripting

I have knowledge in Linux RHEL 5 system & Network Administration topics. I want to know shell scripting. Please guide me to get a good start. (1 Reply)
Discussion started by: subrata
1 Replies

10. Linux

How to Start a Shell as Login shell instead of ordinary shell

Hi I tried with bash --login option. but the output is siva:~$ bash --login siva:~$ is there any way to make the shell ask for user id and password ( and login as different user instead of using sudo / su ) Thx in advance Siva (3 Replies)
Discussion started by: Sivaswami
3 Replies
Login or Register to Ask a Question