12-12-2011
Perl is very powerful because of its regular expressions, and because it has so many add-on modules available.
But Bourne shells can do things simply which Perl would make quite complex, especially when you're using external programs. I've seen many perl scripts which were just line after line after line of system() and backticks, hardly perl scripts at all -- a barely-there crust of perl holding together pure shell code. Instead of using one shell, they use dozens of shells. If you learn to program in shell, you'll at least understand why this is a bad idea.
More to the point, perl isn't a shell. You can't login to perl. If you want to administer UNIX, you have to learn how to use a shell, and it might as well be some variety of bourne; too many things use it to avoid it, like cron, at, many system init and system configuration scripts, and your own logins.
Last edited by Corona688; 12-12-2011 at 06:53 PM..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Can someone please post a link to site that teaches perl? (2 Replies)
Discussion started by: DISTURBED
2 Replies
2. Shell Programming and Scripting
Hello,
What is the best way to start learning PERL? Are there any "learn-it-yourself" websites? Beginner books? etc...
Thanks,
Barbara (3 Replies)
Discussion started by: blt123
3 Replies
3. Shell Programming and Scripting
Can anyone suggest homepage related to perl programming?
Thank you. (11 Replies)
Discussion started by: lcfoo
11 Replies
4. Shell Programming and Scripting
What do you suggest for someone that doesn't have any programming experience and want to learn perl? (3 Replies)
Discussion started by: bbbngowc
3 Replies
5. Shell Programming and Scripting
Hi,
Please suggest me any good book to learn pearl scripting.
Thanks in advance !!!!:) (5 Replies)
Discussion started by: vkvishwakarma6
5 Replies
6. UNIX for Dummies Questions & Answers
Hi,
Would like to learn PERL, can anyone let me know what are the useful sources... any links... good books for the beginners to start and practice?
Many thanks. (3 Replies)
Discussion started by: venkatesht
3 Replies
7. Shell Programming and Scripting
Hi folks,
I'm a CS students enrolled in a sysadmin class where we've been covering bash scripting for the past few weeks. I have prior knowledge in java, c++, c#, python,and some scripting languages like asp.net w/c# and php. This bash stuff seems pretty neat and a bit different than what I am... (9 Replies)
Discussion started by: KalEl
9 Replies
8. Shell Programming and Scripting
Hi,
I need to copy files from a source directory to a destination directory in unix.
I'm using the file::copy for the actual copy.
The problem is that the source and dest directories are supplied by different users, who might type the name of the directories in various combinations of lower... (6 Replies)
Discussion started by: Furou
6 Replies
9. What is on Your Mind?
Hi guys, which book are you raccomand to start learn Perl from the ground ? (1 Reply)
Discussion started by: solaris_user
1 Replies
10. UNIX for Dummies Questions & Answers
I do not know shell scripting. But at work place, I have got an in and out shell scripting task. I just need to understand a very big script. Is there any tool in which I can place the script and it can tell me the meaning of the whole script? (3 Replies)
Discussion started by: lg123
3 Replies
CHSH(1) User Commands CHSH(1)
NAME
chsh - change your login shell
SYNOPSIS
chsh [-s shell] [-l] [-u] [-v] [username]
DESCRIPTION
chsh is used to change your login shell. If a shell is not given on the command line, chsh prompts for one.
chsh is used to change local entries only. Use ypchsh, lchsh or any other implementation for non-local entries.
OPTIONS
-s, --shell shell
Specify your login shell.
-l, --list-shells
Print the list of shells listed in /etc/shells and exit.
-u, --help
Print a usage message and exit.
-v, --version
Print version information and exit.
VALID SHELLS
chsh will accept the full pathname of any executable file on the system. However, it will issue a warning if the shell is not listed in
the /etc/shells file. On the other hand, it can also be configured such that it will only accept shells listed in this file, unless you
are root.
EXIT STATUS
Returns 0 if operation was successful, 1 if operation failed or command syntax was not valid.
SEE ALSO
login(1), passwd(5), shells(5)
AUTHOR
Salvatore Valente <svalente@mit.edu>
AVAILABILITY
The chsh command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/.
util-linux July 2009 CHSH(1)