Class 4 Quiz Flashcards
Name the three whitespace characters.
Space, Tab and newline (Enter or Return)
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
What would you type on the command line if you wanted to go to the directory /courses.
cd /courses
What would you type at the command line to see what directory you are currently in?
pwd
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 print to the screen the contents of the file named memo.txt?
cat memo.txt
What would you type at the command line to delete the file named memo.txt?
rm memo.txt
What would you type at the command line to create a directory named work?
mkdir 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 move the file named memo.txt into the directory named work?
mv memo.txt work