Command Line Flashcards
What is a CLI?
Command Line Interface
processes commands to a computer in the form of lines of text
What is a GUI?
Graphical User Interface
allows users to interact with electronic devices through graphical icons and audio indicator
man
manual
man [command] to find out more info
cat
concatenate files and print
ls
list directory
pwd
print current/working directory
echo
print a line of text
echo “hello”
touch
change file timestamps
can also create files if it does not already exist
mkdir
make directory
-p flag: parents; make parent directories as needed
mv
move/rename files
mv fileName newFileName (rename)
mv fileName newDirectory (move)
rm
remove files/directories
-r: recursive (remove directories/contents recursively)
cp
copy files/directories
-r: recursive
cp file newFile (copy)
cp file directory (copy + paste into new directory)