The flashcards below were created by user
maovar
on FreezingBlue Flashcards.
-
Name the vi editors 3 entry modes.
Command Mode, Text Entry Mode and Status Line Mode
-
Name the three kinds or regular files:
Unstructured ASCII character, Structured ASCII records, Structured ASCII trees.
-
UNIX/Linux store data as?
Flat ASCII files
-
Other name for input from keyboard?
Standard In (stdin)
-
Other name for output to monitor?
Standard Out (stdout)
-
Explain "touch" command:
updates a file's time and date stamps & creates empty files
-
Explain "rmdir" command:
removes empty directories
-
Explain "cut" command:
extracts specific columns or fields from a file
-
Explain "paste" command:
combines two or more files
-
explain "sort" command:
sorts a file's contents
-
explain "find" command:
locates files based on a search criteria
-
Explain "join" command:
extracts data from two files sharing a common field and uses this field to join the two files
-
Explain awk:
is a pattern-scanning and processing language useful for creating a formatted report with a professional look
-
Explain "comm" command:
compares sorted files and shows differences
-
Explain "diff" command:
compares and selects the differences in two files
-
explain "grep" command:
grep (Global Regular Expression Print) selects lines or rows
-
explain "head" command:
selects lines from the beginning of a file
-
explain "tail" command:
selects lines from the end of a file
-
explain "uniq" command:
selects unique lines or row
-
Explain "cat" command:
concatenates files, it also shows files in the stdout/ monitor
-
explain "chmod" command
changes the security mode of a file or directory
-
explain "pr" command
formats and prints
-
explain "sed" command
edits data streams or file editor designed to make global changes to large files
-
explain "tr" command:
translates and deletes character by character
-
what is the command to repeat the line just entered?
(.) period
-
what is the command use to undo?
u
-
Explain "a" command:
append below
-
explain "A" command:
append above
-
explain "o" command:
open below
-
explain "O" command:
open above
-
explain "R" command:
overstrike/overwrite
-
explain "dd." command:
Delete lines -- saves them into buffer -- copy
-
explain "p" command:
paste below
-
explain "P" command:
Paste above
-
explain "x" command:
delete individual character
-
explain "yy" command:
yank - copy
-
explain ":" command:
status line
-
explain ":q!" command:
Quit w/o saving
-
explain ":wq" command:
save and quit
-
explain ":w filename" command:
save as
-
explain "ZZ" command:
save and exit w/o prompting
-
explain Standard error (stderr)
error output to screen/monitor
-
explain "/" command:
search forward for a pattern of characters
-
explain "dw" command:
delete the word starting at the cursor. if the cursor is in the middle of the word, delete from the cursor to the end of the word
-
explain "d$" command:
delete from the cursor to the end of the line
-
explain "d0" command:
delete from the cursor to the start of the line
-
shell scripts should contain?
the command to execute, comments to identify and explain the script so that other users can understand how it works
-
explain "#" when used in the vi editor:
it's used to mark a comment
-
how to run a shell script?
"sh" followed by the name of the script or make the script executable and type "./" prior to the script name
|
|