Operating System - Linux
1752795 Members
6222 Online
108789 Solutions
New Discussion

Re: Cron Schedule in Linux - issue with newline character

 
Steven Schweda
Honored Contributor

Re: Cron Schedule in Linux - issue with newline character

> [...] /bin/sh [...] on Linux is a symlink
> to /bin/bash.

Interestingly, this may be less true now than
it has been. On my Debian system, for
example:

debi# ls -l /bin/sh
lrwxrwxrwx 1 root root 4 Mar 9 08:27 /bin/sh -> dash

debi# man dash
[...]
DESCRIPTION
dash is the standard command interpreter for the system. [...]

debi# ls -lL /bin/bash /bin/dash
-rwxr-xr-x 1 root root 1943176 Apr 10 2010 /bin/bash
-rwxr-xr-x 1 root root 232224 Dec 14 2010 /bin/dash

As you can see, "dash" is more compact than
"bash", making it a better choice where a
basic (stripped-down?) shell is desired (as
for non-interactive use).

debi# uname -a
Linux debi 2.6.32-5-mckinley #1 SMP Wed Jan 12 06:05:21 UTC 2011 ia64 GNU/Linux

debi# cat /etc/debian_version
6.0

Everything's complicated.
Ralph Grothe
Honored Contributor

Re: Cron Schedule in Linux - issue with newline character

>Interestingly, this may be less true now than
>it has been. On my Debian system, for
>example:
>
>debi# ls -l /bin/sh
>lrwxrwxrwx 1 root root 4 Mar 9 08:27 /bin/sh -> dash

Hi Steven,
that's interesting news to me. I even haven't heard of "dash" yet.
Is it debian-specific? Because it of course the "d" sort of implies this.

Ah yes, it seems so

http://en.wikipedia.org/wiki/Debian_Almquist_shell

Madness, thy name is system administration