Terminal Flashcards
1
Q
pwd
A
print working directory
2
Q
cd
A
change directory
3
Q
.
A
my current directory
4
Q
..
A
my parent directory
5
Q
echo
A
outputs any arguments to the console
6
Q
ls
A
list contents in this directory
7
Q
cd .
A
change to my current directory
8
Q
cd ..
A
change to my parent directory
9
Q
the [tab] key
A
auto-completes commands as well as directory and file names
10
Q
touch [file1]
A
create a new file called file1
11
Q
cat [file1]
A
outputs the file contents to the terminal
12
Q
mkdir [dir1]
A
create a new directory called dir1
13
Q
mv [file1] [file2]
A
rename file1 to file2
14
Q
mv [file1] /[dir1]
A
move file1 to the dir1 folder
15
Q
cp [file1] [file2]
A
duplicate file1 to a file called file2