CSC 352 bash commands Flashcards
absolute path
A path that 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.
“current working directory”
The directory the shell uses as a reference point for relative paths.
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
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
The command “manual page” for a given command
mkdir
The command to create a new directory
cd
The command to change the current working directory to
~
The user’s home directory
cp
The command to make a copy of as
cp
The command to make a copy of a file in another directory
mv
The command to rename (and possibly move) as
mv
The command to move a file to another directory
rm
The command to delete file(s)
rm -r
The command to delete a directory and all its contents.
rmdir
The command to delete an empty directory
cat
The command to print the contents of the named file
head
The command to print the first 10 lines of the named file
tail
The command to print the last 10 lines of the named file
more
The command to print the named file , one screen at a time.
grep
Print the lines in a file that contain
wc
Print the number of lines, words, and characters in the named file.