1.2 Given a scenario, manage files and directories Flashcards
sed command
stream editor; ability to filter text in a pipeline.
-d –delete
-n,p – print lines that contain pattern
-s – substitute first string occurrence
-s,g – globally substitute og string with replacement string for each occurrence
awk command
find and replace text
-F – field separator
-f – file
-v – assign a variable
printf command
Provides the user with more control over how the output is formatted
-v assign output to a variable
dd command
convert and copy a file; used to take a bit-by-bit image
-if=FILE – input file
-of=FILE – output file
stat command
Display file or file system status
-L – deference
-f – file-system
-c – format
file command
determine file type
-b – brief
-C – compile
-e – exclude
rsync command
Used to copy file locally and to remote systems