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;
13 Cards in this Set
- Front
- Back
- 3rd side (hint)
What command would you use to print lines containing a certain string? |
$grep Apples file1 |
|
|
Command to search for a certain file in a directory... |
$find. -name file1 |
|
|
What the output be if you typed $ls La* |
All files starting with La |
|
|
Command to combine file1 and file2 into a new file called file3, and count the number if words in file3? |
$cat file1 file2 > file3 | wc -w |
|
|
When you type ls the out out is: Grapes Watermelon Papaya Pecans What is the output if you typed ls | sort?
|
grapesPapayaPecansWatermelon |
|
|
When you type ls pages and pages of output are produced. How would you view one page at a time |
$ is | more |
|
|
Display all lines of a file called file1 that have the word apples... |
$ grep apples file1 |
|
|
Command to display the first 5 lines of file called file1 that have the word apples... |
$ grep apples file1 | head -n 5 |
|
|
Command to list all files beginning with t in a directory... |
$ is t* |
|
|
Sed 's/e/z/g' colors is used on a file contain ing Red Blue Green What would be produced? |
Rzd Bluz Grzzn |
|
|
What command would you use to start a process in the future? |
$ chrontab -e |
|
|
When you type $./script1 it says permission denied, what do you do to get the script to run? |
$ chmod +x script1 |
|
|
What three digits do you add the chmod to change the permission of a file called file1 to -rwxr-x-wx? |
$ chmod 753 file1 |
Read = 4 Write = 2 Executable = 1 |