Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
26 Cards in this Set
- Front
- Back
command > filename
|
Redriect the standard output to a file or device, creating the file if it does not exist and overwriting the file if it does exist.
|
|
command < filename
|
Redirect the standard input from a file or device to a program.
|
|
command >> filename
|
Redirect the standard output to a file or device, appending the output to the end of the file.
|
|
command >! filename
|
In the C-shell and Korn shell, force the overwriting of a file if it already exists. This overrides the noclobber option.
|
|
command 2> filename
|
Redirect the standard error to a file or device in the Bourne shell
|
|
command 2>> filename
|
Redirect the standard error to a file or device in the Bourne shell.
|
|
command 2>&1
|
Redirect the standard error to the standard output in the Bourne shell.
|
|
command >& filename
|
Redirect the standard error to a file or device in the C-shell.
|
|
command | command
|
Pipe teh standard output of one command as input for another command.
|
|
command |& comand
|
Pipe the standard error as input to another command in the C-shell.
|
|
cat filename 1> output.file 2> error.file
|
just an example
cat filename 1> output.file 2> error.file |
|
place in background
|
command-line &
|
|
list all jobs in background
|
jobs
|
|
bring a job forward
|
fg %jobnum
|
|
place a foreground program in background
|
bg
|
|
notify when a job completes
|
notify %jobnumber
|
|
Cancel a job running in background
|
kill %jobNumber
or kill processNumber |
|
execute commands at a specified time and date
|
(EXAMPLE)
at -f mycrontest.sh 10pm tomorrow |
|
some time keywords for the "at" command
|
am
pm monday tuesday wednesday now noon midnight today tomorrow next <time-segment> next week |
|
at <options>
|
at -l jobnum
(list current at jobs) at -r jobnum (cancel a job) at -m jobnum (be notified by mail when job finishes) |
|
special character
* (asterick) |
Match any set of characters
* |
|
special character
? (question mark) |
Match any single character
? |
|
special character
[ ] (brackets) |
Match a class of possible characters
[ ] |
|
special character
\ (back slash) |
Quote the following charcter. Used to quote special characters.
|
|
The Bash shell provides the following features:
|
**** Input/output redirection
**** Wildcard characters (metacharacters) for filename abbreviation **** Shell variables and options for customizing your environment **** A built-in command set for writing shell programs **** Shell functions, for modularizing tasks within a shell program **** Job control **** Command-line editing (using the command syntax of either vi or Emacs) **** Access to previous commands (command history) **** Integer arithmetic **** Arrays and arithmetic expressions **** Command-name abbreviation (aliasing) **** Upwards compliance with POSIX **** Internationalization facilities **** An arithmetic for loop |
|
TWEAK (bonus):
colorize your prompt |
############ ADD TO ~/.bashrc
NORMAL=`tput sgr0 2> /dev/null` BOLD=`tput bold 2> /dev/null` RED="\[\033[31m\]" GREEN="\[\033[32m\]" BLUE="\[\033[34m\]" GREY="\[\033[1;30m\]" PURPLE="\[\033[0;35m\]" PS1="\[\u@$RED\h$NORMAL:\W\]\\$" ############ |