Top "Shell" questions

The term 'shell' refers to a general class of text-based interactive command interpreters most often associated with the Unix & Linux operating systems.

'echo' without newline in a shell script

I have a problem with echo in my script: echo -n "Some string..." prints -n Some string... and moves to …

shell command-line sh
Command to change the default home directory of a user

I would like to know whether there is any simple shell command to change the user home directory in Linux/…

linux shell unix
How to append output to the end of a text file

How do I append the output of a command to the end of a text file?

bash shell
Shell command to sum integers, one per line?

I am looking for a command that will accept (as input) multiple lines of text, each line containing a single …

shell
Automatically enter SSH password with script

I need to create a script that automatically inputs a password to OpenSSH ssh client. Let's say I need to …

linux shell ssh openssh
How do I run a shell script without using "sh" or "bash" commands?

I have a shell script which I want to run without using the "sh" or "bash" commands. For example: Instead …

bash shell alias sh
How to get the list of files in a directory in a shell script?

I'm trying to get the contents of a directory using shell script. My script is: for entry in `ls $search_…

bash shell directory-listing
Unix shell script find out which directory the script file resides?

Basically I need to run the script with paths related to the shell script file location, how can I change …

shell unix
Should I put #! (shebang) in Python scripts, and what form should it take?

Should I put the shebang in my Python scripts? In what form? #!/usr/bin/env python or #!/usr/local/bin/…

python shell python-3.x shebang
OS X: equivalent of Linux's wget

How can I do an HTTP GET from a Un*x shell script on a stock OS X system? (installing …

macos shell unix http-get