Misc Flashcards
How to remove everything from the current text insertion point to the end of the line
Control K
How to remove everything from the current text insertion point to the beginning of the line
Control U
Options for help
–help, -h, info, man
How to have grep ignore case …
run it with the -i option
How to have grep search directories
use the -r (recursive) option
grep -r will search through all files in a directory …
and in all subdirectories
Compare differences between two files
diff -y
What makes a file hidden
Prefacing it with .
Chmod number values for read write and execute:
4 if you want to give read permission
2 if you want to give write permission
1 if you want to give execute permission
How to kill a job using job number
precede a job number with a percent sign, %
How to exclude numbers from metacharacter bracket range
insert an exclamation mark, ! , or a caret, ^ immediately after the opening bracket the shell will match anysingle character that is NOT included within the brackets
How to comment in a shell script
, except with #! the hashbang line
Value of HOME
The absolute pathname of your home directory
Value of PATH
The list of directories the shell will search when looking for the executable file associated with a command you entered at the command line
Value of SHELL
The absolute pathname of your default shell
Value of PS1
Your command line prompt - what you see after entering each command