Intro to UNIX / Linux - Chapter 8

Ace your homework & exams now with Quizwiz!

The command ls ?? matches the filename(s) ?? abc AAAA AB and ab

AB and ab

The command ln links each file to a physical block on your disk. True or False

False

The command tail +20 xyz displays the first 20 lines of the file xyz. True or False

False

The find command is used to find a field in a file. True or False

False

The mv and cp commands are the same. Both copy file(s) from one place to another. True or False

False

The paste command is used to append files. True or False

False

You can use the view command to edit files just like the vi editor. True or False

False

Metacharacters are usually used in part of the filename to create a search pattern. True or False

True

The >> sign is the output redirection symbol. True or False

True

The more command is used to read files one screen at a time. True or False

True

You can read a large file using vi with the -R option True or False

True

The command to copy xxx and yyy files into zzz file is copy file xxx yyy zzz right mouse click, choose copy cat xxx >> yyy >> zzz cat xxx yyy >> zzz

cat xxx yyy >> zzz

The command to copy the file called Xfile to Zfile is copy Xfile Zfile cp Xfile Zfile ln Xfile Zfile cp Zfile Xfile

cp Xfile Zfile

The command ln xxx yyy -creates no new i-node number -creates two new i-node numbers -assigns a new i-node number to both yyy and xxx -creates a new i-node number for yyy

creates no new i-node number

The command find . -name Xfile -print -finds and displays all the files named print -finds and displays all the files named name -finds and displays all the hidden files such as .hidden -finds and displays all the files named xfile

finds and displays all the files named xfile

The paste command is used to -join files together line by line -paste directory files -append files -cut and paste columns in a file

join files together line by line

The command to list all the files that have filenames that starts with letter a and ends with a number from 1 to 5 is ls a?1-5 ls a[1-5]* ls ?a?1?5 ls a*[1-5]

ls a*[1-5]

The command to display Xfile one screen at a time is Xfile - page more page Xfile more Xfile show Xfile

more Xfile

The command to rename the file called Xfile to Zfile is mv Xfile Zfile mv Zfile Xfile rename Xfile Zfile cp Xfile Zfile

mv Xfile Zfile

The command to count number of lines in xyz is -line count xyz -wc -lines xyz -wc -l xyz -count -l xyz

wc -l xyz


Related study sets

Chapter 55. War Is Hell: Berg and Expressionist Opera

View Set

Chapter 28 - Pulling it All Together : Integrated Head-to-Toe Assessment

View Set

Final Exam PA Life, Health and Accident

View Set

Romantic Period and Victorian Era Poets

View Set