Quiz 1 Flashcards
What would you type at the command line to move the file named memo.txt into the directory named work?
mv memo.txt work
What would you type at the command line to copy the file named memo.txt to memo.bak?
cp memo.txt memo.bak
What would you type at the command line to create a directory namedwork?
mkdir work
What would you type at the command line to delete the file namedmemo.txt?
rm memo.txt
What would you type at the command line to print to the screen the contents of the file namedmemo.txt?
cat memo.txt
What would you type at the command line to see ALL the files in the directory named/home/ghoffman?
ls -a /home/ghoffman
What would you type at the command line to see what directory you are currently in?
pwd
What would you type on the command line if you wanted to go to the directory/courses?
cd /courses
If you wanted to use one of the characters that have special meaning to Unix in a filename what TWO things could you do?
put a backslash in front of it or quote it
Name the three whitespace characters.
Space Tab and newline (Enter or Return)
What is the other program, besidesman, that you can use to get help?
info
How do you exit themanprogram?
q
How do you get the next screenful when usingman?
Space bar
What would you type at the command line to get themanpage for thelscommand?
man ls
How do you you abort a running program?
Control C