Command Line Flashcards
1
Q
ls
A
- list all the files in your current directory
2
Q
cd [directory]
A
- change directory
- current directory is always .
- parent directory is ..
3
Q
ctrl-l
A
- clear terminal
4
Q
pwd
A
- present working directory
5
Q
mkdir [directory]
A
- make a new folder
6
Q
cp [source] [destination]
A
- copy file
- is name of file [source] is what to [directory] call the copied file
7
Q
cp -r [source] [destination]
A
- copy a whole folder
8
Q
rm [file]
A
- remove file
- asks y/n
9
Q
rm -f [file]
A
- remove file without asking y/n
10
Q
rm -rf [directory]
A
delete the whole folder without y/n
11
Q
mv [source] [destination]
A
rename a file from [source] to [destination]
12
Q
clang [file]
A
compile file
13
Q
make [file]
A
compile file without extra sauce