Review Flashcards
“absolute path”
A path the is fully specified from the root directory down.
“relative path”
A path that is relative to the current working directory.
/
The root directory OR the character to separate directories in a path.
“home directory”
The directory where that user’s files typically reside.
pwd
The command that prints the shell’s current working directory
ls
The command that prints the contents (files and directories) in the current working directory.
ls «directorypath»
The command that prints the contents of the named directory.
ls -a
The command to print directory contents including hidden files
ls -l
The command to print directory contents in a long, more descriptive format
.
The hidden directory that refers to the directory itself.
..
The hidden directory that refers to a directory’s parent directory.
man «command»
The command “manual page” for a given command
mkdir «directorypath»
The command to create a new directory.
cd «directorypath»
The command to change the current working directory to «pathname»
~
The user’s home directory
cp «fromfilepath» «tofilepath»
The command to make a copy of «fromfile» as «tofile»
cp «fromfilepath» «directorypath»
The command to make a copy of a file in another directory
mv «fromfilepath» «tofilepath»
The command to rename (and possibly move) «fromfilepath» as «tofilepath»
mv «fromfilepath» «directorypath»
The command to move a file to another directory
rm «filepath»
The command to delete file(s).
rm -r «directorypath»
The command to delete a directory and all its contents.