Terminal Flashcards
pwd
print working directory
cd
change directory
.
my current directory
..
my parent directory
echo
outputs any arguments to the console
ls
list contents in this directory
cd .
change to my current directory
cd ..
change to my parent directory
the [tab] key
auto-completes commands as well as directory and file names
touch [file1]
create a new file called file1
cat [file1]
outputs the file contents to the terminal
mkdir [dir1]
create a new directory called dir1
mv [file1] [file2]
rename file1 to file2
mv [file1] /[dir1]
move file1 to the dir1 folder
cp [file1] [file2]
duplicate file1 to a file called file2
cp [file1] /[dir1]
copy file1 to the dir1 folder
rm file1
remove the file named file1
ls -l
list contents in a detailed view
ls -a
list contents including hidden files and directories