Introduction to the Command Line and Scripting with a focus on bash
- Logins using putty, the free Windows telnet and SSH client. Have everyone log in, whatever way it's going to work. Mention the putty way if no one is using that.
- Terminals - You can do real terminals if you have them or want to user serial line networking. Mention termcap and terminfo.
- Virtual Terminals - demonstrate the six standard and the 7th for X, using ctrl-alt-f1-7.
- Terminal Emulators: xterm, rxvt, gnome-term, kterm. Demonstrate goodies of each.
- Shells - shells talk to the kernel with built in functions and look for external applications for you. Also have interpretive languages including loops, functions, variables and arrays. Your default shell is specified in /etc/passwd.
- The orignial shells.
- sh - the original UNIX shell written by Steven Bourne. It is everywhere.
- csh - written by Bill Joy had command line completion and had a syntax similar to C.
- ksh - written by David Korn is a C shell compatible with sh.
- tcsh - compatible with c shell for legacy applications, has nice extensions.
- pdksh - public domain korn shell, admired by Korn.
- bash - fully backward compatible with sh, we will talk about this soon.
- Editors, ne, vi, emacs, gnome edit, kwrite. Demonstrate each, thump emacs manual.
- Basic commands and environment
- tab completion - command completion gives all options available for a given input. Demo ls.
- history - .bash_history, number saved is governed by HISTSIZE accessed through history command and up/down arrows.
- how to kill running processes
- Background: - pid, ps -elf | grep command, kill -9 pid.
- Running: ctrl+z, bg restarts in background, fg in foreground.
- command notation -
- wildcards - * any number of characters, ? single character, [a-z] any single character in bracket.
- env, set, bash files: /etc/bash.bashrc /etc/bash_completion ~.bashrc ~.bash_profile, path is important.
- common file system commands: ls, cp, mv, mount, chmod. demonstrate unix file ownership and permissions.
- redirection and pipes <> for files, | for commands.
- cat, more and less
- find and grep
- quotation marks. Back quate executes contents. Single quotes hides contents. Double quote expands variables.
- evoking an editor, just type it's name.
- Simple Bash Scripts
- Where to go for more information.