Questions tagged [shell]

A shell is terminology for a command-line interpreter most commonly used with Unix-like operating systems, but also used to interact with GUI-based operating systems in a more granular fashion. Not only does it allows the user to run programs from a text interface, but frequently offers basic programming features such as variables, substitution, output redirection, and wildcards.

A shell is terminology for a command-line interpreter most commonly used with Unix-like operating systems, but also used to interact with GUI-based operating systems in a more granular fashion.

Not only does it allows the user to run programs from a text interface, but frequently offers basic programming features such as variables, substitution, output redirection, and wildcards.

The name was first used by Unix operating system for an interpreter used for command prompt, but currently the term shell refers to BASH(Bourne Again SHell) and other command prompt interpreters too.

1348 questions
9
votes
2 answers

Linux locale: en_US.UTF-8 vs en_US

I usually config my ubuntu via sudo locale-gen --purge en_US.UTF-8 And I've the installed locales # locale -a C C.UTF-8 en_US.utf8 POSIX Is it okay since I am missing en_US?
Howard
  • 2,135
  • 13
  • 48
  • 72
9
votes
2 answers

How to set the default shell when chsh is not present

I've a Synology DS412+ NAS box running Busybox, which has a default shell of ash. Previously, ipkg install optware-devel was run and it installed bash and set it as the default shell. Running ipkg install zsh has installed zsh but not set it as the…
ian
  • 239
  • 2
  • 4
  • 12
9
votes
2 answers

On Redhat, what does "kernel.suid_dumpable = 1" mean?

I'm running a bash script to copy some log files and then restart a service on a Red Hat box. Every time I execute the script, I get the following on my console: [root@servername ~]# sh /bin/restart_nss.sh kernel.suid_dumpable = 1 …
IVR Avenger
  • 325
  • 1
  • 5
  • 16
9
votes
8 answers

Comparison of Unix shells

Of the major Unix shells (bash, ksh, tcsh, zsh, others?), are there any compelling reasons to use one over another? Which is the most interactive/command-line friendly? Which is the most conducive/intuitive for writing scripts? Are there any major…
Andy White
  • 1,171
  • 1
  • 14
  • 20
9
votes
2 answers

mysqldump prompting for password in shellscript

I wrote a simple shell script to dump a specific mysql database. problem is it is prompting me for a password even though I provide on. The mysql db is version 5.0.27 if that matters. Here is the specific line I am using. $MYSQLDUMP -u backup…
aduljr
  • 500
  • 2
  • 5
  • 16
9
votes
2 answers

scp only files with defined extension

I want to transfer only files with special extensions (like only *.tar.gz, *.war) in one scp command (Debian Linux). Is this possible, if yes how is the syntax? Should be someting like: scp 192.168.1.2:/srv/myfiles/'*.tar.gz *.war' . But this is…
markus
  • 1,080
  • 5
  • 18
  • 38
9
votes
6 answers

what are Powershell's advantages over cygwin/unix-shell

The obvious difference I'm aware of, is the ability to interface to certain MS products, such as Exchange. But for one not having to administer such products, what are the advantages of Powershell? What are the reasons to learn Powershell at all…
Moshe
  • 582
  • 5
  • 9
9
votes
3 answers

Excluding Environment Variables from ZSH Autocomplete

Quick example: ~ $ wor ~ $ WORDCHARS= …
Bryan Veloso
  • 193
  • 6
9
votes
1 answer

What does the leading dash in process cmdline mean?

I noticed a process taking full CPU on my linux server, of which the COMMAND column from top -c is -bash. cat /proc//cmdline shows -bash too. What does the leading dash mean? More info: I don't know if it's relevant, /proc//exe ->…
Arrix
  • 235
  • 1
  • 5
9
votes
4 answers

control a bash script with variables from an external file

I would like to control a bash script like this: #!/bin/sh USER1=_parsefromfile_ HOST1=_parsefromfile_ PW1=_parsefromfile_ USER2=_parsefromfile_ HOST2=_parsefromfile_ PW2=_parsefromfile_ imapsync \ --buffersize 8192000 --nosyncacls --subscribe…
perler
  • 531
  • 2
  • 6
  • 10
8
votes
5 answers

Ansible task write to local log file

Using Ansible I would like to be able to write the sysout of a task running a command to a local(i.e. on the managed server) log file. For the moment I can only do this using a task like this: - name: Run my command shell:
trikelef
  • 518
  • 1
  • 7
  • 26
8
votes
5 answers

Calculate sum of several sizes of files in Bash

I have list of files in a file, cache_temp. In file…
Piduna
  • 541
  • 4
  • 12
  • 25
8
votes
3 answers

Shell script attack on Apache server, via an cron of unknown origin

While running a project war on Apache tomcat server I found that the server has been compromised. While running the war on an unknown cron is running like this [root@App2 tmp]# crontab -l -u tomcat */11 * * * * wget -O - -q…
Abhishek Patil
  • 185
  • 1
  • 7
8
votes
5 answers

Run a script from anywhere

I have a script: #!/bin/bash echo "$(dirname $(readlink -e $1))/$(basename $1)" that sits here: /home/myuser/bin/abspath.sh which has execute permissions. If I run echo $PATH I get the following:…
Cheetah
  • 241
  • 3
  • 8
8
votes
4 answers

Bash: Put a job in the background and then tail the log

How do you make the escaping work so that the & is actually running the first command in the background? # foo param1 param2 >> run.out &; tail -f run.out
Paul Tarjan
  • 569
  • 3
  • 8
  • 17