Shell/Console/Terminal Flashcards
a directory is the same as a
file
what is the term for the current directory you are in
working directory
what is the difference between a relative and an absolute path
an absolute path name begins with a slash and works it way down to the directory you are currently in
a relative path name is the name from where you are working
what command will tell you what directory you are in
pwd
what command will tell you the file names and directories of the directory that you’re in
ls (list)
what command will tell you the file names and directories of a named directory
ls DirName
what command changes the working directory to the home directory
cd (change directory)
what command changes the working directory to be a named directory
cd DirName
what command changes the working directory to be one directory up
cd ..
what command allows you to create a directory
mkdir DirName
what command allows you to delete a directory
rmdir DirName
what conditions are needed in order to delete a directory
it must be empty first
what command allows you to remove a file
rm fileName
what command allows you to move files or directories
mv fileToBeMoved LocationToMoveTo
what command allows you to rename files or directories
mv OldName NewName