So I have some experience with linux and I was always wondering if it is possible to modify the terminal so that it executes a different interpreter (like python) rather than the default shell interpreter (like sh or bash).  (Note that this is not just "" or "".  This is about running things that are not shells, per se, but are interpreters.  I give python as an example to make things clearer, but I could have easily said php or any other interpreter.)  Is this possible, and if so, how would I do it?
120981
If I wanted to use zsh, for instance, rather than bash, where would I make this change for the current user?
108738
What is the difference between executing a Bash script like A and sourcing a Bash script like B?  A &gt; ./myscript  B &gt; source myscript
119782
I do not like to retype fish every time I start terminal. I want fish on by default. How can I set fish shell as my default shell on a Mac?
33257
I am using my school's computers and would like to use zsh instead of bash. I'd like to make it the default shell, but I cannot run a command such as $ chsh -s $(which zsh) because I don't have admin privileges.   Is there a way I can put something in my .bashrc or something that automatically calls zsh when it opens as a workaround?   To clarify, zsh is already installed.
86504
Hi I would like to run a script from the terminal, is there anyway to do that? For example : if I have a python script I would normally run it with this command :    python script.py   How can I run this script just by typing in the filename of the script in the terminal (even if i'm in another directory) ?  Another answer I found pretty helpful :    You can just create symlink. Create it in /usr/local/bin. All you need is to run command:  sudo ln -s /full/path/to/your/file /usr/local/bin/name_of_new_command   After that you should make your file executable:  chmod +x /full/path/to/your/file   Now you should be able to run name_of_new_command at any time in your terminal.  Note that this is good solution only for home usage of Linux.
23834
I read that terminal is nothing but shell, and Unix provides different flavors of shells:   Bourne shell (sh) C shell (csh) TC shell (tcsh) Korn shell (ksh) Bourne Again shell (bash)   Questions:   When I open a terminal window, which shell is opened by default? How do I check how many shells are installed? How do I change the shell used from my account?
85711
When we want to run a programs as root we use sudo, gksu, gksudo and etc. Now my question is how do we can run a Terminal as the root user in Terminal?  I tried with using gksudo terminal and gksu terminal but nothing happens. and by running sudo terminal I get error sudo: terminal: command not found.
45427
I have an executable program (no source code, just the compiled executable) that was made in windows (.exe extension).  It doesn't use any graphics... it simply reads and writes files.  I want to be able to run it in a linux shell script so that I don't have to switch operating systems to get my output.  Is there a way to use or convert the executable for linux operating systems?
3220
I am wondering what the point of sh being symbolic linked to dash is? I understand that dash is supposed to be faster than bash, but I am uncertain why the original sh shell isn't present in sh.   Or if anything why isn't sh linked to bash?
1167
Python works on multiple platforms and can be used for desktop and web applications, thus I conclude that there is some way to compile it into an executable for Mac, Windows and Linux.  The problem being I have no idea where to start or how to write a GUI with it, can anybody shed some light on this and point me in the right direction please?
1459
I would like to open a terminal, split it to lets say 9 parts (3x3) and execute some bash script. But for each terminal part different script.   Can this be done using perl, python or even bash?  How can I switch between those little terminals without using keyboard shortcuts?  Oh, by the way, I'm using terminator. And if there is some other terminal emulator that enables such a functionality, which is it?
35015
What's the difference between executing a script like this:  ./test.sh  and executing a script like this:  . test.sh?  I tried a simple, two-line script to see if I could find if there was a difference:  #!/bin/bash ls   But both . test.sh and ./test.sh returned the same information.
50320
What can I type at my shell (which happens to be bash) that will list all the commands that are recognized?  Also, does this differ by shell? Or do all shells just have a "directory" of commands they recognize?  Secondly, different question, but how can I override any of those? In other words how can I write my own view command to replace the one existing on my Ubuntu system, which appears to just load vim.
29570
I was curious how I would go about running multiple commands via shell script.  For example, just to try it out, I'd like to be able to connect a .desktop to a .sh that will run all the update codes so I don't have to type it out. I know how to execute a single command via a .sh, not multiple.  Any way?
49723
I'd like to edit my .bashrc so that every command executed on the shell is piped to something, for example:   $ sudo apt update   _________________ &lt; sudo apt update &gt;  -----------------     \   ^__^      \  (oo)\_______         (__)\       )\/\             ||----w |             ||     ||   I have managed something rather similar, but not entirely:  $ bash $ exec &gt; &gt;(cowsay) $ echo "Hello AU!" $ exit  _______ &lt; Hello AU! &gt;  -------     \   ^__^      \  (oo)\_______         (__)\       )\/\             ||----w |             ||     ||   It is not the desired result, as it only happens after exiting the current shell.  It's mainly for fun/learning purposes.
121448
In an information security lab I'm working on, I've been tasked with executing multiple commands with a single call to "system()" (written in C, running on Fedora).  What is the syntax that will allow me to execute more than command through system()?  (The idea being you could execute arbitrary commands through a program running on a remote computer, if the program interacts with the OS through the system() call.)  I.e.:  char command[] = "????? \r\n";  system(command);
49692
I've programmed in a number of languages for two years now, I mean that I know how to design and implement a decent solution for a given problem.  However, bash is being a major headache to me, just nothing does work as expected&mdash;or even without errors.  All of the guides I've found were incredibly informal, not properly summarising its syntax or telling the most common errors you can make.  So what can you recommend me?